pkgsrc-Bugs archive

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

pkg/52584: lang/rust build failure (bootstrap kit issue?)



>Number:         52584
>Category:       pkg
>Synopsis:       lang/rust build failure (bootstrap kit issue?)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 30 14:15:00 +0000 2017
>Originator:     Thomas Klausner
>Release:        NetBSD 8.99.3
>Organization:
Curiosity is the very basis of education and if you tell me that 
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough
>Environment:
Architecture: x86_64
Machine: amd64
>Description:
When trying to build lang/rust 1.20, I see

===> Building for rust-1.20.0
cd /scratch/lang/rust/work/rustc-1.20.0-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/python3.6 CC=gcc CFLAGS=-O2\ -g\ -D_FORTIFY_SOURCE=2\ -fstack-check\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.6\ -I/usr/include/krb5 CPPFLAGS=-g\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.6\ -I/usr/include/krb5 CXX=c++ CXXFLAGS=-O2\ -g\ -D_FORTIFY_SOURCE=2\ -fstack-check\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/python3.6\ -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=-Wl,-z,relro\ -Wl,-z,now\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/scratch/lang/rust/work/.cwrapper/bin:/scratch/lang/rust/work/.buildlink/bin:/scratch/lang/rust/work/.gcc/
 bin:/scratch/lang/rust/work/.tools/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin:/usr/pkg/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/scratch/lang/rust/work/.home CWRAPPERS_CONFIG_DIR=/scratch/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 BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ \ -o\ pbulk\ -g\ builder\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ pbulk\ -g\ builder\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ pbulk\ -g\ builder\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ pbulk\ -g\ builder\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ pbulk\ -g\ builder\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ builder\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ builder\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/ins
 tall\ -d\ -o\ pbulk\ -g\ builder\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ builder\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ builder\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ \ -o\ pbulk\ -g\ builder\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ pbulk\ -g\ builder\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ pbulk\ -g\ builder\ -m\ 775 INSTALL_INFO= MAKEINFO=/scratch/lang/rust/work/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG=/scratch/lang/rust/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/scratch/lang/rust/work/.buildlink/lib/pkgconfig:/scratch/lang/rust/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/scratch/lang/rust/work/.pkg-config.log PKG_CONFIG_PATH= KRB5_CONFIG=/usr/bin/krb5-config CWRAPPERS_CONFIG_DIR=/scratch/lang/rust/work/.cwrapper/config  /usr/pkg/bin/python3.6 ./x.py dist
running: /scratch/lang/rust/work/rust-1.19.0-x86_64-unknown-netbsd/cargo/bin/cargo build --manifest-path /scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/Cargo.toml --verbose --verbose --frozen
/usr/lib/libgcc_s.so.1: version GCC_3.3 required by /scratch/lang/rust/work/rust-1.19.0-x86_64-unknown-netbsd/cargo/bin/cargo not found
Traceback (most recent call last):
  File "./x.py", line 20, in <module>
    bootstrap.main()
  File "/scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 694, in main
    bootstrap()
  File "/scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 675, in bootstrap
    rb.build_bootstrap()
  File "/scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 423, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/bootstrap.py", line 147, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /scratch/lang/rust/work/rust-1.19.0-x86_64-unknown-netbsd/cargo/bin/cargo build --manifest-path /scratch/lang/rust/work/rustc-1.20.0-src/src/bootstrap/Cargo.toml --verbose --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


The symbol is not there, but many others are:

# strings /usr/lib/libgcc_s.so* | grep GCC
GCC_3.0
GCC_3.4
GCC_3.4.2
GCC_3.4.4
GCC_4.0.0
GCC_4.2.0
GCC_4.3.0
GCC_4.5.0
GCC_4.7.0
GCC: (NetBSD nb1 20160606) 5.4.0
GCC_3.4
GCC_3.0
GCC_3.4.4
GCC_4.3.0
GCC_4.2.0
GCC_3.4.2
GCC_4.5.0
GCC_4.0.0
GCC_4.7.0
GCC_3.0
GCC_3.4
GCC_3.4.2
GCC_3.4.4
GCC_4.0.0
GCC_4.2.0
GCC_4.3.0
GCC_4.5.0
GCC_4.7.0
GCC: (NetBSD nb1 20160606) 5.4.0
GCC_3.4
GCC_3.0
GCC_3.4.4
GCC_4.3.0
GCC_4.2.0
GCC_3.4.2
GCC_4.5.0
GCC_4.0.0
GCC_4.7.0
GCC_3.0
GCC_3.4
GCC_3.4.2
GCC_3.4.4
GCC_4.0.0
GCC_4.2.0
GCC_4.3.0
GCC_4.5.0
GCC_4.7.0
GCC: (NetBSD nb1 20160606) 5.4.0
GCC_3.4
GCC_3.0
GCC_3.4.4
GCC_4.3.0
GCC_4.2.0
GCC_3.4.2
GCC_4.5.0
GCC_4.0.0
GCC_4.7.0

I don't know why this particular one is needed.
>How-To-Repeat:
See above.
>Fix:
No idea.

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index