在Arch中运行clang ++时,会立即发生段错误


0

如果我只是运行,我会得到以下输出 clang++ 在我的终端(Konsole)中没有参数。我安装了Clang extra/clang 带内核的7.0.1-1版软件包 4.19.8-arch1-1-ARCH。其他软件包如gcc工作正常和重新启动并没有什么区别。

 [overv @ arch~] $ clang ++  堆栈转储:
0.程序参数:clang ++
1.编制结构
/usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2b)[0x7f41d2c5db1b]
/usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x7f41d2c5bf74]
/usr/bin/../lib/libLLVM-7.so(+0x8fd0fe)[0x7f41d2c5c0fe]
/usr/bin/../lib/libc.so.6(+0x37e00)[0x7f41d1562e00]
/usr/bin/../lib/libLLVM-7.so(_ZNSt23_Sp_counted_ptr_inplaceIN4llvm3sys2fs6detail12DirIterStateESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info+0​​x1b)[0x7f41d2bb4ecb]
/usr/bin/../lib/libclangBasic.so.7(+0x1ddd04)[0x7f41d2207d04]
/usr/bin/../lib/libclangDriver.so.7(+0x114e69)[0x7f41d1b06e69]
/usr/bin/../lib/libclangDriver.so.7(+0x115de0)[0x7f41d1b07de0]
/usr/bin/../lib/libclangDriver.so.7(+0x12a895)[0x7f41d1b1c895]
/usr/bin/../lib/libclangDriver.so.7(_ZNK5clang6driver6Driver12getToolChainERKN4llvm3opt7ArgListERKNS2_6TripleE+0x34b)[0x7f41d1a5aacb]
/usr/bin/../lib/libclangDriver.so.7(_ZN5clang6driver6Driver16BuildCompilationEN4llvm8ArrayRefIPKcEE+0x7f3)[0x7f41d1a65e93]
铛++(主+ 0x10bc)[0x55d8d255b0ec]
/usr/bin/../lib/libc.so.6(__libc_start_main+0xf3)[0x7f41d154f223]
铛++(_开始+ 0x2E之间)[0x55d8d255d5fe]
分段故障(核心转储) 

这个版本目前是不稳定到破坏的地方还是我做错了什么?我该如何调试呢?

Answers:


1

我通过安装包括的系统更新修复了问题 llvm-libs 包。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.