So I follow the book in section 6.21.1. Installation of GCC
SED=sed \
../configure --prefix=/usr \
--enable-languages=c,c++ \
--disable-multilib \
--disable-bootstrap \
--with-system-zlib
This is what it returns
configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ 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.
I went back to sections 6.17 (GMP-6.1.2), 6.18 (MPFR-4.0.2), and 6.19
(MPC-1.1.0) to do the compile and install again, and this time with the
checks. All went well.
Looking in /usr/lib I can see
Mcrt1.o libBrokenLocale.a libc.so libgmp.la
libm-2.30.a libmpfr.so libnss_files.so libresolv.a
libutil.so
Scrt1.o libBrokenLocale.so libc_nonshared.a libgmp.so libm.a
libmpfr.so.6 libnss_hesiod.so libresolv.so libz.a
audit libanl.a libcrypt.a libgmp.so.10 libm.so
libmpfr.so.6.0.2 libopcodes-2.32.so librt.a libz.so
crt1.o libanl.so libcrypt.so libgmp.so.10.3.2
libmagic.la libmvec.a libopcodes.a librt.so
locale
crti.o libbfd-2.32.so libdl.a libgmpxx.la
libmagic.so libmvec.so libopcodes.la libstdc++.a
pkgconfig
crtn.o libbfd.a libdl.so libgmpxx.so
libmagic.so.1 libmvec_nonshared.a libopcodes.so libstdc++.so
tmpfiles.d
gconv libbfd.la libg.a libgmpxx.so.4
libmagic.so.1.0.0 libnss_compat.so libpthread.a libstdc++.so.6
gcrt1.o libbfd.so libgcc_s.so libgmpxx.so.4.5.2
libmcheck.a libnss_db.so libpthread.so libthread_db.so
ldscripts libc.a libgcc_s.so.1 libhistory.so
libmpfr.la libnss_dns.so libreadline.so libutil.a
I then try following the advice of text of the error and added in
--with-gmp=/usr --with-mpfr=/usr --with-mpc=/usr
I still get the same result.
I then further tried
--with-gmp=/usr/lib --with-mpfr=/usr/lib --with-mpc=/usr/lib
With no change.
At this point, I have no idea on why configure is still having trouble.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style