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,可以看到已经正常了

相关文章
|
6月前
蓝易云 - LLVM编译报错解决:collect2: fatal error: ld terminated with signal 9 [Killed]
以上就是解决"collect2: fatal error: ld terminated with signal 9 [Killed]"错误的一些方法。
211 0
|
7月前
|
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
|
TensorFlow 算法框架/工具 Python
成功解决File "frozen importlib._bootstrap", line 219, in _call_with_frames_removed ImportError: DLL lo
成功解决File "frozen importlib._bootstrap", line 219, in _call_with_frames_removed ImportError: DLL lo
成功解决File "frozen importlib._bootstrap", line 219, in _call_with_frames_removed ImportError: DLL lo
|
并行计算 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.
332 0
|
并行计算
解决Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized.
解决Error #15: Initializing libiomp5.dylib, but found libomp.dylib already initialized.
438 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
711 0
|
机器学习/深度学习 并行计算 PyTorch
解决| “OMP: Error #15: Initializing libiomp5md.dll,”
解决| “OMP: Error #15: Initializing libiomp5md.dll,”
3179 0