pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Failure to build lang/rust




With an up-to-date kernel and userland (less than 48 hours old), and with an even more up-to-date pkgsrc (less than 12 hours old), I'm getting the following failure when trying to build lang/rust:

===> Cleaning for rust-1.20.0
=> Bootstrap dependency digest>=20010302: found digest-20160304
=> Checksum SHA1 OK for rust-1.19.0-x86_64-unknown-netbsd.tar.gz
=> Checksum RMD160 OK for rust-1.19.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA512 OK for rust-1.19.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA1 OK for rust-std-1.19.0-x86_64-unknown-netbsd.tar.gz
=> Checksum RMD160 OK for rust-std-1.19.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA512 OK for rust-std-1.19.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA1 OK for rustc-1.20.0-src.tar.gz
=> Checksum RMD160 OK for rustc-1.20.0-src.tar.gz
=> Checksum SHA512 OK for rustc-1.20.0-src.tar.gz
===> Installing dependencies for rust-1.20.0
==========================================================================
The following variables will affect the build process of this package,
rust-1.20.0.  Their current value is shown below:

        * KRB5_DEFAULT = heimdal
        * PYTHON_VERSION_DEFAULT = 36
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private
        * TERMINFO_DEFAULT = terminfo

Based on these variables, the following variables have been set:

        * KRB5BASE (defined, but empty)
        * KRB5_TYPE = heimdal
        * PYPACKAGE = python36
        * TERMINFO_TYPE = terminfo

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency bash-[0-9]*: found bash-4.4.012
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Tool dependency gtar-base>=1.13.25: found gtar-base-1.29
=> Tool dependency perl>=5.0: found perl-5.26.0nb3
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.3.5
=> Build dependency cmake>=2.8.5nb1: found cmake-3.9.3
=> Build dependency cwrappers>=20150314: found cwrappers-20170611
=> Full dependency libgit2>=0.26.0: found libgit2-0.26.0nb1
=> Full dependency llvm>=4.0.1nb1: found llvm-4.0.1nb1
=> Full dependency libssh2>=1.7.0nb1: found libssh2-1.8.0
=> Full dependency curl>=7.55.1nb1: found curl-7.55.1nb1
=> Full dependency http-parser>=2.7.0: found http-parser-2.7.1
===> Overriding tools for rust-1.20.0
===> Extracting for rust-1.20.0
/bin/mv /tmp/pkgs/lang/rust/work.x86_64/rust-std-1.19.0-x86_64-unknown-netbsd/rust-std-x86_64-unknown-netbsd/lib/rustlib/x86_64-unknown-netbsd /tmp/pkgs/lang/rust/work.x86_64/rust-1.19.0-x86_64-unknown-netbsd/rustc/lib/rustlib
===> Patching for rust-1.20.0
=> Applying pkgsrc patches for rust-1.20.0
=> Substituting "rpath" in src/bootstrap/bin/rustc.rs
===> Creating toolchain wrappers for rust-1.20.0
===> Configuring for rust-1.20.0
echo '[build]' > /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo 'rustc = "/tmp/pkgs/lang/rust/work.x86_64/rust-1.19.0-x86_64-unknown-netbsd/rustc/bin/rustc"'
/tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo 'cargo = "/tmp/pkgs/lang/rust/work.x86_64/rust-1.19.0-x86_64-unknown-netbsd/cargo/bin/cargo"'
/tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo 'python = "/usr/pkg/bin/python3.6"' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'vendor = true' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'extended = true' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'verbose = 2' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo '[install]' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'prefix = "/usr/pkg"' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'sysconfdir = ""' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'mandir = "man"' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo '[rust]' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo 'channel = "stable"' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'rpath = true' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'codegen-tests = false' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo '[dist]' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo 'src-tarball = false' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo '[llvm]' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
echo 'static-libstdcpp = false' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'ninja = true' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo '[target.x86_64-unknown-netbsd]' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml echo 'llvm-config = "/usr/pkg/bin/llvm-config"' >> /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/config.toml
===> Building for rust-1.20.0
cd /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src && env USETOOLS=no PTHREAD_CFLAGS=\ -pthread\ PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\ DL_LDFLAGS=\ -pthread DL_LIBS= PYTHON=/usr/pkg/bin/python3.6 CC=gcc CFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.6\ -I/usr/include/krb5 CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.6\ -I/usr/include/krb5 CXX=c++ CXXFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.6\ -I/usr/include/krb5 COMPILER_RPATH_FLAG=-Wl,-R F77=g77 FC=g77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/tmp/pkgs/lang/rust/work.x86_64/.cwrapper/bin:/tmp/pkgs/lang/rust/work.x86_64/.buildlink/bin:/tmp/pkgs/lang/rust/work.x86_64/.gcc/bin:/tmp/pkgs/lang/rust/work.x86_64/.tools/bin:/usr/pkg/bin:/home/paul/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/tmp/pkgs/lang/rust/work.x86_64/.home CWRAPPERS_CONFIG_DIR=/tmp/pkgs/lang/rust/work.x86_64/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/tmp/pkgs/lang/rust/work.x86_64/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG=/tmp/pkgs/lang/rust/work.x86_64/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/tmp/pkgs/lang/rust/work.x86_64/.buildlink/lib/pkgconfig:/tmp/pkgs/lang/rust/work.x86_64/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/tmp/pkgs/lang/rust/work.x86_64/.pkg-config.log PKG_CONFIG_PATH= KRB5_CONFIG=/usr/bin/krb5-config CWRAPPERS_CONFIG_DIR=/tmp/pkgs/lang/rust/work.x86_64/.cwrapper/config /usr/pkg/bin/python3.6 ./x.py dist running: /tmp/pkgs/lang/rust/work.x86_64/rust-1.19.0-x86_64-unknown-netbsd/cargo/bin/cargo build --manifest-path /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen
error: failed to run `rustc` to learn about target-specific information

Caused by:
process didn't exit successfully: `/tmp/pkgs/lang/rust/work.x86_64/rust-1.19.0-x86_64-unknown-netbsd/rustc/bin/rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --target x86_64-unknown-netbsd` (exit code: 101)
--- stderr
error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

thread 'rustc' panicked at 'failed to get current_exe: No such file or directory (os error 2)', /checkout/src/librustc/session/filesearch.rs:169
note: Run with `RUST_BACKTRACE=1` for a backtrace.


Traceback (most recent call last):
  File "./x.py", line 20, in <module>
    bootstrap.main()
File "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 694, in main
    bootstrap()
File "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 675, in bootstrap
    rb.build_bootstrap()
File "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 423, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
File "/tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 147, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /tmp/pkgs/lang/rust/work.x86_64/rust-1.19.0-x86_64-unknown-netbsd/cargo/bin/cargo build --manifest-path /tmp/pkgs/lang/rust/work.x86_64/rustc-1.20.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen
*** Error code 1

Stop.
make[1]: stopped in /build/pkgsrc/lang/rust
*** Error code 1

Stop.
make: stopped in /build/pkgsrc/lang/rust

+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+


Home | Main Index | Thread Index | Old Index