Hi,

Building Clang via Clang-16.0.6-GCCcore-12.3.0.eb fails for me.

The log file seems a bit messed up, presumably because I was building
with 40 threads, so I hope I have managed to extract the relevant parts
(see below).  Although the problem seems to occur about a third of the way
through, the build carries on until it reaches 90% before failing.

Does anyone know what might be causing the problem?

Cheers,

Loris

opt: 
/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm-project-16.0.6.src/llvm/lib/Support/StringMap.cpp:185:
 void llvm::StringMapImpl::RemoveKey(StringMapEntryBase *): Assertion `V == V2 
&& "D
idn't find key?"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and 
include the crash backtrace.
Stack dump:
0.      Program arguments: 
/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt 
-O3 -openmp-opt-disable -attributor-enable=module 
/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL/internalized_libomptarget-nvptx-sm_90.bc
 -o 
/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL/libomptarget-nvptx-sm_90.bc

...

 #0 0x000055555715b208 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt+0x1c07208)
 #1 0x0000555557159090 llvm::sys::RunSignalHandlers() 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt+0x1c05090)
 #2 0x000055555715ba0d SignalHandler(int) Signals.cpp:0:0
 #3 0x00002aaaaacde630 __restore_rt sigaction.c:0:0
 #4 0x00002aaaaccb9387 raise (/lib64/libc.so.6+0x36387)
 #5 0x00002aaaaccbaa78 abort (/lib64/libc.so.6+0x37a78)
 #6 0x00002aaaaccb21a6 __assert_fail_base (/lib64/libc.so.6+0x2f1a6)
 #7 0x00002aaaaccb2252 (/lib64/libc.so.6+0x2f252)
 #8 0x0000555557105b38 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt+0x1bb1b38)
 #9 0x000055555693dd11 llvm::Instruction::eraseFromParent() 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt+0x13e9d11)
#10 0x0000555556ba43f4 runIPSCCP(llvm::Module&, llvm::DataLayout const&, 
llvm::AnalysisManager<llvm::Function>*, std::function<llvm::TargetLibraryInfo 
const& (llvm::Function&)>, std::function<llvm::TargetTran
sformInfo& (llvm::Function&)>, std::function<llvm::AssumptionCache& 
(llvm::Function&)>, llvm::function_ref<llvm::AnalysisResultsForFn 
(llvm::Function&)>, bool) SCCP.cpp:0:0
#11 0x0000555556ba3471 llvm::IPSCCPPass::run(llvm::Module&, 
llvm::AnalysisManager<llvm::Module>&) 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt+0x164f471)
#12 0x00005555574d29bd llvm::detail::PassModel<llvm::Module, llvm::IPSCCPPass, 
llvm::PreservedAnalyses, 
llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, 
llvm::AnalysisManager<llvm::Module>&) (/trinity
/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt+0x1f7e9bd)
#13 0x00005555569b2495 llvm::PassManager<llvm::Module, 
llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, 
llvm::AnalysisManager<llvm::Module>&) 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3
.0/llvm.obj.2/bin/opt+0x145e495)
#14 0x0000555555b65aaa llvm::runPassPipeline(llvm::StringRef, llvm::Module&, 
llvm::TargetMachine*, llvm::TargetLibraryInfoImpl*, llvm::ToolOutputFile*, 
llvm::ToolOutputFile*, llvm::ToolOutputFile*, llvm::Stri
ngRef, llvm::ArrayRef<llvm::PassPlugin>, llvm::opt_tool::OutputKind, 
llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool) 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/b
in/opt+0x611aaa)
#15 0x0000555555b75b0a main 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt+0x621b0a)
#16 0x00002aaaacca5555 __libc_start_main (/lib64/libc.so.6+0x22555)
#17 0x0000555555b5e112 _start 
(/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt+0x60a112)

...

/bin/sh: line 1: 99935 Aborted                 
/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/bin/opt 
-O3 -openmp-opt-disable -attributor-enable=module 
/trinity/shared/easybuild/build/
Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/runtimes/runtimes-bins/openmp/libomptarget/DeviceRTL/internalized_libomptarget-nvptx-sm_90.bc
 -o /trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/r
untimes/runtimes-bins/openmp/libomptarget/DeviceRTL/libomptarget-nvptx-sm_90.bc
make[5]: *** [openmp/libomptarget/DeviceRTL/libomptarget-nvptx-sm_90.bc] Error 
134
make[5]: Leaving directory 
`/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2/runtimes/runtimes-bins'

...

make[1]: Leaving directory 
`/trinity/shared/easybuild/build/Clang/16.0.6/GCCcore-12.3.0/llvm.obj.2'
make: *** [all] Error 2
 (at 
easybuild/software/EasyBuild/4.8.2/lib/python3.6/site-packages/easybuild/tools/run.py:681
 in parse_cmd_output)

-- 
Dr. Loris Bennett (Herr/Mr)
ZEDAT, Freie Universität Berlin

Reply via email to