admin@HP-BIG-DESK ~/gcc-9.1.0
$ ./configure --disable-shared --disable-bootstrap --disable-libstdcxx-pch --enable-languages=all --enable-libgomp --enable-lto --enable-threads=posix --enable-tls --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local --with-libelf=/usr/local
checking build system type... x86_64-pc-cygwin
checking host system type... x86_64-pc-cygwin
checking target system type... x86_64-pc-cygwin
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... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... no
checking for libsanitizer support... no
checking for libvtv support... yes
checking for libhsail-rt support... no
checking for libphobos support... no
checking to see if cat works as expected... yes
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... unsupported
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... no
checking for gnatbind... gnatbind
checking for gnatmake... gnatmake
checking whether compiler driver understands Ada... yes
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.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
Prerequisites for GCC
- GNU Project - Free Software Foundation (FSF) 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.
admin@HP-BIG-DESK ~/gcc-9.1.0
$
admin@HP-BIG-DESK ~/gcc-9.1.0
$ ls /usr/local
bin etc include lib share
admin@HP-BIG-DESK ~/gcc-9.1.0
$ ls /usr/local/include/
gmp.h isl mpc.h mpf2mpfr.h mpfr.h
admin@HP-BIG-DESK ~/gcc-9.1.0
$ ls /usr/local/lib
libgmp.a libgmp.la libisl.a libisl.la libmpc.a libmpc.la libmpfr.a libmpfr.la pkgconfig
admin@HP-BIG-DESK ~/gcc-9.1.0
$ pwd
/home/admin/gcc-9.1.0
admin@HP-BIG-DESK ~/gcc-9.1.0
$ echo $LDFLAGS
-L/usr/local/lib
admin@HP-BIG-DESK ~/gcc-9.1.0
$ echo $CPPFLAGS
-I/usr/local/include
admin@HP-BIG-DESK ~/gcc-9.1.0
$