<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/114747>114747</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang] error: clang frontend command failed with exit code 139
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
WeboFingerprints
</td>
</tr>
</table>
<pre>
I run clang on Raspberry PI 3.
Info: Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
clang:
Debian clang version 14.0.6
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Stack dump:
0. Program arguments: clang -g -I../../ref_app/nvs/inc -I../../mbedtls/include -I../../firmware_update_format/inc -I../common/include -I./jsmn -DFPC2042 -c -o jsmn/jsmn.o jsmn/jsmn.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'jsmn/jsmn.c'.
4. Running pass 'AArch64 Assembly Printer' on function '@jsmn_parse'
#0 0x0000007f8093e4dc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xe9e4dc)
#1 0x0000007f8093c4b4 llvm::sys::RunSignalHandlers() (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xe9c4b4)
#2 0x0000007f8086b1c0 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xdcb1c0)
#3 0x0000007f891b07b0 (linux-vdso.so.1+0x7b0)
#4 0x0000007f80dca9f0 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x132a9f0)
#5 0x0000007f8091b49c llvm::raw_ostream::write(char const*, unsigned long) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xe7b49c)
#6 0x0000007f81cd1048 llvm::MCContext::createTempSymbol(llvm::Twine const&, bool) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2231048)
#7 0x0000007f81cd13f0 llvm::MCContext::createTempSymbol() (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x22313f0)
#8 0x0000007f81cd9ec0 llvm::MCDwarfLineEntry::make(llvm::MCStreamer*, llvm::MCSection*) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2239ec0)
#9 0x0000007f81cf6934 llvm::MCObjectStreamer::emitInstructionImpl(llvm::MCInst const&, llvm::MCSubtargetInfo const&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2256934)
#10 0x0000007f81cf6858 llvm::MCObjectStreamer::emitInstruction(llvm::MCInst const&, llvm::MCSubtargetInfo const&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2256858)
#11 0x0000007f8234df50 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x28adf50)
#12 0x0000007f82207f08 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2767f08)
#13 0x0000007f810def30 llvm::AsmPrinter::emitFunctionBody() (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x163ef30)
#14 0x0000007f82204ba4 (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x2764ba4)
#15 0x0000007f80c9122c llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0x11f122c)
#16 0x0000007f80a74390 llvm::FPPassManager::runOnFunction(llvm::Function&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xfd4390)
#17 0x0000007f80a7af70 llvm::FPPassManager::runOnModule(llvm::Module&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xfdaf70)
#18 0x0000007f80a74d98 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xfd4d98)
#19 0x0000007f8757c680 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> >) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x184c680)
#20 0x0000007f87836f20 (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x1b06f20)
#21 0x0000007f86776f1c clang::ParseAST(clang::Sema&, bool, bool) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0xa46f1c)
#22 0x0000007f88134444 clang::FrontendAction::Execute() (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x2404444)
#23 0x0000007f880a7d28 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x2377d28)
#24 0x0000007f881a7d20 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x2477d20)
#25 0x0000000000413608 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/lib/llvm-14/bin/clang+0x413608)
#26 0x0000000000411df4 (/usr/lib/llvm-14/bin/clang+0x411df4)
#27 0x0000007f87dac5fc (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x207c5fc)
#28 0x0000007f8086ae94 llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/lib/aarch64-linux-gnu/libLLVM-14.so.1+0xdcae94)
#29 0x0000007f87dac000 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x207c000)
#30 0x0000007f87d80f50 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x2050f50)
#31 0x0000007f87d8118c clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x205118c)
#32 0x0000007f87d950c4 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/lib/aarch64-linux-gnu/libclang-cpp.so.14+0x20650c4)
#33 0x0000000000411648 main (/usr/lib/llvm-14/bin/clang+0x411648)
#34 0x0000007f7f617780 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#35 0x0000007f7f617858 call_init ./csu/../csu/libc-start.c:128:20
#36 0x0000007f7f617858 __libc_start_main ./csu/../csu/libc-start.c:347:5
#37 0x000000000040eef0 _start (/usr/lib/llvm-14/bin/clang+0x40eef0)
clang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
Debian clang version 14.0.6
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/jsmn-79b892.c
clang: note: diagnostic msg: /tmp/jsmn-79b892.sh
clang: note: diagnostic msg:
********************
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMmVtz4yjTgH-NckPZhUDW4SIXGseeyVayccXZ3UsXAmSzIyF9gHL491-BZFt4nHcSz74HVyplc2iebppuDkRrsZWcXwezL8Hs5op0Zteo67940SyF3HLVKiGNvioa9nZ9C1QnAa2I3IJGgkei24Ir9QZWtwBPA3gTwLz_fyvLJsA5uBOyewVq37AVIJ7GUxwG6ItqzUS1YvKcggDhEKzvV2D1uFjcr57ADS8EkSAMcN63nww9QhCgFEEUTeBsgrIAZYAQRXdxBL7-_keAlm7AMYmjtSj9z0Fyr8MzV1o0EoTRFE7jvsETUVtubIdB8KST32XzIieVFT3Zym5ouFOcMFA3jFe2edto8brXXhtSVZzdCOWGRstOqwAtCyHHbGtD6HfAuroN8FAEp8B9VqrZ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