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: triaxx <triaxx%triaxx.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: he%netbsd.org@localhost, pkgsrc-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
hauke%netbsd.org@localhost, Hauke Fath <hf%spg.tu-darmstadt.de@localhost>
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@localhost a écrit :
> Synopsis: lang/rust build breaks on read-only source tree
>
> State-Changed-From-To: feedback->closed
> State-Changed-By: hauke%NetBSD.org@localhost
> 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@localhost:/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
Home |
Main Index |
Thread Index |
Old Index