我正在尝试在 ubuntu 上运行 cloud9 应用程序。但是 make 命令给了我错误
llvm[2]: Linking Release+Asserts executable klee (without symbols)
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
make[2]: *** [/home/mmalik9/cloud9-cloudsuite/cloud9/Release+Asserts/bin/klee] Error 1
make[2]: Leaving directory `/home/mmalik9/cloud9-cloudsuite/cloud9/tools/klee'
make[1]: *** [klee/.makeall] Error 2
make[1]: Leaving directory `/home/mmalik9/cloud9-cloudsuite/cloud9/tools'
make: *** [all] Error 1
请告诉我如何解决这个问题?
g++ helloworld.cpp -o proj
I am getting same error "
collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped
最佳答案
如果即使对于最简单的程序(例如 helloworld)也无法运行 ld,则似乎某些内容(ld 二进制文件或其库)已损坏,无论是在内存中(重新启动将有所帮助),还是在硬盘驱动器上。
您可以重新检查已安装软件包的 md5sum(在基于 rpm 的 linux 中 - rpm --verify
;在基于 deb 的 - debsums
或 dpkg --verify
- 根据 debian bug 187019 ),或者简单地重新安装它们。
使用memtest
,您可以测试 RAM 是否存在缺陷(ECC RAM 可以更好地保护您的数据)。对于现代文件系统,具有 data checksumming (ZFS、btrfs)和/或 AIDE 等完整性检查器,您可以检测存储在硬盘驱动器上的无声数据损坏。
关于llvm - 运行cloud9时出错 "error: ld terminated with signal 11",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22769216/