d000000001234
donydou
2017-10-09 13:17

升级gcc,报这个错误要如何解决

  • c++
  • gcc
  • linux

最近在升级gcc,一直遇到各种问题,瓶颈了,网上实在搜不到,希望大神路过解答。
我没搞过c,c++,报错基本看不懂[img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/5.gif][/img]

ftp://gcc.gnu.org/pub/gcc/releases/ 下载源码升级gcc,
开发机不能连外网,所以……

依赖库也是手动下载安装的

到这里报错,该怎么解决啊?

/usr/bin/ld: /usr/lib/../lib64/libdl.a(dlsym.o): relocation R_X86_64_PC32 against undefined symbol __dlsym' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [libasan.la] Error 1
make[4]: Leaving directory
/data/tool/gcc-4.8.4/build/x86_64-unknown-linux-gnu/libsanitizer/asan'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory /data/tool/gcc-4.8.4/build/x86_64-unknown-linux-gnu/libsanitizer'
make[2]: *** [all-stage1-target-libsanitizer] Error 2
make[2]: Leaving directory
/data/tool/gcc-4.8.4/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/data/tool/gcc-4.8.4/build'
make: *** [all] Error 2

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

0条回答

为你推荐

换一换