Configure 的時候總是說 GMP, MPFR, MPC 的 Library 版本不對。
./configure --prefix=/usr/local --target=i386-jos-elf --disable-werror --disable-libssp --disable-libmudflap --with-newlib --without-headers --enable-languages=c,c++ --with-gmp=/usr/local/ --with-mpfr=/usr/local --with-mpc=/usr/local
[省略很多行]
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
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
但是 /usr/local 裏面有新鮮編譯、安裝好的 GMP, MPFR, MPC,版本分別是 5.0.1, 3.0.0, 0.9。
my-mac:gcc-4.5.1 me$ ls /usr/local/lib/
ImageMagick-6.6.1 libmpc.2.dylib libmpfr.a
libgmp.10.dylib libmpc.a libmpfr.dylib
libgmp.a libmpc.dylib libmpfr.la
libgmp.dylib libmpc.la
libgmp.la libmpfr.4.dylib
-- 這是一個典型的語言很貧乏的提問。
./configure --prefix=/usr/local --target=i386-jos-elf --disable-werror --disable-libssp --disable-libmudflap --with-newlib --without-headers --enable-languages=c,c++ --with-gmp=/usr/local/ --with-mpfr=/usr/local --with-mpc=/usr/local
[省略很多行]
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
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
但是 /usr/local 裏面有新鮮編譯、安裝好的 GMP, MPFR, MPC,版本分別是 5.0.1, 3.0.0, 0.9。
my-mac:gcc-4.5.1 me$ ls /usr/local/lib/
ImageMagick-6.6.1 libmpc.2.dylib libmpfr.a
libgmp.10.dylib libmpc.a libmpfr.dylib
libgmp.a libmpc.dylib libmpfr.la
libgmp.dylib libmpc.la
libgmp.la libmpfr.4.dylib
-- 這是一個典型的語言很貧乏的提問。