我正尝试像从前经常使用Linux一样从头开始编译GCC,我试图安装Sourcemage,但GCC的编译器版本为4.6,最新版本为8.2.0,所以我编译了从头开始编译GCC所需的所有内容,并且在编译该编译器之前一切都进行得很好,直到最终开始给我一个与libmpfr.so相关的链接器错误: 这是我做典型的-j3时得到的:
/usr/lib/../lib/libmpfr.so: undefined reference to `__gmpn_com'
collect2: error: ld returned 1 exit status
make[3]: *** [../.././gcc/lto/Make-lang.in:81: lto1] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/lib/../lib/libmpfr.so: undefined reference to `__gmpn_com'
collect2: error: ld returned 1 exit status
make[3]: *** [../.././gcc/c/Make-lang.in:85: cc1] Error 1
/usr/lib/../lib/libmpfr.so: undefined reference to `__gmpn_com'
collect2: error: ld returned 1 exit status
make[3]: *** [../.././gcc/cp/Make-lang.in:120: cc1plus] Error 1
make[2]: *** [Makefile:4657: all-stage2-gcc] Error 2
make[1]: *** [Makefile:22203: stage2-bubble] Error 2
make: *** [Makefile:944: all] Error 2
如果您想查看错误的完整输出,请提供一个pastebin:https://pastebin.com/g5sn3jDv