pkgsrc-Bugs archive

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

pkg/53244: Rust 1.24.1 build in pksrc 2018Q1



>Number:         53244
>Category:       pkg
>Synopsis:       Rust 1.24.1 build in pksrc 2018Q1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 01 09:15:01 +0000 2018
>Originator:     Mik
>Release:        2018Q1
>Organization:
>Environment:
NetBSD dk-17 7.1_STABLE NetBSD 7.1_STABLE (MYKERNEL) #3: Sat Feb 17 19:47:02 CET 2018  mik@dk-17:/usr/src/sys/arch/amd64/compile/MYKERNEL amd64

>Description:
Rustc build fails on my system when being built from pkgsrc. Here the complete log :
# RUST_BACKTRACE=1 make install
=> Bootstrap dependency digest>=20010302: found digest-20160304
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for rust-1.23.0-x86_64-unknown-netbsd.tar.gz
=> Checksum RMD160 OK for rust-1.23.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA512 OK for rust-1.23.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA1 OK for rust-std-1.23.0-x86_64-unknown-netbsd.tar.gz
=> Checksum RMD160 OK for rust-std-1.23.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA512 OK for rust-std-1.23.0-x86_64-unknown-netbsd.tar.gz
=> Checksum SHA1 OK for rustc-1.24.1-src.tar.gz
=> Checksum RMD160 OK for rustc-1.24.1-src.tar.gz
=> Checksum SHA512 OK for rustc-1.24.1-src.tar.gz
===> Installing dependencies for rust-1.24.1
==========================================================================
The following variables will affect the build process of this package,
rust-1.24.1.  Their current value is shown below:

        * KRB5_DEFAULT = heimdal
        * PYTHON_VERSION_DEFAULT = 27
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

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

        * KRB5BASE (defined, but empty)
        * KRB5_TYPE = heimdal
        * PYPACKAGE = python27

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 libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb1
=> Tool dependency bash-[0-9]*: found bash-4.4.18
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Tool dependency gtar-base>=1.13.25: found gtar-base-1.30
=> Tool dependency perl>=5.0: found perl-5.26.1nb2
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.4.1nb1
=> Build dependency cmake>=2.8.5nb1: found cmake-3.10.3
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency libgit2>=0.26.0: found libgit2-0.26.3
=> Full dependency python27>=2.7.1nb2: found python27-2.7.14
=> Full dependency libssh2>=1.7.0nb1: found libssh2-1.8.0
=> Full dependency curl>=7.57.0nb1: found curl-7.59.0
=> Full dependency http-parser>=2.7.0: found http-parser-2.8.0
===> Overriding tools for rust-1.24.1
===> Extracting for rust-1.24.1
set -e;									 if test -e /usr/pkgsrc/lang/rust/work/rust-1.23.0-x86_64-unknown-netbsd/install.sh	 -a ! -e /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc; then  cd /usr/pkgsrc/lang/rust/work/rust-1.23.0-x86_64-unknown-netbsd;		 /usr/pkg/bin/bash ./install.sh --prefix=/usr/pkgsrc/lang/rust/work/rust-bootstrap;	 cd /usr/pkgsrc/lang/rust/work/rust-std-1.23.0-x86_64-unknown-netbsd;		 /usr/pkg/bin/bash ./install.sh --prefix=/usr/pkgsrc/lang/rust/work/rust-bootstrap;	 fi
install: creating uninstall script at /usr/pkgsrc/lang/rust/work/rust-bootstrap/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'cargo'
install: installing component 'rls-preview'
install: installing component 'rustfmt-preview'
install: installing component 'rust-analysis-x86_64-unknown-netbsd'
install: installing component 'rust-std-x86_64-unknown-netbsd'
install: installing component 'rust-docs'

    Rust is ready to roll.

install: uninstalling component 'rust-std-x86_64-unknown-netbsd'
install: creating uninstall script at /usr/pkgsrc/lang/rust/work/rust-bootstrap/lib/rustlib/uninstall.sh
install: installing component 'rust-std-x86_64-unknown-netbsd'

    std is standing at the ready.

===> Patching for rust-1.24.1
=> Applying pkgsrc patches for rust-1.24.1
=> Substituting "rpath" in src/bootstrap/bin/rustc.rs
===> Creating toolchain wrappers for rust-1.24.1
===> Configuring for rust-1.24.1
configure: processing command line
configure: 
configure: rust.dist-src        := False
configure: build.extended       := True
configure: build.vendor         := True
configure: rust.channel         := stable
configure: build.python         := /usr/pkg/bin/python2.7
configure: rust.rpath           := True
configure: install.sysconfdir   := /usr/pkg/etc
configure: rust.codegen-tests   := False
configure: install.prefix       := /usr/pkg
configure: build.rustc          := /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/ ...
configure: build.cargo          := /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/ ...
configure: llvm.static-libstdcpp := False
configure: llvm.ninja           := False
configure: install.mandir       := /usr/pkg/man
configure: build.configure-args := ['--prefix=/usr/pkg', '--mandir=/usr/pkg/man', ...
configure: 
configure: writing `config.toml` in current directory
configure: 
configure: run `python /usr/pkgsrc/lang/rust/work/rustc-1.24.1-src/x.py --help`
configure: 
=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp
===> Building for rust-1.24.1
cd /usr/pkgsrc/lang/rust/work/rustc-1.24.1-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/python2.7 CC=gcc CFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/include/krb5 CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\ -I/usr/include/krb5 CXX=c++ CXXFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -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=/usr/pkgsrc/lang/rust/work/.cwrapper/bin:/usr/pkgsrc/lang/rust/work/.buildlink/bin:/usr/pkgsrc/lang/rust/work/.gcc/bin:/usr/pkgsrc/lang/rust/work/.tools/bin:/usr/pkg/bin:/home/mik/.cargo/bin:/home/mik/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/pkg/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/usr/pkgsrc/lang/rust/work/.home CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/lang/rust/work/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/pkg PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no LIBTOOL="/usr/pkgsrc/lang/rust/work/.cwrapper/bin/libtool " 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_IN
 STALL_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=/usr/pkgsrc/lang/rust/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG=/usr/pkgsrc/lang/rust/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/usr/pkgsrc/lang/rust/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/lang/rust/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/usr/pkgsrc/lang/rust/work/.pkg-config.log PKG_CONFIG_PATH= KRB5_CONFIG=/usr/bin/krb5-config CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/lang/rust/work/.cwrapper/config  /usr/pkg/bin/python2.7 ./x.py -v dist
running: /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build --manifest-path /usr/pkgsrc/lang/rust/work/rustc-1.24.1-src/src/bootstrap/Cargo.toml --verbose --frozen
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `/usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc - --crate-name ___ --print=file-names --target x86_64-unknown-netbsd --crate-type bin --crate-type proc-macro --crate-type rlib` (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

note: rustc 1.23.0 (766bd11c8 2018-01-01) running on x86_64-unknown-netbsd

note: run with `RUST_BACKTRACE=1` for a backtrace

thread 'rustc' panicked at 'failed to get current_exe: No such file or directory (os error 2)', /checkout/src/librustc/session/filesearch.rs:167:22
stack backtrace:
   0: <std::sys::imp::backtrace::tracing::imp::UnwindError as core::fmt::Display>::fmt
   1: __rdl_shrink_in_place
   2: std::panicking::Location::column
   3: std::panicking::Location::column
   4: std::panicking::rust_panic_with_hook
   5: <alloc::vec::Vec<(alloc::string::String, u64)> as rustc::session::config::dep_tracking::DepTrackingHash>::hash
   6: rustc::session::filesearch::get_or_default_sysroot
   7: rustc::session::build_session_
   8: rustc::session::build_session_with_codemap
   9: rustc_driver::run_compiler
  10: rustc_driver::target_features::add_configuration
  11: __rust_maybe_catch_panic
  12: <rustc_driver::derive_registrar::Finder as rustc::hir::itemlikevisit::ItemLikeVisitor<'v>>::visit_impl_item
  13: std::sys::imp::thread::Thread::new
  14: __libc_thr_exit
  15: __mknod50


Traceback (most recent call last):
  File "./x.py", line 20, in <module>
    bootstrap.main()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.24.1-src/src/bootstrap/bootstrap.py", line 758, in main
    bootstrap()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.24.1-src/src/bootstrap/bootstrap.py", line 738, in bootstrap
    build.build_bootstrap()
  File "/usr/pkgsrc/lang/rust/work/rustc-1.24.1-src/src/bootstrap/bootstrap.py", line 625, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/usr/pkgsrc/lang/rust/work/rustc-1.24.1-src/src/bootstrap/bootstrap.py", line 148, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build --manifest-path /usr/pkgsrc/lang/rust/work/rustc-1.24.1-src/src/bootstrap/Cargo.toml --verbose --frozen
*** Error code 1

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

Stop.
make: stopped in /usr/pkgsrc/lang/rust
#

>How-To-Repeat:
build rust from pkgsrc 2018Q1 branch
>Fix:


Home | Main Index | Thread Index | Old Index