目的:解决问题
-
configure:2396: $? = 1
-
configure:2415: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5
-
/mnt/lfs/sources/gcc-build/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
昨天问题,没有精确定位,就会对事物认识不够,问题应该是./gcc/cc1报出来的,那应该找cc1的问题。
-
readelf -a cc1 | grep interpreter
-
-
Requesting program interpreter: /lib/ld-linux.so.2
如果使用改链接器就,必须改变ld-linux.so.2的搜寻路径:
-
export LD_LIBRARY_PATH=/tools/lib
将gcc-build目录当中的文件全部删除,再次运行configure,make,可成功编译,解决运行make install.
阅读(1845) | 评论(2) | 转发(1) |