pkgsrc-Bugs archive

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

Re: pkg/53671 (lang/rust build breaks on read-only source tree)



The following reply was made to PR pkg/53671; it has been noted by GNATS.

From: Havard Eidnes <he%NetBSD.org@localhost>
To: hf%spg.tu-darmstadt.de@localhost
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Mon, 22 Oct 2018 16:03:59 +0200 (CEST)

 > On 10/22/18 15:34, Havard Eidnes wrote:
 >>> --- stderr
 >>> thread 'main' panicked at 'failed to get current_exe:
 >>> /proc/curproc/exe doesn't point to regular file.',
 >>> librustc/session/filesearch.rs:167:23
 >>> note: Run with `RUST_BACKTRACE=3D1` for a backtrace.
 >> Hm.
 >> Are you perhaps doing the build in a chroot?
 > =
 
 > No, I originally built with pkg_rr, then by hand.
 
 Double "hm".  BTW, I get:
 
 : {7} ; ls -l /proc/curproc/exe
 lr-xr-xr-x  1 root  wheel  7 Oct 22 15:31 /proc/curproc/exe@ -> /bin/ls=
 
 : {8} ; =
 
 
 Do you get something similar?
 
 >> I suspect this problem was there before I touched the package...
 >
 > The last successful build was from 01 Oct.
 
 Well, what can I say?  "It works for me."  I run my builds on a
 NetBSD/amd64 8.0 host.  The recent changes to the package's
 Makefile has been:
 
 30 sep -- update to 1.29.1
 08 oct -- fix "duplicate pre-build target"
 09 oct -- adjust URIs for ryoon binaries
 13 oct -- my major commit(s) with commented-out hooks for cross-buildin=
 g
 15 oct -- add pointers to (untested) sparc64 and earmv7hf bootstrap kit=
 s
 17 oct -- use ggrep, and adjust for SunOS
 18 oct -- fix WRKDIR reference
 18 oct -- apply fix for read-only source tree
 
 And ... I've not updated the amd64 bootstrap kit, so the bits you
 run from that should be the same ones as from before October 1.
 
 I just re-updated to HEAD in the package, and started a new
 native build for amd64, and the corresponding start of the build
 log in my case is:
 
 =3D=3D=3D> Building for rust-1.29.1nb2
 /bin/cp -f /usr/pkgsrc/lang/rust/work/rustc-1.29.1-src/src/vendor/libss=
 h2-sys/libssh2/include/libssh2.h  /usr/pkgsrc/lang/rust/work/.buildlink=
 /include/cd /usr/pkgsrc/lang/rust/work/rustc-1.29.1-src  && env LD_LIBR=
 ARY_PATH=3D/usr/pkgsrc/lang/rust/work/rust-bootstrap/lib CARGO_BUILD_JO=
 BS=3D4 USETOOLS=3Dno PTHREAD_CFLAGS=3D\ -pthread\  PTHREAD_LDFLAGS=3D\ =
 -pthread PTHREAD_LIBS=3D PTHREADBASE=3D/usr DL_CFLAGS=3D\ -pthread\  DL=
 _LDFLAGS=3D\ -pthread DL_LIBS=3D PYTHON=3D/usr/pkg/bin/python2.7 CC=3Dg=
 cc CFLAGS=3D-O2\ -D_FORTIFY_SOURCE=3D2\ -I/usr/pkg/include\ -I/usr/incl=
 ude\ -I/usr/include/krb5 CPPFLAGS=3D-I/usr/pkg/include\ -I/usr/include\=
  -I/usr/include/krb5 CXX=3Dc++ CXXFLAGS=3D-O2\ -D_FORTIFY_SOURCE=3D2\ -=
 I/usr/pkg/include\ -I/usr/include\ -I/usr/include/krb5 COMPILER_RPATH_F=
 LAG=3D-Wl,-R F77=3Dg77 FC=3Dg77 FFLAGS=3D-O LANG=3DC LC_ALL=3DC LC_COLL=
 ATE=3DC LC_CTYPE=3DC LC_MESSAGES=3DC LC_MONETARY=3DC LC_NUMERIC=3DC LC_=
 TIME=3DC LDFLAGS=3D-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,=
 -R/usr/lib LINKER_RPATH_FLAG=3D-R PATH=3D/usr/pkgsrc/lang/rust/work/.cw=
 rapper/bin:/usr/pkgsrc/lang/rust/work/.buildlink/bin:/usr/pkgsrc/lang/r=
 ust/work/.gcc/bin:/usr/pkgsrc/lang/rust/work/.tools/bin:/usr/pkg/bin:/h=
 ome/he/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:/u=
 sr/pkg/bin:/usr/X11R7/bin PREFIX=3D/usr/pkg MAKELEVEL=3D0 CONFIG_SITE=3D=
  PKG_SYSCONFDIR=3D/usr/pkg/etc HOME=3D/usr/pkgsrc/lang/rust/work/.home =
 CWRAPPERS_CONFIG_DIR=3D/usr/pkgsrc/lang/rust/work/.cwrapper/config CPP=3D=
 cpp LOCALBASE=3D/usr/pkg X11BASE=3D/usr/X11R7 PKGMANDIR=3Dman PKGINFODI=
 R=3Dinfo PKGGNUDIR=3Dgnu/ MAKECONF=3D/dev/null OBJECT_FMT=3DELF USETOOL=
 S=3Dno LIBTOOL=3D"/usr/pkgsrc/lang/rust/work/.cwrapper/bin/libtool " BS=
 D_INSTALL_PROGRAM=3D/usr/bin/install\ -c\ -s\ -o\ he\ -g\ users\ -m\ 75=
 5 BSD_INSTALL_SCRIPT=3D/usr/bin/install\ -c\ -o\ he\ -g\ users\ -m\ 755=
  BSD_INSTALL_LIB=3D/usr/bin/install\ -c\ -o\ he\ -g\ users\ -m\ 755 BSD=
 _INSTALL_DATA=3D/usr/bin/install\ -c\ -o\ he\ -g\ users\ -m\ 644 BSD_IN=
 STALL_MAN=3D/usr/bin/install\ -c\ -o\ he\ -g\ users\ -m\ 644 BSD_INSTAL=
 L=3D/usr/bin/install BSD_INSTALL_PROGRAM_DIR=3D/usr/bin/install\ -d\ -o=
 \ he\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=3D/usr/bin/install\ -d\=
  -o\ he\ -g\ users\ -m\ 755 BSD_INSTALL_LIB_DIR=3D/usr/bin/install\ -d\=
  -o\ he\ -g\ users\ -m\ 755 BSD_INSTALL_DATA_DIR=3D/usr/bin/install\ -d=
 \ -o\ he\ -g\ users\ -m\ 755 BSD_INSTALL_MAN_DIR=3D/usr/bin/install\ -d=
 \ -o\ he\ -g\ users\ -m\ 755 BSD_INSTALL_GAME=3D/usr/bin/install\ -c\ -=
 s\ -o\ he\ -g\ users\ -m\ 2555 BSD_INSTALL_GAME_DATA=3D/usr/bin/install=
 \ -c\ -o\ he\ -g\ users\ -m\ 664 BSD_INSTALL_GAME_DIR=3D/usr/bin/instal=
 l\ -d\ -o\ he\ -g\ users\ -m\ 775 INSTALL_INFO=3D MAKEINFO=3D/usr/pkgsr=
 c/lang/rust/work/.tools/bin/makeinfo FLEX=3D BISON=3D PKG_CONFIG=3D/usr=
 /pkgsrc/lang/rust/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=3D/usr/p=
 kgsrc/lang/rust/work/.buildlink/lib/pkgconfig:/usr/pkgsrc/lang/rust/wor=
 k/.buildlink/share/pkgconfig PKG_CONFIG_LOG=3D/usr/pkgsrc/lang/rust/wor=
 k/.pkg-config.log PKG_CONFIG_PATH=3D KRB5_CONFIG=3D/usr/bin/krb5-config=
  CWRAPPERS_CONFIG_DIR=3D/usr/pkgsrc/lang/rust/work/.cwrapper/config  /u=
 sr/pkg/bin/python2.7 ./x.py -v dist
 running: /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build --ma=
 nifest-path /usr/pkgsrc/lang/rust/work/rustc-1.29.1-src/src/bootstrap/C=
 argo.toml --frozen
    Compiling unicode-xid v0.1.0
    Compiling serde v1.0.70
    Compiling fixedbitset v0.1.9
    Compiling ordermap v0.3.5
    Compiling itoa v0.4.2
    Compiling dtoa v0.4.3
    Compiling cfg-if v0.1.4
    Compiling cc v1.0.18
    Compiling libc v0.2.42
    Compiling build_helper v0.1.0 (file:///usr/pkgsrc/lang/rust/work/rus=
 tc-1.29.1-src/src/build_helper)
    Compiling getopts v0.2.17
    Compiling lazy_static v0.2.11
    Compiling proc-macro2 v0.4.8
    Compiling petgraph v0.4.12
    Compiling filetime v0.2.1
    Compiling num_cpus v1.8.0
    Compiling time v0.1.40
    Compiling cmake v0.1.31
    Compiling quote v0.6.3
    Compiling syn v0.14.4
    Compiling serde_derive v1.0.70
    Compiling serde_json v1.0.24
    Compiling toml v0.4.6
    Compiling bootstrap v0.0.0 (file:///usr/pkgsrc/lang/rust/work/rustc-=
 1.29.1-src/src/bootstrap)
     Finished dev [unoptimized] target(s) in 46.15s
 running: /usr/pkgsrc/lang/rust/work/rustc-1.29.1-src/build/bootstrap/de=
 bug/bootstrap -v dist
 finding compilers
 CC_x86_64-unknown-netbsd =3D "gcc"
 CFLAGS_x86_64-unknown-netbsd =3D ["-O2", "-ffunction-sections", "-fdata=
 -sections", "-fPIC", "-O2", "-D_FORTIFY_SOURCE=3D2", "-I/usr/pkg/includ=
 e", "-I/usr/include", "-I/usr/include/krb5", "-m64"]
 AR_x86_64-unknown-netbsd =3D "ar"
 CXX_x86_64-unknown-netbsd =3D "c++"
 running sanity check
 learning about cargo
 > Docs { stage: 2, host: "x86_64-unknown-netbsd" }
 ...
 
 and it's still going (has progressed far beyond this point; it's
 doing the first LLVM build pass as I write this).
 
 Confused.
 
 - Havard
 


Home | Main Index | Thread Index | Old Index