gmp 4.3.2 on Solaris 8, gcc 3.2.2 (old server)
alanpae at ilkda.com
alanpae at ilkda.com
Mon Nov 8 01:15:13 CET 2010
I've been playing with this some more by following a thread on a MySQL
bug report which can be viewed here:
http://bugs.mysql.com/bug.php?id=31268
It suggests that it actually takes three fixes to make this work. There
are:
o Give "--build=x86_64-pc-solaris2.10" as a configure argument
o Give "-m64" part of CFLAGS, CXXFLAGS and LDFLAGS
o Configure and run make like
% LIBRARY_PATH=/usr/local/lib/amd64 ./configure .....
% LIBRARY_PATH=/usr/local/lib/amd64 gmake
In order. I've tried setting that to no avail. I'm using the stock gcc
on OpenSolaris which is still GCC 3.4.3. My build= defaults to
core2-pc-solaris2.11 which means dual core Intel with 64 bit extensions
according to the gcc manual and setting build = to x86_64-pc-solaris2.11
results in the same. I think it's a case of the version of gcc being to
old to even know that those are but I could be wrong. In any case, it
doesn't seem to help.
gcc has no problems with adding -m64 to the various flags. I've set
mine to:
CC="gcc -m64"
CXX="g++ -m64"
CFLAGS="-m64 -I/opt/gcc/include -O3"
CPPFLAGS="-m64 -I/opt/gcc/include -I/usr/include/gmp -O3"
CXXFLAGS="-m64 -I/opt/gcc/include -I/usr/include/gmp -O3"
and lastly is the LIBRARY_PATH which I set in LDFLAGS instead.
LDFLAGS="-L/usr/sfw/lib/amd64 -L/usr/sfw/lib -R/opt/gcc/lib"
So between the CC, CXX, CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS compiling
gmp, mpfr, mpc went off without a hitch and I've gotten further with gcc
then I have been able to before. It's still running in the background
as I'm typing this.
alan
More information about the gmp-bugs
mailing list