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:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 16 09:30:00 +0000 2018
>Closed-Date:    
>Last-Modified:  Mon Oct 22 18:20:00 +0000 2018
>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

>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.