This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
completely unable to get Gcc 4.4.5 to build with local Gmp/Mpfr
- From: Oliver Kullmann <O dot Kullmann at swansea dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 27 Dec 2010 19:56:00 +0000
- Subject: completely unable to get Gcc 4.4.5 to build with local Gmp/Mpfr
Hello,
we want to build Gcc 4.4.5, C, C++, Fortran,
without any system-wide installation of Gmp or Mpfr.
First we tried for a long time in vain to get Gcc to acknowledge
local installations of Gmp and Mpfr: the Gcc-build is defect,
and doesn't propagate linking-information to the build of libraries
(like libgcc or libgfortran).
Okay, we gave up on that, and just want to use what the manual says:
-----------------
Alternatively, if a GMP source distribution is found in a subdirectory of your GCC sources named gmp, it will be built together with GCC.
Alternatively, if a MPFR source distribution is found in a subdirectory of your GCC sources named mpfr, it will be built together with GCC.
----------------
Not clear what a "source distribution" precisely is, but the build starts promissing when
providing the sources like so:
> ls gcc-4.4.5/gmp/
gmp-5.0.1.tar.bz2
> ls gcc-4.4.5/mpfr/
mpfr-3.0.0.tar.bz2
Now installing Gcc with
gcc-4.4.5_build> ../gcc-4.4.5/configure
--prefix=/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/Installations/Gcc/4.4.5
--enable-languages=c,c++,fortran
--enable-threads=posix
--enable-shared
after some time we get the error
gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -I. -I. -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/. -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/../include -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/../libcpp/include -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5_build/./gmp -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gmp -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5_build/./mpfr -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/mpfr -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/../libdecnumber -I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/../libdecnumber/bid -I../libdecnumber /home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/builtins.c -o builtins.o
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/builtins.c: In function âexpand_builtinâ:
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/builtins.c:6468: warning: unknown conversion type character âKâ in format
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/builtins.c:6468: warning: too many arguments for format
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/builtins.c:6474: warning: unknown conversion type character âKâ in format
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/builtins.c:6474: warning: too many arguments for format
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/builtins.c: In function âfold_builtin_exponentâ:
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gcc/builtins.c:8743: error: âmpfr_exp10â undeclared (first use in this function)
which is not too surprising since neither Gmp nor Mpfr have been built until then!
How is this supposed to work?
Thanks for your help!
Oliver
P.S. Above you have
-I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5_build/./gmp
which makes sense (gcc-4.4.5_build is the build directory), however gmp wasn't built, and we find
-I/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.4.5/gmp
which doesn't make sense since that contains only the source-distribution.
???
By the way, extracting the archives, resulting in
> ls gcc-4.4.5/gmp/
gmp-5.0.1
> ls gcc-4.4.5/mpfr/
mpfr-3.0.0
yields exactly the same error.