<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 - Internal compiler error ("class/union requires a filename" for "kmp_cmplrdata_t")"
href="https://bugs.llvm.org/show_bug.cgi?id=49110">49110</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Internal compiler error ("class/union requires a filename" for "kmp_cmplrdata_t")
</td>
</tr>
<tr>
<th>Product</th>
<td>OpenMP
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</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>jcownie@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Clang dies with this internal error when attempting to compile an OpenMP
tasking example.
Here is the info from teh compiler when it crashes :-
class/union requires a filename
!37 = distinct !DICompositeType(tag: DW_TAG_union_type, name:
"kmp_cmplrdata_t", size: 64, elements: !11)
class/union requires a filename
!37 = distinct !DICompositeType(tag: DW_TAG_union_type, name:
"kmp_cmplrdata_t", size: 64, elements: !11)
fatal error: error in backend: Broken module found, compilation aborted!
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: /Users/jcownie/software/clang-12.0.0/arm64/bin/clang
-I/Users/jcownie/lomp/./include -I/Users/jcownie/lomp/./src
-I/Users/jcownie/lomp/examples/../include -Wextra -std=c99 -g -arch arm64
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
-fopenmp -std=c11 -o CMakeFiles/taskwait.dir/taskwait.c.o -c
/Users/jcownie/lomp/examples/taskwait.c
-L/Users/jcownie/software/clang-12.0.0/arm64/lib
-Wl,-rpath,/Users/jcownie/software/clang-12.0.0/arm64/lib
1. <eof> parser at end of file
2. Code generation
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH
or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 clang 0x0000000103666cd8
llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 76
1 clang 0x00000001036671f8 PrintStackTraceSignalHandler(void*) + 32
2 clang 0x00000001036650a0 llvm::sys::RunSignalHandlers() + 124
3 clang 0x00000001036664d8 llvm::sys::CleanupOnSignal(unsigned long) +
104
4 clang 0x000000010349a6e4 (anonymous
namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) + 188
5 clang 0x000000010349a610 llvm::CrashRecoveryContext::HandleExit(int)
+ 124
6 clang 0x000000010365ca44 llvm::sys::Process::Exit(int, bool) + 52
7 clang 0x0000000100b410e8 clang::CompilerInstance::getDiagnostics()
const + 0
8 clang 0x00000001034c20ec llvm::report_fatal_error(llvm::Twine
const&, bool) + 180
9 clang 0x00000001034c2038 llvm::report_fatal_error(llvm::Twine
const&, bool) + 0
10 clang 0x0000000102409d4c (anonymous
namespace)::VerifierLegacyPass::doFinalization(llvm::Module&) + 312
11 clang 0x00000001022b30b0
llvm::FPPassManager::doFinalization(llvm::Module&) + 100
12 clang 0x00000001022ac608 (anonymous
namespace)::MPPassManager::runOnModule(llvm::Module&) + 1244
13 clang 0x00000001022abf74
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 272
14 clang 0x00000001022b3370
llvm::legacy::PassManager::run(llvm::Module&) + 36
15 clang 0x0000000103c38e34 (anonymous
namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction,
std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >) + 6748
16 clang 0x0000000103c367f8
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions
const&, clang::CodeGenOptions const&, clang::TargetOptions const&,
clang::LangOptions const&, llvm::DataLayout const&, llvm::Module*,
clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream,
std::__1::default_delete<llvm::raw_pwrite_stream> >) + 1016
17 clang 0x00000001041a8400
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 1184
18 clang 0x0000000107906c50 clang::ParseAST(clang::Sema&, bool, bool) +
852
19 clang 0x0000000104945d1c clang::ASTFrontendAction::ExecuteAction() +
296
20 clang 0x00000001041a6814 clang::CodeGenAction::ExecuteAction() + 96
21 clang 0x0000000104945350 clang::FrontendAction::Execute() + 144
22 clang 0x000000010484d62c
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1652
23 clang 0x0000000104a983e0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1428
24 clang 0x0000000100b40564 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 1160
25 clang 0x0000000100b31c74 ExecuteCC1Tool(llvm::SmallVectorImpl<char
const*>&) + 364
26 clang 0x000000010457d6cc
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
<span class="quote">>, std::__1::basic_string<char, std::__1::char_traits<char>,</span >
std::__1::allocator<char> >*, bool*) const::$_1::operator()() const + 40
27 clang 0x000000010457d698 void llvm::function_ref<void
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
<span class="quote">>, std::__1::basic_string<char, std::__1::char_traits<char>,</span >
std::__1::allocator<char> >*, bool*) const::$_1>(long) + 28
28 clang 0x000000010349a588 llvm::function_ref<void ()>::operator()()
const + 32
29 clang 0x000000010349a508
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) + 232
30 clang 0x000000010457765c
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
<span class="quote">>, std::__1::basic_string<char, std::__1::char_traits<char>,</span >
std::__1::allocator<char> >*, bool*) const + 400
31 clang 0x000000010451256c
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const + 692
32 clang 0x0000000104512984
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&)
const + 140
33 clang 0x000000010452ef90
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command const*> >&) +
300
34 clang 0x0000000100b312d0 main + 2948
35 libdyld.dylib 0x0000000192a1df34 start + 4
clang-13: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 12.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
8153dee37272a73b1ed74ac1bc12422fac8ef033)
Target: aarch64-apple-darwin20.3.0
The code is attached.</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>