Hello, I got this error when building coreutils.
expr.c:54:18: fatal error: gmp.h: No such file or directory As far as I can tell this file is not in the archive. The only reference to it has been in 5.10. I don't recall this issue from book 6.7. These are the exact commands I entered: ./configure --prefix=/tools --enable-install-program=hostname make I tried to attach the config.log, but it was too big. Here is a clipped version: grep -3 gmp config.log COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/tools/libexec/gcc/i686-pc-linux-gnu/4.5.2/lto-wrapper Target: i686-pc-linux-gnu Configured with: /sources/gcc-4.5.2/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --with-gmp-include=/sources/gcc-build/gmp --with-gmp-lib=/sources/gcc-build/gmp/.libs --without-ppl --without-cloog Thread model: posix gcc version 4.5.2 (GCC) configure:4482: $? = 0 -- configure:55278: gcc -std=gnu99 -o conftest -g -O2 conftest.c -lcrypt >&5 configure:55278: $? = 0 configure:55295: result: -lcrypt configure:55322: checking for library containing __gmpz_init configure:55353: gcc -std=gnu99 -o conftest -g -O2 conftest.c >&5 /tmp/ccx0U81k.o: In function `main': /sources/coreutils-8.10/conftest.c:840: undefined reference to `__gmpz_init' collect2: ld returned 1 exit status configure:55353: $? = 1 configure: failed program was: -- | #ifdef __cplusplus | extern "C" | #endif | char __gmpz_init (); | int | main () | { | return __gmpz_init (); | ; | return 0; | } configure:55353: gcc -std=gnu99 -o conftest -g -O2 conftest.c -lgmp >&5 configure:55353: $? = 0 configure:55370: result: -lgmp configure:55405: checking whether this is an ELF system configure:55421: result: yes configure:55620: checking whether NLS is requested -- ac_cv_prog_gcc_traditional=no ac_cv_prog_make_make_set=yes ac_cv_safe_to_define___extensions__=yes ac_cv_search___gmpz_init=-lgmp ac_cv_search_clock_gettime=-lrt ac_cv_search_crypt=-lcrypt ac_cv_search_fdatasync='none required' -- LIB_EACCESS='' LIB_FDATASYNC='' LIB_GETHRXTIME='-lrt' LIB_GMP='-lgmp' LIB_NANOSLEEP='' LIB_PTHREAD='-lpthread' LIB_SELINUX='-lselinux' -- Thank you, -Brian -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page