<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 - Build issue for 32-bit configuration on OS SLES 15"
href="https://bugs.llvm.org/show_bug.cgi?id=43740">43740</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Build issue for 32-bit configuration on OS SLES 15
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>friendsdeep4u@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, peter.smith@linaro.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22696" name="attach_22696" title="Test case File">attachment 22696</a> <a href="attachment.cgi?id=22696&action=edit" title="Test case File">[details]</a></span>
Test case File
Compiling small test case with clang for 32-bit configuration give linker
issue. lld unable to recognize 32-bit object file, while system ld is able to
recognize and link it- (Test file is attached)
clang++ -m32 test_m32.cpp -fuse-ld=lld
ld.lld: error: /usr/lib64/gcc/x86_64-suse-linux/7/32/crt1.o is incompatible
with elf_i386
ld.lld: error: /usr/lib64/gcc/x86_64-suse-linux/7/32/crti.o is incompatible
with elf_i386
ld.lld: error: /usr/lib64/gcc/x86_64-suse-linux/7/32/crtbegin.o is incompatible
with elf_i386
ld.lld: error: /tmp/test_m32-4d557c.o is incompatible with elf_i386
ld.lld: error: /usr/lib64/gcc/x86_64-suse-linux/7/32/libstdc++.so is
incompatible with elf_i386
ld.lld: error: /lib/libgcc_s.so.1 is incompatible with elf_i386
ld.lld: error: /lib/libgcc_s.so.1 is incompatible with elf_i386
ld.lld: error: /usr/lib64/gcc/x86_64-suse-linux/7/32/crtend.o is incompatible
with elf_i386
ld.lld: error: /usr/lib64/gcc/x86_64-suse-linux/7/32/crtn.o is incompatible
with elf_i386
clang-8: error: linker command failed with exit code 1 (use -v to see
invocation)
clang++ -m32 test_m32.cpp -fuse-ld=ld
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/7/../../../libm.so when
searching for -lm
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/7/../../../libc.so when
searching for -lc</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>