LFS6.4编译GCC都时候报错说找不到头文件,麻烦大侠帮忙看下
时间:2009-05-18
来源:互联网
就是这一段:
tar -jxf ../mpfr-2.3.2.tar.bz2
mv mpfr-2.3.2 mpfr
tar -jxf ../gmp-4.2.4.tar.bz2
mv gmp-4.2.4 gmp
The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:
mkdir -v ../gcc-build
cd ../gcc-build
Prepare GCC for compilation:
前面都弄好了编译下面命令时出错:
CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure \
--prefix=/tools --with-local-prefix=/tools --disable-nls \
--disable-shared --disable-libssp --enable-languages=c
我的文件摆放路径如下:
lfs:/mnt/lfs$ ls
gcc-4.3.2 gcc-build gmp lost+found mpfr sources tools
切换到 gcc-build 目录下编译gcc报错:
lfs:/mnt/lfs/gcc-build$ CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp --enable-languages=c
中间是正确的………………
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
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.
说明书上说需要gmp和mpfr两个包,我两个包都解压改名字放做同一级目录下,结果gmp.h能找到,mpfr.h找不到,麻烦大侠帮忙看下。
再发一下我的目录,我的母系统是fedora10
lfs:/mnt/lfs$ ls
gcc-4.3.2 gcc-build gmp lost+found mpfr sources tools
tar -jxf ../mpfr-2.3.2.tar.bz2
mv mpfr-2.3.2 mpfr
tar -jxf ../gmp-4.2.4.tar.bz2
mv gmp-4.2.4 gmp
The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:
mkdir -v ../gcc-build
cd ../gcc-build
Prepare GCC for compilation:
前面都弄好了编译下面命令时出错:
CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure \
--prefix=/tools --with-local-prefix=/tools --disable-nls \
--disable-shared --disable-libssp --enable-languages=c
我的文件摆放路径如下:
lfs:/mnt/lfs$ ls
gcc-4.3.2 gcc-build gmp lost+found mpfr sources tools
切换到 gcc-build 目录下编译gcc报错:
lfs:/mnt/lfs/gcc-build$ CC="gcc -B/usr/bin/" ../gcc-4.3.2/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --disable-shared --disable-libssp --enable-languages=c
中间是正确的………………
checking for correct version of gmp.h... yes
checking for correct version of mpfr.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
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.
说明书上说需要gmp和mpfr两个包,我两个包都解压改名字放做同一级目录下,结果gmp.h能找到,mpfr.h找不到,麻烦大侠帮忙看下。
再发一下我的目录,我的母系统是fedora10
lfs:/mnt/lfs$ ls
gcc-4.3.2 gcc-build gmp lost+found mpfr sources tools
作者: mgqw 发布时间: 2009-05-18
mv mpfr gcc-4.3.2 就可以了,晕死
gmp和gcc-4.3.2要评级目录,mpfr要做gcc-4.3.2目录里面……………………
gmp和gcc-4.3.2要评级目录,mpfr要做gcc-4.3.2目录里面……………………
作者: mgqw 发布时间: 2009-05-18
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28