[llvm-bugs] [Bug 51863] New: LLVM>=11.1 fails to build on PPC with GCC>=9

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 14 16:35:46 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51863

            Bug ID: 51863
           Summary: LLVM>=11.1 fails to build on PPC with GCC>=9
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: h.vetinari at gmx.com
                CC: llvm-bugs at lists.llvm.org, nemanja.i.ibm at gmail.com

Originally when building v11.1.0 for conda-forge
(https://github.com/conda-forge/llvmdev-feedstock/pull/115), 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
https://github.com/conda-forge/llvmdev-feedstock/pull/131.

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:
https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=376252

-- 
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/20210914/412d733e/attachment.html>


More information about the llvm-bugs mailing list