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

目录
相关文章
|
15天前
蓝易云 - LLVM编译报错解决:collect2: fatal error: ld terminated with signal 9 [Killed]
以上就是解决"collect2: fatal error: ld terminated with signal 9 [Killed]"错误的一些方法。
5 0
|
2月前
|
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
collect1:error:ld returned 1 exit status 解决办法
collect1:error:ld returned 1 exit status 解决办法
collect1:error:ld returned 1 exit status 解决办法
Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
108 0
|
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
625 0
如何处理错误消息Unable to install breakpoint due to missing line number attributes
如何处理错误消息Unable to install breakpoint due to missing line number attributes
169 0
如何处理错误消息Unable to install breakpoint due to missing line number attributes
|
人工智能 大数据
Transaction Check Error:file /usr/libexec/getconf/default conflicts between attempted installs of gcc-6.4.1-1.fc25.i686 and gcc-6.4.1-1.fc25.x86_64
欢迎关注大数据和人工智能技术文章发布的微信公众号:清研学堂,在这里你可以学到夜白(作者笔名)精心整理的笔记,让我们每天进步一点点,让优秀成为一种习惯! 今天在我的ubuntu系统上使用yum来安装软件时出错了错误:Transaction Check Error:file /usr/libexec/...
1425 0