我正在尝试为i586-elf编译GCC,但每次使用此命令运行'configure'文件时:
./configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable
languages=c --without-headers --with-gmp=$PREFIX --with-mpc=$PREFIX
--with-mpfr=$PREFIX
然后它给了我这个错误:
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... no.
虽然我已经指定了gmp,mpfr和mpc的位置。我有他们的最新版本。有什么我想念的吗?
除非您真的关心特定的gmp / mpfr等版本,否则我建议您从顶级GCC源目录运行contrib/download_prerequisites
脚本,然后从配置行中省略--with-gmp=$PREFIX --with-mpc=$PREFIX --with-mpfr=$PREFIX
。 download_prerequisites
脚本将下载并解压缩您的GCC版本所需的库的正确版本,它将在正确的位置创建正确的符号链接