Problems compiling GMP from source (seg fault on make test)
Torbjorn Granlund
tg at gmplib.org
Sun Mar 25 11:44:46 CEST 2012
Simon Burnet <simbur at yahoo.com> writes:
On my Debian 6.0.4 AMD 64 system (just installed yesterday), GMP
v5.0.4 (downloaded from gmplib.org, not patched or modified at all)
compiles with no issues, but the "make check" subsequently fails.
I'm trying to create a sort of minimal compiler system, but with newer
versions of libraries. The configure I'm running is the following:
LDFLAGS="-L$1/lib" CFLAGS="-I$1/include" CPPFLAGS="-I$1/include" ./configure --prefix="$1"
You should not override CFLAGS selectively like that, GMP's configure
will then assume you know better that it does, and it will refrain from
adding its own flags.
Did you try a plain build, as described in
http://gmplib.org/manual/Installing-GMP.html before you reported these
problems?
--
Torbjörn
More information about the gmp-bugs
mailing list