https://bugs.llvm.org/show_bug.cgi?id=45550
Bug ID: 45550
Summary: compiling AcquireCrashStateTest.cpp for i386 reports
"__x86.get_pc_thunk.bx defined in discarded section
`.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' "
when make check-fuzzer
Product: compiler-rt
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
overview
In test of make check-fuzzer, It report linking error when compile
AcquireCrashStateTest.cpp.
messages like "multiple definition of `__addvdi3'" for i386
Steps to Reproduce
1.git clone https://github.com/llvm/llvm-project.git
2.cd llvm-project
3.mkdir build
4.cd build
5.cmake -DLLVM_ENABLE_PROJECTS="clang;compiler-rt;libcxx;libcxxabi" -G "Unix
Makefiles" ../llvm
6.make
7.make check-fuzzer VERBOSE=1
Actual Results
test reports test fail and shows linking error message.
: 'RUN: at line 1'; /export/users/llvm-project/build/./bin/clang
--driver-mode=g++ -O2 -gline-tables-only -fsanitize=address,fuzzer
-I/export/users/llvm-project/compiler-rt/lib/fuzzer -m32
/export/users/llvm-project/compiler-rt/test/fuzzer/AcquireCrashStateTest.cpp -o
/export/users/llvm-project/build/projects/compiler-rt/test/fuzzer/I386StaticLibcxxLinuxConfig/Output/acquire-crash-state.test.tmp
/usr/lib/gcc/x86_64-redhat-linux/8/32/libgcc.a(_addvdi3.o): In function
`__addvdi3':
(.text+0x0): multiple definition of `__addvdi3'
`__x86.get_pc_thunk.bx' referenced in section `.text' of
/export/users/llvm-project/build/lib/clang/11.0.0/lib/linux/libclang_rt.fuzzer-i386.a(fuzzer.o):
defined in discarded section
`.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of
/export/users/llvm-project/build/lib/clang/11.0.0/lib/linux/libclang_rt.fuzzer-i386.a(fuzzer.o)
Expected Results
acquire-crash-state.test.tmp should be created.
Build Date & Hardware
Build 2020-04-12 on RHEL8 for x86_64
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs