tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust vs clang
Hi!
I've tried building rust with clang 7.0.0 from the base system of
NetBSD-8.99.30/amd64, but it failed:
Building stage1 std artifacts (x86_64-unknown-netbsd -> x86_64-unknown-netbsd)
running: "/scratch/lang/rust/work/rust-bootstrap/bin/cargo" "build" "--target" "x86_64-unknown-netbsd" "-j" "4" "--release" "--frozen" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/scratch/lang/rust/work/rustc-1.31.1-src/src/libstd/Cargo.toml" "--message-format" "json"
error: process didn't exit successfully: `/scratch/lang/rust/work/rustc-1.31.1-src/build/bootstrap/debug/rustc -vV` (exit code: 1)
--- stdout
rustc 1.31.1
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-netbsd
release: 1.31.1
--- stderr
error: couldn't load codegen backend "/scratch/lang/rust/work/rustc-1.31.1-src/build/x86_64-unknown-netbsd/stage1/lib/rustlib/x86_64-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so": "/scratch/lang/rust/work/rustc-1.31.1-src/build/x86_64-unknown-netbsd/stage1/lib/rustlib/x86_64-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so: Undefined PLT symbol \"_ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv\" (symnum = 572)"
command did not execute successfully: "/scratch/lang/rust/work/rust-bootstrap/bin/cargo" "build" "--target" "x86_64-unknown-netbsd" "-j" "4" "--release" "--frozen" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/scratch/lang/rust/work/rustc-1.31.1-src/src/libstd/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
thread 'main' panicked at 'cargo must succeed', bootstrap/compile.rs:1115:9
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Traceback (most recent call last):
File "./x.py", line 20, in <module>
bootstrap.main()
File "/scratch/lang/rust/work/rustc-1.31.1-src/src/bootstrap/bootstrap.py", line 865, in main
bootstrap(help_triggered)
File "/scratch/lang/rust/work/rustc-1.31.1-src/src/bootstrap/bootstrap.py", line 851, in bootstrap
run(args, env=env, verbose=build.verbose)
File "/scratch/lang/rust/work/rustc-1.31.1-src/src/bootstrap/bootstrap.py", line 151, in run
raise RuntimeError(err)
RuntimeError: failed to run: /scratch/lang/rust/work/rustc-1.31.1-src/build/bootstrap/debug/bootstrap -v build -j 4
*** Error code 1
Does anyone know how to fix this?
Thanks,
Thomas
Home |
Main Index |
Thread Index |
Old Index