|
学做LFS6.6,在编译glibc的时候出错了。
手册上没有说。
网上只说要装某包,然后我都装了。
并且我检查了工具的版本,没有不推荐的版本存在。
手册地址:http://www.ha97.com/book/lfs-book-6.6/chapter06/glibc.html
求解。。
- [lfs@LK glibc-build]$ ../../lfs-6.6-sources/glibc-2.11.1/configure --prefix=/usr --disable-profile --enable-add-ons --enable-kernel=2.6.32.8 --libexecdir=/usr/lib/glibc
- checking build system type... i686-pc-linux-gnulibc1
- checking host system type... i686-pc-linux-gnulibc1
- checking for gcc... gcc
- checking for suffix of object files... o
- checking whether we are using the GNU C compiler... yes
- checking whether gcc accepts -g... yes
- checking for gcc option to accept ISO C89... unsupported
- checking how to run the C preprocessor... /lib/cpp
- configure: error: in `/lfs/build/glibc-build':
- configure: error: C preprocessor "/lib/cpp" fails sanity check
- See `config.log' for more details.
- [root@LK ~]# rpm -qa | egrep '(gcc|glibc|headers)'
- glibc-devel-2.5-49
- gcc44-4.4.0-6.el5
- gcc-gnat-4.1.2-48.el5
- gcc44-gfortran-4.4.0-6.el5
- glibc-common-2.5-49
- libgcc-4.1.2-48.el5
- compat-libgcc-296-2.96-138
- glibc-headers-2.5-49
- glibc-utils-2.5-49
- gcc-4.1.2-48.el5
- gcc-c++-4.1.2-48.el5
- gcc-java-4.1.2-48.el5
- gcc-objc++-4.1.2-48.el5
- gcc44-c++-4.4.0-6.el5
- glibc-2.5-49
- kernel-headers-2.6.18-194.el5
- gcc-objc-4.1.2-48.el5
- gcc-gfortran-4.1.2-48.el5
- [root@LK ~]# ll /lib/cpp
- lrwxrwxrwx 1 root root 14 May 19 02:49 /lib/cpp -> ../usr/bin/cpp
复制代码 |
|