<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/101016>101016</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Unable to build LLVM 18.1.7 due to failed tests on FC39 on ppc64le
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          matevy
      </td>
    </tr>
</table>

<pre>
    if I try to build LLVM 18.1.7 or 18.1.7 on FC39 inside docker container (host is Power8 ppc64le Ubuntu 22.04) it fails during testing:


`[663/664] Running the LLVM regression tests
FAIL: LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test (46252 of 53310)
******************** TEST 'LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test' FAILED ********************
Exit Code: 139

Command Output (stderr):
--
RUN: at line 1: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test
+ /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
/root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.script: line 8: 2005731 Segmentation fault      /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o /root/llvm-project/build/test/tools/dsymutil/X86/DWARFLinkerParallel/Output/odr-predictable-output2.test.tmp1.o -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test

--

********************
FAIL: LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test (46475 of 53310)
******************** TEST 'LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
RUN: at line 1: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test | /root/llvm-project/build/bin/llvm-dwarfdump --verify - | /root/llvm-project/build/bin/FileCheck -check-prefixes=VERIFY /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
+ /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
+ /root/llvm-project/build/bin/llvm-dwarfdump --verify -
+ /root/llvm-project/build/bin/FileCheck -check-prefixes=VERIFY /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
RUN: at line 2: /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test | /root/llvm-project/build/bin/llvm-dwarfdump -a - | /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
+ /root/llvm-project/build/bin/dsymutil --linker=parallel -f -o - -oso-prepend-path=/root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../ -y /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
+ /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test
+ /root/llvm-project/build/bin/llvm-dwarfdump -a -
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo1.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:39.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo2.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:43.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/foo3.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:47.000000000)
warning: /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/../Inputs/String/main.o: timestamp mismatch between object file (2024-07-26 10:47:18.521297524) and debug map (2021-12-07 19:18:54.000000000)
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
 #0 0x00000000127f2d80 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/root/llvm-project/build/bin/dsymutil+0x127f2d80)
 #1 0x00000000127eff8c SignalHandler(int) Signals.cpp:0:0
 #2 0x00007c73f7d60444 (linux-vdso64.so.1+0x444)
 #3 0x0000000012473e0c llvm::dwarf_linker::parallel::CompileUnit::allocateTypeDie(llvm::dwarf_linker::parallel::TypeEntryBody*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm::dwarf::Tag, bool, bool) (/root/llvm-project/build/bin/dsymutil+0x12473e0c)
 #4 0x00000000124744b8 llvm::dwarf_linker::parallel::CompileUnit::createTypeDIEandCloneAttributes(llvm::DWARFDebugInfoEntry const*, llvm::dwarf_linker::parallel::DIEGenerator&, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>*, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x124744b8)
 #5 0x0000000012474e80 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>*, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x12474e80)
 #6 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>*, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
 #7 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>*, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
 #8 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>*, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
 #9 0x0000000012474f28 llvm::dwarf_linker::parallel::CompileUnit::cloneDIE(llvm::DWARFDebugInfoEntry const*, llvm::StringMapEntry<std::atomic<llvm::dwarf_linker::parallel::TypeEntryBody*>>*, unsigned long, std::optional<long>, std::optional<long>, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x12474f28)
#10 0x0000000012480644 llvm::dwarf_linker::parallel::CompileUnit::cloneAndEmit(std::optional<std::reference_wrapper<llvm::Triple const>>, llvm::dwarf_linker::parallel::TypeUnit*) (/root/llvm-project/build/bin/dsymutil+0x12480644)
#11 0x000000001246215c llvm::dwarf_linker::parallel::DWARFLinkerImpl::LinkContext::linkSingleCompileUnit(llvm::dwarf_linker::parallel::CompileUnit&, llvm::dwarf_linker::parallel::TypeUnit*, llvm::dwarf_linker::parallel::CompileUnit::Stage) (/root/llvm-project/build/bin/dsymutil+0x1246215c)
#12 0x0000000012752d8c std::_Function_handler<void (), llvm::parallelFor(unsigned long, unsigned long, llvm::function_ref<void (unsigned long)>)::'lambda0'()>::_M_invoke(std::_Any_data const&) Parallel.cpp:0:0 #13 0x0000000012753280 std::_Function_handler<void (), llvm::parallel::TaskGroup::spawn(std::function<void ()>, bool)::'lambda'()>::_M_invoke(std::_Any_data const&) Parallel.cpp:0:0 #14 0x0000000012753e04 std::thread::_State_impl<std::thread::_Invoker<std::tuple<llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::ThreadPoolExecutor(llvm::ThreadPoolStrategy)::'lambda'()::operator()() const::'lambda'()>>>::_M_run() Parallel.cpp:0:0 #15 0x00007c73f7941330 (/lib64/libstdc++.so.6+0x161330)
#16 0x00007c73f7471524 start_thread (/lib64/libc.so.6+0xb1524)
error: -: The file was not recognized as a valid object file
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /root/llvm-project/build/bin/FileCheck /root/llvm-project/llvm/test/tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test

--

********************
********************
Failed Tests (2):
  LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-predictable-output2.test
  LLVM :: tools/dsymutil/X86/DWARFLinkerParallel/odr-string.test


Testing Time: 877.44s

Total Discovered Tests: 58174
  Skipped          : 64 (0.11%)
  Unsupported      :  2060 (3.54%)
  Passed           : 55892 (96.08%)
  Expectedly Failed:   156 (0.27%)
  Failed           : 2 (0.00%)
FAILED: test/CMakeFiles/check-llvm /root/llvm-project/build/test/CMakeFiles/check-llvm 
cd /root/llvm-project/build/test && /usr/bin/python3.12 /root/llvm-project/build/./bin/llvm-lit -sv /root/llvm-project/build/test
ninja: build stopped: subcommand failed.`

compiling on host itself on Ubuntu 22.04 does not fail.
Using exactly the same Dockerfile on Ubuntu 22.04 x86_64 host it also builds fine.

Some of previous versions of LLVM (16.x for sure) built find in the same environment.


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsW11T4zjW_jXiRmWXLX_mgouQj3mp6n6XaujZ3StKsY8TDbLkkuRA9tdvSXZCnIZp6DQDPZsUxLGlc3T0nEdHH5ao1mwpAM5RcoGS6RltzUqq85oaWG_OFrLcnLMKX2KjNthIvGgZL_GnT79_xmHuh36Gpdr9Eng-iUaYCc1KwKUs7kDhQgpDmQCFEclXUhvMNL6S96By3DRFGnPAXxetMC0mxA9iREaYGVxRxjUuW8XEEhvQhoklisYomKJg-J0GKLlI0wiReZrGKJniL60QTmwFnakKlgq0ZlI4VbqTnI8vP6Fo3GWxuqMxNlJyjci81Ju6NYwjMv9XniIyn_5z_GX-iYk7UFdUUc7BpslSeY2CkhWGLjh4sjVNa4hvS7H1jVOSECwrnERRGCAy6m0mP_6Hb2bXNxiR7I3MRiTDFpnZFB9jZlfR2QMzeCJLsEaG0WjfcRNZ11SU-B-ucIuWNiUoZVHaOtrzuuuXr_9vNVCDOROAQ3uDyFxJaRCZc76uvUbJP6Cwt46j9srEHiTY87jDAUXTpocCexX25Pc1dbjMX4lyV7HvwO2bugl9iT2ppc3UgCi9hpoViqbP2mVvf9gs30dkjr3N89U-Sv2fcqtn_8XJeb-q8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