<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 - frontend failure when compiling openmp offload with -g"
href="https://bugs.llvm.org/show_bug.cgi?id=51737">51737</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>frontend failure when compiling openmp offload with -g
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</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>Clang Compiler Support
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>xw111luoye@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>got failure when compiling QMCPACK with -g.
No issue on 20210811 but 20210824 already have this issue
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'/home/yeluo/opt/qmcpack/src/QMCWaveFunctions/Fermion/DiracDeterminantBatched.cpp'.
4. Running pass 'NVPTX Assembly Printer' on function
'@__kmpc_nvptx_parallel_reduce_nowait_v2'
#0 0x0000000002cf8703 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x2cf8703)
#1 0x0000000002cf63ee llvm::sys::RunSignalHandlers()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x2cf63ee)
#2 0x0000000002cf8a8f SignalHandler(int) Signals.cpp:0:0
#3 0x00007f75e4175f80 __restore_rt (/lib64/libpthread.so.0+0x13f80)
#4 0x0000000003939e04
llvm::DwarfDebug::emitInitialLocDirective(llvm::MachineFunction const&,
unsigned int) (/soft/compilers/llvm/main-20210903/bin/clang-14+0x3939e04)
#5 0x000000000390c049
llvm::AsmPrinter::emitInitialRawDwarfLocDirective(llvm::MachineFunction const&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x390c049)
#6 0x000000000160045c llvm::NVPTXAsmPrinter::emitFunctionEntryLabel()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x160045c)
#7 0x000000000390eca7 llvm::AsmPrinter::emitFunctionHeader()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x390eca7)
#8 0x000000000390ff7d llvm::AsmPrinter::emitFunctionBody()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x390ff7d)
#9 0x0000000001601849
llvm::NVPTXAsmPrinter::runOnMachineFunction(llvm::MachineFunction&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x1601849)
#10 0x00000000020956ce
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x20956ce)
#11 0x00000000024dbc58 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x24dbc58)
#12 0x00000000024e2408 llvm::FPPassManager::runOnModule(llvm::Module&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x24e2408)
#13 0x00000000024dc2f7 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x24dc2f7)
#14 0x0000000002f96564 (anonymous
namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) BackendUtil.cpp:0:0
#15 0x0000000002f8f9ae clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef,
llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x2f8f9ae)
#16 0x0000000003caf22f
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x3caf22f)
#17 0x00000000046877c3 clang::ParseAST(clang::Sema&, bool, bool)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x46877c3)
#18 0x00000000035f9423 clang::FrontendAction::Execute()
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x35f9423)
#19 0x0000000003569648
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x3569648)
#20 0x00000000036b42d2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/soft/compilers/llvm/main-20210903/bin/clang-14+0x36b42d2)
#21 0x0000000000afb4d2 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/soft/compilers/llvm/main-20210903/bin/clang-14+0xafb4d2)
#22 0x0000000000af93cd ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
driver.cpp:0:0
#23 0x0000000000af90bd main
(/soft/compilers/llvm/main-20210903/bin/clang-14+0xaf90bd)
#24 0x00007f75e2c2c34d __libc_start_main (/lib64/libc.so.6+0x2534d)
#25 0x0000000000af623a _start
/home/abuild/rpmbuild/BUILD/glibc-2.31/csu/../sysdeps/x86_64/start.S:122:0
clang-14: error: unable to execute command: Segmentation fault
clang-14: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 14.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
0f80961e8c72dd67e1d9a9817b581b9848c9393e)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /soft/compilers/llvm/master-nightly/bin
clang-14: note: diagnostic msg: Error generating preprocessed source(s).</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>