NetBSD Problem Report #53671

From hf@spg.tu-darmstadt.de  Tue Oct 16 09:28:58 2018
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BAED17A14F
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Oct 2018 09:28:58 +0000 (UTC)
Message-Id: <201810160927.w9G9RVsk014447@Gstoder.nt.e-technik.tu-darmstadt.de>
Date: Tue, 16 Oct 2018 11:27:31 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: lang/rust build breaks on read-only source tree
X-Send-Pr-Version: 3.95

>Number:         53671
>Category:       pkg
>Synopsis:       lang/rust build breaks on read-only source tree
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    he
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 16 09:30:00 +0000 2018
>Closed-Date:    Fri Feb 22 07:31:58 +0000 2019
>Last-Modified:  Fri Feb 22 07:31:58 +0000 2019
>Originator:     Hauke Fath
>Release:        NetBSD 8.99.25
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: NetBSD Gstoder 8.99.25 NetBSD 8.99.25 (GA-MA770-UD3-$Revision$) #0: Thu Oct 4 16:59:35 CEST 2018 hf@Hochstuhl:/var/obj/netbsd-builds/developer/amd64/sys/arch/amd64/compile/GA-MA770-UD3 amd64
Architecture: x86_64
Machine: amd64
>Description:

	Building lang/rust on a read-only pkgsrc source tree 

% fgrep WRKOBJDIR /etc/mk.conf 
WRKOBJDIR =                     /var/obj/pkgsrc
PACKAGES =                      ${WRKOBJDIR}/packages
%

	breaks with

[...]
/bin/cp -f /var/obj/pkgsrc/lang/rust/work/rustc-1.29.1-src/src/vendor/libc/.cargo-checksum.json.patched  /var/obj/pkgsrc/lang/rust/work/rustc-1.29.1-src/src/vendor/libc/.cargo-checksum.json
/bin/rm -f /amd/hochstuhl/public/pkgsrc/lang/rust/files/c++-wrap
/bin/rm -f /amd/hochstuhl/public/pkgsrc/lang/rust/files/clang++-wrap
/bin/rm -f /amd/hochstuhl/public/pkgsrc/lang/rust/files/clang-wrap
/bin/ln -s /amd/hochstuhl/public/pkgsrc/lang/rust/files/gcc-wrap /amd/hochstuhl/public/pkgsrc/lang/rust/files/c++-wrap
ln: /amd/hochstuhl/public/pkgsrc/lang/rust/files/c++-wrap: Read-only file system
*** Error code 1

	The relevant changes (not really explained in the log message)
	in lang/rust/Makefile are

[...]
1.55         (he       13-Oct-18): .if ${OPSYS} == "NetBSD"
1.55         (he       13-Oct-18):      ${RM} -f ${.CURDIR}/files/c++-wrap
1.58         (he       15-Oct-18):      ${RM} -f ${.CURDIR}/files/clang++-wrap
1.58         (he       15-Oct-18):      ${RM} -f ${.CURDIR}/files/clang-wrap
1.55         (he       13-Oct-18):      ${LN} -s ${.CURDIR}/files/gcc-wrap ${.CURDIR}/files/c++-wrap
1.58         (he       15-Oct-18):      ${LN} -s ${.CURDIR}/files/gcc-wrap ${.CURDIR}/files/clang++-wrap
1.58         (he       15-Oct-18):      ${LN} -s ${.CURDIR}/files/gcc-wrap ${.CURDIR}/files/clang-wrap
1.57         (he       13-Oct-18):      ${CHMOD} +x ${.CURDIR}/files/gcc-wrap
1.55         (he       13-Oct-18): .endif
[...]



>How-To-Repeat:

	Build package from a read-only tree.


>Fix:

	Yes, please.



>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->he
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Tue, 16 Oct 2018 11:33:46 +0000
Responsible-Changed-Why:
he changed this, I think.


State-Changed-From-To: open->feedback
State-Changed-By: he@NetBSD.org
State-Changed-When: Mon, 22 Oct 2018 08:17:58 +0000
State-Changed-Why:
Should be fixed with lang/rust/Makefile revision 1.61.


From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: Havard Eidnes <he@netbsd.org>, gnats-admin@NetBSD.org
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Mon, 22 Oct 2018 11:53:05 +0200

 On 10/22/18 10:17, he@NetBSD.org wrote:
 > Synopsis: lang/rust build breaks on read-only source tree
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: he@NetBSD.org
 > State-Changed-When: Mon, 22 Oct 2018 08:17:58 +0000
 > State-Changed-Why:
 > Should be fixed with lang/rust/Makefile revision 1.61.

 Thanks for looking at this.

 The immediate issue appears fixed, but the build now breaks very early with

 [...]
 => Modifying libtool scripts to use pkgsrc libtool
 => Modifying libtool scripts to use pkgsrc depcomp
 ===> Building for rust-1.29.1nb2
 /bin/cp -f 
 /var/obj/pkgsrc/lang/rust/work/rustc-1.29.1-src/src/vendor/libssh2-sys/libssh2/include/libssh2.h 
   /var/obj/pkgsrc/lang/rust/work/.buildlink/include/
 cd /var/obj/pkgsrc/lang/rust/work/rustc-1.29.1-src  && env 
 LD_LIBRARY_PATH=/var/obj/pkgsrc/lang/rust/work/rust-bootstrap/lib 
 CARGO_BUILD_JOBS=1 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=/var/obj/pkgsrc/lang/rust/work/.cwrapper/bin:/var/obj/pkgsrc/lang/rust/work/.buildlink/bin:/var/obj/pkgsrc/lang/rust/work/.gcc/bin:/var/obj/pkgsrc/lang/rust/work/.tools/bin:/usr/pkg/bin:/home/hf/bin:/usr/pkg/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R7/bin:/usr/pkg/sbin:/sbin:/usr/sbin:/usr/local/sbin:/usr/pkg/bin:/usr/X11R7/bin 
 PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/etc/pkg 
 HOME=/var/obj/pkgsrc/lang/rust/work/.home 
 CWRAPPERS_CONFIG_DIR=/var/obj/pkgsrc/lang/rust/work/.cwrapper/config 
 CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man 
 PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF 
 USETOOLS=no 
 LIBTOOL="/var/obj/pkgsrc/lang/rust/work/.cwrapper/bin/libtool " 
 BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ hf\ -g\ users\ -m\ 755 
 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ hf\ -g\ users\ -m\ 755 
 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ hf\ -g\ users\ -m\ 755 
 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ hf\ -g\ users\ -m\ 644 
 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ hf\ -g\ users\ -m\ 644 
 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ 
 -d\ -o\ hf\ -g\ users\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ 
 -d\ -o\ hf\ -g\ users\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ 
 -o\ hf\ -g\ users\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ 
 -o\ hf\ -g\ users\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ 
 hf\ -g\ users\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ 
 hf\ -g\ users\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ 
 hf\ -g\ users\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ 
 hf\ -g\ users\ -m\ 775 INSTALL_INFO= 
 MAKEINFO=/var/obj/pkgsrc/lang/rust/work/.tools/bin/makeinfo FLEX= BISON= 
 PKG_CONFIG=/var/obj/pkgsrc/lang/rust/work/.tools/bin/pkg-config 
 PKG_CONFIG_LIBDIR=/var/obj/pkgsrc/lang/rust/work/.buildlink/lib/pkgconfig:/var/obj/pkgsrc/lang/rust/work/.buildlink/share/pkgconfig 
 PKG_CONFIG_LOG=/var/obj/pkgsrc/lang/rust/work/.pkg-config.log 
 PKG_CONFIG_PATH= KRB5_CONFIG=/usr/bin/krb5-config 
 CWRAPPERS_CONFIG_DIR=/var/obj/pkgsrc/lang/rust/work/.cwrapper/config 
 /usr/pkg/bin/python2.7 ./x.py -v dist
 running: /var/obj/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build 
 --manifest-path 
 /var/obj/pkgsrc/lang/rust/work/rustc-1.29.1-src/src/bootstrap/Cargo.toml 
 --frozen
 error: process didn't exit successfully: 
 `/var/obj/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc -vV` (exit 
 code: 101)
 --- stdout
 rustc 1.28.0 (9634041f0 2018-07-30)
 binary: rustc
 commit-hash: 9634041f0e8c0f3191d2867311276f19d0a42564
 commit-date: 2018-07-30
 host: x86_64-unknown-netbsd
 release: 1.28.0
 rustc 1.28.0 (9634041f0 2018-07-30)
 binary: rustc
 commit-hash: 9634041f0e8c0f3191d2867311276f19d0a42564
 commit-date: 2018-07-30
 host: x86_64-unknown-netbsd
 release: 1.28.0

 --- 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=1` for a backtrace.

 error: internal compiler error: unexpected panic

 thread 'main' panicked at 'cannot load the default codegen backend 
 twice', librustc_driver/lib.rs:274:5

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

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



 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

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

 > --- 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=1` for a backtrace.

 Hm.

 Are you perhaps doing the build in a chroot?

 If you are chroot'ed, what does "ls -l /proc/curproc/exe" give you?

 I suspect this problem was there before I touched the package...

 Regards,

 - Havard

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: Havard Eidnes <he@NetBSD.org>
Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Mon, 22 Oct 2018 15:40:13 +0200

 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=1` for a backtrace.
 > 
 > Hm.
 > 
 > Are you perhaps doing the build in a chroot?

 No, I originally built with pkg_rr, then by hand.

 > I suspect this problem was there before I touched the package...

 The last successful build was from 01 Oct.

 Cheerio,
 hauke

 -- 
       The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email	        Institut für Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
       Respect for open standards              Ruf +49-6151-16-21344

From: Havard Eidnes <he@NetBSD.org>
To: hf@spg.tu-darmstadt.de
Cc: gnats-bugs@NetBSD.org
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

From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Mon, 22 Oct 2018 14:38:45 +0000

 kern/52598 was kinda similar. I don't know what the exact fix was, it
 was during a hectic time for -current.

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

 On Mon, 22 Oct 2018 16:03:59 +0200 (CEST), Havard Eidnes wrote:
 > Double "hm".  BTW, I get:
 >=20
 > : {7} ; ls -l /proc/curproc/exe
 > lr-xr-xr-x  1 root  wheel  7 Oct 22 15:31 /proc/curproc/exe@ -> /bin/ls
 > : {8} ;=20
 >=20
 > Do you get something similar?

 I don't do procfs on any NetBSD machines here (except for the linux=20
 emulation). lang/rust certainly has shown hiccups, but has never=20
 required /proc before.

 > Well, what can I say?  "It works for me."  I run my builds on a
 > NetBSD/amd64 8.0 host. =20

 The machine here has 8.99.25 on netbsd-8 userland. I could re-try with=20
 an -8 kernel to see if it makes a difference.

 > The recent changes to the package's
 > Makefile has been:
 >=20
 > 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-building
 > 15 oct -- add pointers to (untested) sparc64 and earmv7hf bootstrap kits
 > 17 oct -- use ggrep, and adjust for SunOS
 > 18 oct -- fix WRKDIR reference
 > 18 oct -- apply fix for read-only source tree
 >=20
 > 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.

 "Interesting."

 Cheerio,
 hauke

 --=20
      The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email            Institut f=FCr Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-21344

From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: Havard Eidnes <he@netbsd.org>, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, 
	Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Mon, 22 Oct 2018 18:55:18 +0200

 Rust has always required a working proc filesystem, ideally mounted
 with -o linux. I have
 http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=53244
 assigned to me to add a warning to the build.

From: coypu@sdf.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Mon, 22 Oct 2018 18:18:53 +0000

 We have a sysctl to replace the need for procfs in -8,  it doesn't exist
 on -7 though.

 https://github.com/rust-lang/rust/blob/1114ab684fbad001c4e580326d8eb4d8c4e917d3/src/libstd/sys/unix/os.rs#L228-L256

From: triaxx <triaxx@triaxx.org>
To: gnats-bugs@netbsd.org
Cc: he@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, Hauke
 Fath <hf@spg.tu-darmstadt.de>
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Tue, 01 Jan 2019 11:18:44 +0100

 Le 2018-10-22 15:35, Havard Eidnes a écrit :
 > The following reply was made to PR pkg/53671; it has been noted by 
 > GNATS.
 > 
 > From: Havard Eidnes <he@NetBSD.org>
 > To: hf@spg.tu-darmstadt.de
 > Cc: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org
 > Subject: Re: pkg/53671 (lang/rust build breaks on read-only source 
 > tree)
 > Date: Mon, 22 Oct 2018 15:34:36 +0200 (CEST)
 > 
 >  > --- 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=1` for a backtrace.
 > 
 >  Hm.
 > 
 >  Are you perhaps doing the build in a chroot?
 > 
 >  If you are chroot'ed, what does "ls -l /proc/curproc/exe" give you?
 > 
 >  I suspect this problem was there before I touched the package...
 > 
 >  Regards,
 > 
 >  - Havard

 Hi,

 I just built lang/rust in a chroot with a procfs mounted in it. I get 
 the very same error message about /proc/curproc/exe.

 Fred

State-Changed-From-To: feedback->closed
State-Changed-By: hauke@NetBSD.org
State-Changed-When: Tue, 19 Feb 2019 15:48:41 +0000
State-Changed-Why:
rust 1.32 builds fine -- even without mounted /proc.


State-Changed-From-To: closed->open
State-Changed-By: triaxx@NetBSD.org
State-Changed-When: Thu, 21 Feb 2019 05:58:31 +0000
State-Changed-Why:
The build still fails
http://mail-index.netbsd.org/pkgsrc-bugs/2019/02/21/msg065996.html


From: triaxx <triaxx@triaxx.org>
To: gnats-bugs@netbsd.org
Cc: he@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 hauke@netbsd.org, Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Thu, 21 Feb 2019 06:52:28 +0100

 Le 2019-02-19 16:48, hauke@NetBSD.org a écrit :
 > Synopsis: lang/rust build breaks on read-only source tree
 > 
 > State-Changed-From-To: feedback->closed
 > State-Changed-By: hauke@NetBSD.org
 > State-Changed-When: Tue, 19 Feb 2019 15:48:41 +0000
 > State-Changed-Why:
 > rust 1.32 builds fine -- even without mounted /proc.

 I have just tried to build lang/rust 1.32 into a fresh sandbox without 
 mounted /proc and it failed.

 * uname -a && cat /tree/pkgsrc/CVS/Tag
 ######################################

 NetBSD hydralisk.triaxx.org 8.0 NetBSD 8.0 (HYDRALISK) #0: Mon Jan  7 
 23:57:12 CET 2019  
 root@hydralisk.triaxx.org:/mnt/ccd0/netbsd/obj.amd64/sys/arch/amd64/compile/HYDRALISK 
 amd64
 NHEAD

 * /usr/pkg/etc/mk.conf
 ######################

 # Example /usr/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
 # mer. févr. 20 14:38:54 GMT 2019

 .ifdef BSD_PKG_MK	# begin pkgsrc settings

 ABI=			64

 PKG_DBDIR=		/usr/pkg/pkgdb
 LOCALBASE=		/usr/pkg
 VARBASE=		/var
 PKG_TOOLS_BIN=		/usr/pkg/sbin
 PKGINFODIR=		info
 PKGMANDIR=		man


 .endif			# end pkgsrc settings

 * bmake build log:
 ##################

 => Bootstrap dependency digest>=20010302: found digest-20190127
 ===> Skipping vulnerability checks.
 WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
 WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /usr/pkg/pkgdb 
 fetch-pkg-vulnerabilities'.
 => Checksum SHA1 OK for rustc-1.32.0-src.tar.gz
 => Checksum RMD160 OK for rustc-1.32.0-src.tar.gz
 => Checksum SHA512 OK for rustc-1.32.0-src.tar.gz
 => Checksum SHA1 OK for rust-1.32.0-x86_64-unknown-netbsd.tar.gz
 => Checksum RMD160 OK for rust-1.32.0-x86_64-unknown-netbsd.tar.gz
 => Checksum SHA512 OK for rust-1.32.0-x86_64-unknown-netbsd.tar.gz
 => Checksum SHA1 OK for rust-std-1.32.0-x86_64-unknown-netbsd.tar.gz
 => Checksum RMD160 OK for rust-std-1.32.0-x86_64-unknown-netbsd.tar.gz
 => Checksum SHA512 OK for rust-std-1.32.0-x86_64-unknown-netbsd.tar.gz
 ===> Installing dependencies for rust-1.32.0
 ==========================================================================
 The following variables will affect the build process of this package,
 rust-1.32.0.  Their current value is shown below:

          * 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:

          * PYPACKAGE = python27

 You may want to abort the process now with CTRL-C and change their value
 before continuing.  Be sure to run `/usr/pkg/bin/bmake clean' after
 the changes.
 ==========================================================================
 => Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb2
 => Tool dependency bash-[0-9]*: found bash-5.0
 => Tool dependency gmake>=3.81: found gmake-4.2.1nb1
 => Tool dependency gtar-base>=1.13.25: found gtar-base-1.31
 => Tool dependency perl>=5.0: found perl-5.28.1
 => Tool dependency pkgconf-[0-9]*: found pkgconf-1.4.1nb1
 => Build dependency cmake>=2.8.5nb1: found cmake-3.13.4
 => Build dependency python27>=2.7.1nb2: found python27-2.7.15nb1
 => Build dependency cwrappers>=20150314: found cwrappers-20180325
 ===> Overriding tools for rust-1.32.0
 ===> Extracting for rust-1.32.0
 set -e;									 if test -e 
 /tree/pkgsrc/lang/rust/work/rust-1.32.0-x86_64-unknown-netbsd/install.sh	 
 -a ! -e /tree/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc; then  cd 
 /tree/pkgsrc/lang/rust/work/rust-1.32.0-x86_64-unknown-netbsd;		 
 /usr/pkg/bin/bash ./install.sh 
 --prefix=/tree/pkgsrc/lang/rust/work/rust-bootstrap;	 cd 
 /tree/pkgsrc/lang/rust/work/rust-std-1.32.0-x86_64-unknown-netbsd;		 
 /usr/pkg/bin/bash ./install.sh 
 --prefix=/tree/pkgsrc/lang/rust/work/rust-bootstrap;	 fi
 install: creating uninstall script at 
 /tree/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 'clippy-preview'
 install: installing component 'rustfmt-preview'
 install: installing component 'llvm-tools-preview'
 install: installing component 'rust-analysis-x86_64-unknown-netbsd'
 install: installing component 'rust-std-x86_64-unknown-netbsd'

      Rust is ready to roll.

 install: uninstalling component 'rust-std-x86_64-unknown-netbsd'
 install: creating uninstall script at 
 /tree/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.

 /bin/cp 
 /tree/pkgsrc/lang/rust/work/rustc-1.32.0-src/vendor/rand/.cargo-checksum.json 

 /tree/pkgsrc/lang/rust/work/rustc-1.32.0-src/vendor/rand/.cargo-checksum.json.orig
 /usr/bin/sed -e 
 's/cb94a0b54e47022b2e9b58b45e0196785c61d083760333276226da435cc040d9/bcb195562cf830c9e2078757e6d0976f86ede59816ff305e21a2764a4a4cf43e/' 
 /tree/pkgsrc/lang/rust/work/rustc-1.32.0-src/vendor/rand/.cargo-checksum.json.orig 
  > /tree/pkgsrc/lang/rust/work/rustc-1.32.0-src/vendor/rand/.cargo-checksum.json
 SDIR=/tree/pkgsrc/lang/rust/work/scripts;  /bin/mkdir -p ${SDIR};  cd 
 ${SDIR};  /bin/rm -f c++-wrap;  /bin/rm -f clang++-wrap;  /bin/rm -f 
 clang-wrap;  /bin/cp /tree/pkgsrc/lang/rust/files/gcc-wrap .;  
 /bin/chmod +x gcc-wrap;  /bin/ln -s gcc-wrap c++-wrap;  /bin/ln -s 
 gcc-wrap clang++-wrap;  /bin/ln -s gcc-wrap clang-wrap
 ===> Patching for rust-1.32.0
 => Applying pkgsrc patches for rust-1.32.0
 ===> Creating toolchain wrappers for rust-1.32.0
 ===> Configuring for rust-1.32.0
 => Substituting "rpath" in src/bootstrap/bin/rustc.rs
 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          := 
 /tree/pkgsrc/lang/rust/work/rust-bootstrap/bin ...
 configure: build.cargo          := 
 /tree/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 /tree/pkgsrc/lang/rust/work/rustc-1.32.0-src/x.py 
 --help`
 configure:
 => Modifying libtool scripts to use pkgsrc libtool
 => Modifying libtool scripts to use pkgsrc depcomp
 ===> Building for rust-1.32.0
 cd /tree/pkgsrc/lang/rust/work/rustc-1.32.0-src  && /usr/bin/env 
 CARGO_BUILD_JOBS=1 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=cc CFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ 
 -I/usr/include CPPFLAGS=-I/usr/pkg/include\ -I/usr/include CXX=c++ 
 CXXFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include 
 COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 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\ -L/usr/lib\ -Wl,-R/usr/lib\ 
 -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R 
 PATH=/tree/pkgsrc/lang/rust/work/.cwrapper/bin:/tree/pkgsrc/lang/rust/work/.buildlink/bin:/tree/pkgsrc/lang/rust/work/.gcc/bin:/tree/pkgsrc/lang/rust/work/.tools/bin:/usr/pkg/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin 
 PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc 
 HOME=/tree/pkgsrc/lang/rust/work/.home 
 CWRAPPERS_CONFIG_DIR=/tree/pkgsrc/lang/rust/work/.cwrapper/config 
 CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man 
 PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF 
 USETOOLS=no LIBTOOL="/tree/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_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=/tree/pkgsrc/lang/rust/work/.tools/bin/makeinfo FLEX= BISON= 
 PKG_CONFIG=/tree/pkgsrc/lang/rust/work/.tools/bin/pkg-config 
 PKG_CONFIG_LIBDIR=/tree/pkgsrc/lang/rust/work/.buildlink/lib/pkgconfig:/tree/pkgsrc/lang/rust/work/.buildlink/share/pkgconfig 
 PKG_CONFIG_LOG=/tree/pkgsrc/lang/rust/work/.pkg-config.log 
 PKG_CONFIG_PATH= 
 CWRAPPERS_CONFIG_DIR=/tree/pkgsrc/lang/rust/work/.cwrapper/config  
 /usr/pkg/bin/python2.7 ./x.py -v build -j 1
 running: /tree/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build 
 --manifest-path 
 /tree/pkgsrc/lang/rust/work/rustc-1.32.0-src/src/bootstrap/Cargo.toml 
 --frozen
 error: process didn't exit successfully: 
 `/tree/pkgsrc/lang/rust/work/rust-bootstrap/bin/rustc -vV` (exit code: 
 101)
 --- stdout
 rustc 1.32.0 (9fda7c223 2019-01-16)
 binary: rustc
 commit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b
 commit-date: 2019-01-16
 host: x86_64-unknown-netbsd
 release: 1.32.0
 rustc 1.32.0 (9fda7c223 2019-01-16)
 binary: rustc
 commit-hash: 9fda7c2237db910e41d6a712e9a2139b352e558b
 commit-date: 2019-01-16
 host: x86_64-unknown-netbsd
 release: 1.32.0

 --- stderr
 thread 'main' panicked at 'failed to get current_exe: /proc/curproc/exe 
 doesn't point to regular file.', 
 src/librustc/session/filesearch.rs:167:23
 note: Run with `RUST_BACKTRACE=1` for a backtrace.

 error: internal compiler error: unexpected panic

 thread 'main' panicked at 'cannot load the default codegen backend 
 twice', src/librustc_driver/lib.rs:285:5

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

 Stop.
 bmake[1]: stopped in /tree/pkgsrc/lang/rust
 *** Error code 1

 Stop.
 bmake: stopped in /tree/pkgsrc/lang/rust

From: triaxx <triaxx@triaxx.org>
To: gnats-bugs@netbsd.org
Cc: he@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org, Hauke
 Fath <hf@spg.tu-darmstadt.de>
Subject: Re: pkg/53671 (lang/rust build breaks on read-only source tree)
Date: Thu, 21 Feb 2019 08:17:40 +0100

 Le 2019-02-21 07:00, triaxx a écrit :
 > The following reply was made to PR pkg/53671; it has been noted by 
 > GNATS.
 > 
 > From: triaxx <triaxx@triaxx.org>
 > To: gnats-bugs@netbsd.org
 > Cc: he@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 >  hauke@netbsd.org, Hauke Fath <hf@spg.tu-darmstadt.de>
 > Subject: Re: pkg/53671 (lang/rust build breaks on read-only source 
 > tree)
 > Date: Thu, 21 Feb 2019 06:52:28 +0100
 > 
 >  Le 2019-02-19 16:48, hauke@NetBSD.org a écrit :
 >  > Synopsis: lang/rust build breaks on read-only source tree
 >  >
 >  > State-Changed-From-To: feedback->closed
 >  > State-Changed-By: hauke@NetBSD.org
 >  > State-Changed-When: Tue, 19 Feb 2019 15:48:41 +0000
 >  > State-Changed-Why:
 >  > rust 1.32 builds fine -- even without mounted /proc.
 > 
 >  I have just tried to build lang/rust 1.32 into a fresh sandbox without
 >  mounted /proc and it failed.
 > 
 >  [*** build log ***]
 > 
 >  --- stderr
 >  thread 'main' panicked at 'failed to get current_exe: 
 > /proc/curproc/exe
 >  doesn't point to regular file.'

 I just notice that in my chrooted sandbox:
 # ls -l /proc/curproc/exe
 lr-xr-xr-x  1 root  wheel  1 Feb 21 07:14 /proc/curproc/exe -> /
 # file /proc/curproc/exe
 /proc/curproc/exe: symbolic link to /
 # file /proc/curproc/exe/
 /proc/curproc/exe/: directory

 and out of my chrooted sandbox:
 # ls -l /mnt/ccd0/sandbox/rust/proc/curproc/exe
 lr-xr-xr-x  1 root  wheel  7 Feb 21 08:14 
 /mnt/ccd0/sandbox/rust/proc/curproc/exe -> /bin/ls

 So yes, /proc/curproc/exe is not a regular file into a chrooted 
 environment. But I don't know if it is a problem from rust or from 
 NetBSD...

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 22 Feb 2019 07:31:58 +0000
State-Changed-Why:
re-opening is a duplicate of 52598.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.