collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped

简介: collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped

Linux环境下的编译错误:

collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped

这么奇葩的错误,也百度不出来,所以记录下

  1. 查错,仔细检查链接的库能不能找到。经过查找我们的库确实是可以找到的
  2. 在终端输入ld --version还是报错

    这就说明是环境本身的配置有问题
  3. 解决ld 引起错误的方法
sudo apt purge binutils
sudo apt remove make
sudo apt autoremove
sudo apt install build-essential

也就是说他把binutils卸载了,然后重装了build-essential

执行完上面的指令之后,再执行ld --version,可以看到已经正常了

相关文章
|
5月前
蓝易云 - LLVM编译报错解决:collect2: fatal error: ld terminated with signal 9 [Killed]
以上就是解决"collect2: fatal error: ld terminated with signal 9 [Killed]"错误的一些方法。
174 0
|
6月前
|
C语言 C++
关于DEV中collect2.exe [Error] ld returned 1 exit status的问题解决!!!
关于DEV中collect2.exe [Error] ld returned 1 exit status的问题解决!!!
|
Unix Linux 异构计算
成功解决 ERROR: An error occurred while performing the step: “Building kernel modules“. See /var/log/nv
成功解决 ERROR: An error occurred while performing the step: “Building kernel modules“. See /var/log/nv
成功解决 ERROR: An error occurred while performing the step: “Building kernel modules“. See  /var/log/nv
|
并行计算 Python
报错:OMP: Error #15: Initializing libomp.dylib, but found libiomp5.dylib already initialized.
报错:OMP: Error #15: Initializing libomp.dylib, but found libiomp5.dylib already initialized.
322 0
collect1:error:ld returned 1 exit status 解决办法
collect1:error:ld returned 1 exit status 解决办法
collect1:error:ld returned 1 exit status 解决办法
|
Perl
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1
699 0
下一篇
无影云桌面