Login  Register

Compilation problem on SUN machine

Posted by Lin-Lin Wang on Jun 23, 2004; 1:11pm
URL: http://quantlib.414.s1.nabble.com/Compilation-problem-on-SUN-machine-tp3025.html

Hello,

I am new to this subject and trying to compile quantlib on
sparc-sun-solaris2.7 with g++ 2.95.3. The first few steps are okay. But
when it tries to compile mathf.cpp inside functions, it reports error as
following,

source='mathf.cpp' object='mathf.lo' libtool=yes \
depfile='.deps/mathf.Plo' tmpdepfile='.deps/mathf.TPlo' \
depmode=gcc /bin/ksh ../../config/depcomp \
/bin/ksh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../../ql  -I../.. -I../..   -g -c -o mathf.lo mathf.cpp
 g++ -DHAVE_CONFIG_H -I. -I. -I../../ql -I../.. -I../.. -g -c mathf.cpp
-Wp,-MD,.deps/mathf.TPlo  -fPIC -DPIC -o .libs/mathf.o
In file included from ../../ql/Math/loglinearinterpolation.hpp:26,
                 from ../../ql/functions/mathf.hpp:26,
                 from mathf.cpp:18:
../../ql/Math/linearinterpolation.hpp:36: Internal compiler error.
../../ql/Math/linearinterpolation.hpp:36: Please submit a full bug report.
../../ql/Math/linearinterpolation.hpp:36: See
<URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

Does this mean the g++ 2.95.3 I am using is too old?
Anyon has similar experience and any suggestion?

thanks,
linlin