[llvm-bugs] [Bug 42463] New: Sanitizer-x86_64-Test-Nolibc doesn't link in Linux/i686 build
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jul 1 06:11:13 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42463
Bug ID: 42463
Summary: Sanitizer-x86_64-Test-Nolibc doesn't link in
Linux/i686 build
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: ro at gcc.gnu.org
CC: llvm-bugs at lists.llvm.org
[There's no sanitizer_common component, so filing for compiler-rt. Likewise
filing for unspecified version since there's no trunk.]
When running an LLVM build on a Linux/x86_64 system for target
i686-pc-linux-gnu,
make check-all FAILs:
[42/849] Generating Sanitizer-x86_64-Test-Nolibc
FAILED:
projects/compiler-rt/lib/sanitizer_common/tests/Sanitizer-x86_64-Test-Nolibc
cd
/var/gcc/llvm/dist-i686-release/projects/compiler-rt/lib/sanitizer_common/tests
&& /var/gcc/llvm/dist-i686-release/./bin/clang
sanitizer_nolibc_test_main.x86_64.o -Wl,-whole-archive
libRTSanitizerCommon.test.nolibc.x86_64.a -Wl,-no-whole-archive -o
/var/gcc/llvm/dist-i686-release/projects/compiler-rt/lib/sanitizer_common/tests/./Sanitizer-x86_64-Test-Nolibc
-Wl,-allow-shlib-undefined -nostdlib -m64
/usr/bin/ld: i386 architecture of input file
`sanitizer_nolibc_test_main.x86_64.o' is incompatible with i386:x86-64 output
/usr/bin/ld: sanitizer_nolibc_test_main.x86_64.o: in function `_start':
/vol/llvm/src/compiler-rt/dist/lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cc:17:
undefined reference to `_GLOBAL_OFFSET_TABLE_'
/usr/bin/ld: sanitizer_nolibc_test_main.x86_64.o: file class ELFCLASS32
incompatible with ELFCLASS64
/usr/bin/ld: final link failed: file in wrong format
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)
The object in question (sanitizer_nolibc_test_main.x86_64.o) is build for the
default multilib (-m32), but the rest of the archive is 64-bit as it should.
The attached hack (forcing -m64) allowed the build to continue for me.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190701/ab482652/attachment.html>
More information about the llvm-bugs
mailing list