+ -
当前位置:首页 → 问答吧 → (已解决)LFS6.5进行中,遇到问题。请教!

(已解决)LFS6.5进行中,遇到问题。请教!

时间:2010-06-01

来源:互联网

第一次开始LFS。
版本:LFS6.5 (VMware Workstation 7)

进行到GCC第一次编译时出现错误,使用的编译参数是:

CC="gcc -B/usr/bin/" ../gcc-4.4.1/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c


lfs:/mnt/lfs/sources$ cd gcc-build/
lfs:/mnt/lfs/sources/gcc-build$ CC="gcc -B/usr/bin/" ../gcc-4.4.1/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc -B/usr/bin/
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -B/usr/bin/ accepts -g... yes
checking for gcc -B/usr/bin/ option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.2+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.

作者: 博客教主   发布时间: 2010-06-01

没有GMP和MPFR这两个库

作者: digwtx   发布时间: 2010-06-01

引用:
作者: digwtx
没有GMP和MPFR这两个库
这个我也知道,只是想怎么解决比较好?换宿主系统?

作者: 博客教主   发布时间: 2010-06-01

If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.

GMP, MPFR 可以在你的宿主系统中安装吧?
似乎还要安装相应的dev包

作者: littlebat   发布时间: 2010-06-01

看看6.6的手册,应该有用,虽然你用6.5的

作者: digwtx   发布时间: 2010-06-01

6.6的文档讲的很清楚.
你要下载相关的两个包,然后解压,改名.在编译就可以过了.

进入gcc-xxx的目录
tar -jxf ../mpfr-2.4.2.tar.bz2
mv -v mpfr-2.4.2 mpfr
tar -jxf ../gmp-5.0.0.tar.bz2
mv -v gmp-5.0.0 gmp

作者: lfsfresher   发布时间: 2010-06-03

引用:
作者: lfsfresher
6.6的文档讲的很清楚.
你要下载相关的两个包,然后解压,改名.在编译就可以过了.

进入gcc-xxx的目录
tar -jxf ../mpfr-2.4.2.tar.bz2
mv -v mpfr-2.4.2 mpfr
tar -jxf ../gmp-5.0.0.tar.bz2
mv -v gmp-5.0.0 gmp
谢谢提示!

作者: 博客教主   发布时间: 2010-06-04

已成功完成LFS6.3,下次弄6.6。
http://www.linuxsir.org/bbs/thread368404.html

作者: 博客教主   发布时间: 2010-06-04

热门下载

更多