LINUX.ORG.RU

checking for the correct version of gmp.h... no


0

1

Пытаюсь собрать LFS. Just for lulz. Собрал binutils, пытаюсь собрать gcc. делаю все точно по инструкции:

lfs@debian:/mnt/lfs/sources/gcc-build$ tar -jxf ../mpfr-3.0.0.tar.bz2
lfs@debian:/mnt/lfs/sources/gcc-build$ mv -v mpfr-3.0.0 mpfr
`mpfr-3.0.0' -> `mpfr'
lfs@debian:/mnt/lfs/sources/gcc-build$ tar -jxf ../gmp-5.0.1.tar.bz2
lfs@debian:/mnt/lfs/sources/gcc-build$ mv -v gmp-5.0.1 gmp
`gmp-5.0.1' -> `gmp'
lfs@debian:/mnt/lfs/sources/gcc-build$ tar -zxf ../mpc-0.8.2.tar.gz
lfs@debian:/mnt/lfs/sources/gcc-build$ mv -v mpc-0.8.2 mpc
`mpc-0.8.2' -> `mpc'
lfs@debian:/mnt/lfs/sources/gcc-build$ ../gcc-4.5.2/configure \
>     --target=$LFS_TGT --prefix=/tools \
>     --disable-nls --disable-shared --disable-multilib \
>     --disable-decimal-float --disable-threads \
>     --disable-libmudflap --disable-libssp \
>     --disable-libgomp --enable-languages=c \
>     --with-gmp-include=$(pwd)/gmp --with-gmp-lib=$(pwd)/gmp/.libs \
>     --without-ppl --without-cloog
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-lfs-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 a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... gcc
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 accepts -g... yes
checking for gcc option to accept ISO C89... 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 objdir... .libs
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
their locations.  Source code for these libraries 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, MPFR and/or MPC 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.
Хотя все сделано точно по инструкции... Как исправить эту ошибку?
checking for the correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.


Это надо в лор-wiki добавить.

Распакуй mpfr и gmp в каталог с gcc. Не забудь переименовать каталоги чтобы назывались «gmp» и «mpfr» (т.е. убрать номер версии)

elverion
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.