Open

Description
I have the following linker error when I want to build my rust application (which works on Linux and MacOS) on rumprun-hw:
error: linking with `x86_64-rumprun-netbsd-gcc` failed: exit code: 1
|
= note: "x86_64-rumprun-netbsd-gcc" "-Wl,--as-needed" .... "-l" "util" "-l" "pthread" "-l" "unwind" "-l" "m" "-l" "util"
= note: /usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elflink.c:8051
collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: Could not compile `Zebu_tester`.
Caused by:
process didn't exit successfully: `rustc --crate-name .... /target/x86_64-rumprun-netbsd/debug/build/gc-54f86e86d78902e9/out` (exit code: 101)
I've seen the same error (all pointing to elflink.c, but different lines) on both Ubuntu 14.04 and 16.04, using GCC4.8, 4.8, 5.4 and 6, and binutils 2.24, 2.25, 2.26.1 and 2.28.
Just binutils 2.28 points to a relevant line in elflink.c with an assersion in it.
This is the assertion which fails on 2.26.1:bfd/elflink.c:8300 and 2.28:bfd/elflink.c:8462:
BFD_ASSERT ((*rel_hash)->indx >= 0);
Metadata
Metadata
Assignees
Labels
No labels