Chinaunix首页 | 论坛 | 博客
  • 博客访问: 839115
  • 博文数量: 90
  • 博客积分: 766
  • 博客等级: 军士长
  • 技术积分: 1867
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-18 08:42
个人简介

linux

文章分类

全部博文(90)

文章存档

2021年(2)

2020年(2)

2017年(1)

2015年(11)

2014年(1)

2013年(53)

2012年(16)

2011年(4)

分类: 系统运维

2013-03-21 22:51:28

        目的:解决问题

点击(此处)折叠或打开

  1. configure:2396: $? = 1
  2.     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
  3.     /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的问题。


点击(此处)折叠或打开

  1. readelf -a cc1 | grep interpreter

  2. Requesting program interpreter: /lib/ld-linux.so.2

        可以看出cc1使用的连接器是/lib/ld-linux.so.2,而/tools/lib并不在这个链接器的搜索范围之类,当然不能找到。要想搜寻这个目录,要嘛改变链接器,要嘛改变搜索目录。在这里明显应该改变连接器。
阅读(2048) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~