<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - compiling AcquireCrashStateTest.cpp for i386 reports "multiple definition of `__addvdi3'" when make check-fuzzer"
href="https://bugs.llvm.org/show_bug.cgi?id=45544">45544</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>compiling AcquireCrashStateTest.cpp for i386 reports "multiple definition of `__addvdi3'" when make check-fuzzer
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>10.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>fuzzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>wenzhizhuanhust@hotmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>overview
In test of make check-fuzzer, It report linking error when compile
AcquireCrashStateTest.cpp for i386.
messages like "multiple definition of `__addvdi3'"
Steps to Reproduce
1.git clone <a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
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/4.8.5/32/libgcc.a(_divsc3.o): in function
`__divsc3':(.text+0x0): multiple definition of `__divsc3'
`__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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>