BinaryBuilder.jl icon indicating copy to clipboard operation
BinaryBuilder.jl copied to clipboard

Rust tests failing

Open giordano opened this issue 3 years ago • 2 comments

Rust tests are occasionally failing with this error:

[ Info: Building for i686-linux-gnu-libgfortran5-cxx11
[ Info: Brewing a pot of coffee for Travis...
..i686-linux-gnu-cc -shared -o /tmp/testsuite/i686-linux-gnu/c/dyn_link/libfoo/libfoo.so -fPIC -g -O2 -lm libfoo/libfoo.c
i686-linux-gnu-rustc -o /tmp/testsuite/i686-linux-gnu/rust/hello_world/hello_world hello_world.rs
cargo install --verbose --path . --root /tmp/testsuite/i686-linux-gnu/rust/cargo_build
i686-linux-gnu-f77 -o /tmp/testsuite/i686-linux-gnu/fortran/hello_world/hello_world.o -c hello_world.f
i686-linux-gnu-go build -o /tmp/testsuite/i686-linux-gnu/go/float_abi/float_abi float_abi.go
error: missing key: 'version'
make[1]: *** [Makefile:7: /tmp/testsuite/i686-linux-gnu/rust/cargo_build/cargo_build] Error 1
gcc -o /tmp/testsuite/i686-linux-gnu/c/openmp/openmp -g -O2 -fopenmp openmp.c
make: *** [Makefile:48: install-project-rust-cargo_build] Error 2
make: *** Waiting for unfinished jobs....
i686-linux-gnu-c++ -shared -o /tmp/testsuite/i686-linux-gnu/cxx/dyn_link/librepeater/librepeater.so -fPIC -g -O2 -lm librepeater/librepeater.cc
i686-linux-gnu-cc -o /tmp/testsuite/i686-linux-gnu/c/hello_world/hello_world -g -O2 hello_world.c
i686-linux-gnu-go build -o /tmp/testsuite/i686-linux-gnu/go/hello_world/hello_world hello_world.go
i686-linux-gnu-c++ -o /tmp/testsuite/i686-linux-gnu/cxx/hello_world/hello_world -g -O2 hello_world.cc
i686-linux-gnu-cc -o /tmp/testsuite/i686-linux-gnu/fortran/hello_world/hello_world -g -O2 /tmp/testsuite/i686-linux-gnu/fortran/hello_world/hello_world.o -lgfortran -lm -lquadmath
i686-linux-gnu-f77 -o /tmp/testsuite/i686-linux-gnu/fortran/hello_world/hello_world hello_world.f
i686-linux-gnu-cc -o /tmp/testsuite/i686-linux-gnu/c/dyn_link/dyn_link -I/usr/share/testsuite/c/dyn_link/libfoo -fPIC -g -O2 -Wl,-z,origin -Wl,-rpath,$ORIGIN/libfoo -L/tmp/testsuite/i686-linux-gnu/c/dyn_link/libfoo -lfoo dyn_link.c
i686-linux-gnu-c++ -o /tmp/testsuite/i686-linux-gnu/cxx/dyn_link/dyn_link -I/usr/share/testsuite/cxx/dyn_link/librepeater -fPIC -g -O2 -Wl,-z,origin -Wl,-rpath,$ORIGIN/librepeater -L/tmp/testsuite/i686-linux-gnu/cxx/dyn_link/librepeater -lrepeater dyn_link.cc
Previous command exited with 2
Linux i686 {cxxstring_abi=cxx11, libc=glibc, libgfortran_version=5.0.0}: ..Error During Test at /data/staticfloat/bb_azp/rootfs/agent_2/_work/1/s/test/building.jl:105

giordano avatar May 20 '21 16:05 giordano

I haven't seen this error in a while and now we have a much more recent Rust toolchain. I'm going to close this issue.

giordano avatar Dec 04 '21 10:12 giordano

I haven't seen this error in a while

Just happened again, sigh

[ Info: Building for aarch64-linux-musl-libgfortran3-cxx03
gcc -o /tmp/testsuite/aarch64-linux-musl/c/openmp/openmp -g -O2 -fopenmp openmp.c
cc -o /tmp/testsuite/aarch64-linux-musl/c/hello_world/hello_world -g -O2 hello_world.c
cc -shared -o /tmp/testsuite/aarch64-linux-musl/c/dyn_link/libfoo/libfoo.so -fPIC -g -O2 -lm libfoo/libfoo.c
cc -o /tmp/testsuite/aarch64-linux-musl/c/dyn_link/dyn_link -I/usr/share/testsuite/c/dyn_link/libfoo -fPIC -g -O2 -Wl,-z,origin -Wl,-rpath,$ORIGIN/libfoo -L/tmp/testsuite/aarch64-linux-musl/c/dyn_link/libfoo -lfoo dyn_link.c
c++ -o /tmp/testsuite/aarch64-linux-musl/cxx/hello_world/hello_world -g -O2 hello_world.cc
gfortran -o /tmp/testsuite/aarch64-linux-musl/fortran/hello_world/hello_world.o -c hello_world.f
c++ -o /tmp/testsuite/aarch64-linux-musl/cxx/dyn_link/dyn_link -I/usr/share/testsuite/cxx/dyn_link/librepeater -fPIC -g -O2 -Wl,-z,origin -Wl,-rpath,$ORIGIN/librepeater -L/tmp/testsuite/aarch64-linux-musl/cxx/dyn_link/librepeater -lrepeater dyn_link.cc
go build -o /tmp/testsuite/aarch64-linux-musl/go/float_abi/float_abi float_abi.go
cc -o /tmp/testsuite/aarch64-linux-musl/fortran/hello_world/hello_world -g -O2 /tmp/testsuite/aarch64-linux-musl/fortran/hello_world/hello_world.o -lgfortran -lm
gfortran -o /tmp/testsuite/aarch64-linux-musl/fortran/hello_world/hello_world hello_world.f
go build -o /tmp/testsuite/aarch64-linux-musl/go/hello_world/hello_world hello_world.go
cargo install --verbose --path . --root /tmp/testsuite/aarch64-linux-musl/rust/cargo_build
rustc -o /tmp/testsuite/aarch64-linux-musl/rust/hello_world/hello_world hello_world.rs
error: missing key: 'version'
make[1]: *** [Makefile:7: /tmp/testsuite/aarch64-linux-musl/rust/hello_world/hello_world] Error 1
make: *** [Makefile:48: install-project-rust-hello_world] Error 2
make: *** Waiting for unfinished jobs....
  Installing cargo_build v0.1.0 (/usr/share/testsuite/rust/cargo_build)
   Compiling cargo_build v0.1.0 (/usr/share/testsuite/rust/cargo_build)
     Running `rustc --crate-name cargo_build --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C metadata=1d4d738c78fb1d48 -C extra-filename=-1d4d738c78fb1d48 --out-dir /usr/share/testsuite/rust/cargo_build/target/aarch64-unknown-linux-musl/release/deps --target aarch64-unknown-linux-musl -C linker=aarch64-linux-musl-gcc -L dependency=/usr/share/testsuite/rust/cargo_build/target/aarch64-unknown-linux-musl/release/deps -L dependency=/usr/share/testsuite/rust/cargo_build/target/release/deps`
WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without.
    Finished release [optimized] target(s) in 6.99s
  Installing /tmp/testsuite/aarch64-linux-musl/rust/cargo_build/bin/cargo_build
   Installed package `cargo_build v0.1.0 (/usr/share/testsuite/rust/cargo_build)` (executable `cargo_build`)
warning: be sure to add `/tmp/testsuite/aarch64-linux-musl/rust/cargo_build/bin` to your PATH to be able to run the installed binaries
Previous command exited with 2

giordano avatar Dec 10 '21 00:12 giordano