Compilation problem on SUN machine

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Compilation problem on SUN machine

Lin-Lin Wang
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




Reply | Threaded
Open this post in threaded view
|

Re: Compilation problem on SUN machine

Luigi Ballabio-2
On 2004.06.23 21:10, Lin-Lin Wang wrote:
> 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,
> [snipped]
> ../../ql/Math/linearinterpolation.hpp:36: Internal compiler error.
>
> Does this mean the g++ 2.95.3 I am using is too old?
> Anyon has similar experience and any suggestion?

Hi,
        I haven't seen this, but then again, I'm using a more recent  
gcc. Is a later version of gcc available on Solaris? Also, can you try  
and compile with gcc 2.95 on another platform to see if the same  
happens?

Later,
        Luigi


Reply | Threaded
Open this post in threaded view
|

Re: Compilation problem on SUN machine

Lin-Lin Wang
HI Luigi,

Thanks for the reply. I did manage to compile quantlib successfully on
Cygwin. It comes with the g++ 3.3.1. I didn't try it further on solaris
becasue I don't have the administrative right to update the compiler.
So the problem seems to be due to the older version of g++ on solaris.

Cheers!
linlin

On Tue, 6 Jul 2004, Luigi Ballabio wrote:

> On 2004.06.23 21:10, Lin-Lin Wang wrote:
> > 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,
> > [snipped]
> > ../../ql/Math/linearinterpolation.hpp:36: Internal compiler error.
> >
> > Does this mean the g++ 2.95.3 I am using is too old?
> > Anyon has similar experience and any suggestion?
>
> Hi,
> I haven't seen this, but then again, I'm using a more recent  
> gcc. Is a later version of gcc available on Solaris? Also, can you try  
> and compile with gcc 2.95 on another platform to see if the same  
> happens?
>
> Later,
> Luigi
>

--------------------------------------------------------------
Lin-Lin Wang                    Phone:  (352)392-7184 (o)
Quantum Theory Project                  (352)846-5328 (h)
P.O. Box 118435                 Fax:    (352)392-8722
University of Florida           Email:  [hidden email]
Gainesville, FL 32611-8435      http://www.qtp.ufl.edu/~lwang
--------------------------------------------------------------