<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 - LLVM>=11.1 fails to build on PPC with GCC>=9"
href="https://bugs.llvm.org/show_bug.cgi?id=51863">51863</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLVM>=11.1 fails to build on PPC with GCC>=9
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>Backend: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>h.vetinari@gmx.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, nemanja.i.ibm@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Originally when building v11.1.0 for conda-forge
(<a href="https://github.com/conda-forge/llvmdev-feedstock/pull/115">https://github.com/conda-forge/llvmdev-feedstock/pull/115</a>), there was an issue
with using GCC 9 (only on PPC), so we kept using GCC 8.
Now, two major versions later, GCC 8 fails for other reaons (unrelated to
LLVM), and I wanted to try upgrading the version again, see
<a href="https://github.com/conda-forge/llvmdev-feedstock/pull/131">https://github.com/conda-forge/llvmdev-feedstock/pull/131</a>.
As it turns out the same error persists with GCC 11.1 & LLVM 13. I cannot tell
where the fault lies exactly, because there's not much output from the linker
to go on.
```
[...]
[ 88%] Building CXX object
tools/llvm-exegesis/lib/X86/CMakeFiles/LLVMExegesisX86.dir/X86Counter.cpp.o
collect2: error: ld returned 1 exit status
make[2]: *** [tools/llvm-shlib/CMakeFiles/LLVM.dir/build.make:299:
lib/libLLVM-13.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:30826:
tools/llvm-shlib/CMakeFiles/LLVM.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 88%] Linking CXX static library ../../../../lib/libLLVMExegesisX86.a
[ 88%] Built target LLVMExegesisX86
make: *** [Makefile:156: all] Error 2
```
Sample CI run is here:
<a href="https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=376252">https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=376252</a></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>