On Jan 3, 6:04 am, Farzin Shakib <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have run into a problem compiling Sage on my system:
>
> farzin/ tern[1]: uname -a
> Linux tern 2.4.21-15.EL #1 SMP Thu Apr 22 00:09:47 EDT 2004 x86_64
> x86_64 x86_64 GNU/Linux
> farzin/ tern[2]: more /etc/redhat-release
> Red Hat Enterprise Linux WS release 3 (Taroon Update 2)
> farzin/ tern[3]: gcc -v
> Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --with-system-zlib --enable-__cxa_atexit
> --host=x86_64-redhat-linux
> Thread model: posix
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
> farzin/ tern[4]: rpm -q glibc
> glibc-2.3.2-95.20
> glibc-2.3.2-95.20
>
> Please see the attached install.log for complete error messages.  Here
> is a sample
>
> g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING  -I../include
> -DNTL_ALL  -I/disk1/SAGE/sage-2.9.1.1/local/include
> -I/disk1/SAGE/sage-2.9.1.1/local/include -DMETHOD=2 -DUSE_XSPLIT
> periods.cc -o periods_n.o
> periods.cc: In constructor `periods_via_lfchi::periods_via_lfchi(const
> level*,
>   const newform*)':
> periods.cc:382: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: candidates are: double log(double)
> /usr/include/c++/3.2.3/cmath:334:                 long double std::log(long
>   double)
> /usr/include/c++/3.2.3/cmath:326:                 float std::log(float)

Hi Farzin,

> Do you have any suggestions?

you need at least gcc 3.4 since Sage requires C99 support for FLINT.
As you experienced the cremona.spkg also fails to compile, even though
that issue is probably fixable.

> Thanks
> Farzin
>
> P.S  The binary version on the web gives the following erorr (after I
> have placed your libstdc++.so.6 in your local/lib):
>
> <type 'exceptions.ImportError'>: /lib64/libgcc_s.so.1: version
> `GCC_4.2.0' not found (required by /opt/sage/local/lib/libstdc++.so.6)

It looks like on your RHEL 4.0 install most of the gcc runtime
libraries are out of date. It is probably easiest if you compile your
own gcc toolchain (gcc 4.2.2 would be recommended) and use that to
build Sage.

Cheers,

Michael

> --
>  Farzin Shakib, President                 (650) 988-9700 x710 (Office)
>  ACUSIM Software, Inc.                    (650) 988-9770 (Fax)
>  2685 Marine Way, Suite 1421              [EMAIL PROTECTED]
>  Mountain View, CA 94043                  http://www.acusim.com
>
>  install.log.zip
> 73KDownload
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to