I wrote the C++ code which the compiler is choking on.  It looks like
the wrong headers are being picked up, so it seems most likely that
it's a problem with the way your compiler is installed.

I don't have anything helpful to suggest, bu others reading this list
probably will!

John Cremona

2009/1/23 tyler <[email protected]>:
>
> Good afternoon,
> I have been trying to install sage over the last couple of days and
> have had some trouble. I run Mandriva operating system on AMD64
> processors in a dell inspiron laptop. It doesn't seem like the
> mandriva-64bit build is compatible with my system. So I've been trying
> to install from source code. I've followed your installation guide. It
> all goes well for quite some time until I receive a series of errors
> associated with the log() function. From reading the log, I thought at
> first that I was using an old gnu compiler so made sure that the
> version is gcc version 4.2.2. The command gcc4.2.2 is linked to the
> command gcc but I'm still getting the same errors associated with the
> old compiler. I'm not great with this kind of stuff yet and I don't
> know how to proceed.
>
> I've listed the end of the log here but could attach the entire thing
> if you would like.
>
> Hopefully someone can help, since I'm excited to use the program!
> -Tyler
>
>
>
> make[3]: Entering directory `/usr/lib/sage/sage-3.2.2/spkg/build/
> eclib-20080310.p7/src/g0n'
> Makefile:115: warning: overriding commands for target `clean'
> ../Makefile:76: warning: ignoring old commands for target `clean'
> Makefile:118: warning: overriding commands for target `veryclean'
> ../Makefile:84: warning: ignoring old commands for target `veryclean'
> Makefile:121: warning: overriding commands for target `check'
> ../Makefile:95: warning: ignoring old commands for target `check'
> g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING  -I../include -
> DNTL_ALL  -I/usr/lib/sage/sage-3.2.2/local/include -I/usr/lib/sage/
> sage-3.2.2/local/include -DMETHOD=2 -DUSE_XSPLIT  cusp.cc -o cusp_n.o
> g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING  -I../include -
> DNTL_ALL  -I/usr/lib/sage/sage-3.2.2/local/include -I/usr/lib/sage/
> sage-3.2.2/local/include -DMETHOD=2 -DUSE_XSPLIT  homspace.cc -o
> homspace_n.o
> g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING  -I../include -
> DNTL_ALL  -I/usr/lib/sage/sage-3.2.2/local/include -I/usr/lib/sage/
> sage-3.2.2/local/include -DMETHOD=2 -DUSE_XSPLIT  symb.cc -o symb_n.o
> g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING  -I../include -
> DNTL_ALL  -I/usr/lib/sage/sage-3.2.2/local/include -I/usr/lib/sage/
> sage-3.2.2/local/include -DMETHOD=2 -DUSE_XSPLIT  moddata.cc -o
> moddata_n.o
> g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING  -I../include -
> DNTL_ALL  -I/usr/lib/sage/sage-3.2.2/local/include -I/usr/lib/sage/
> sage-3.2.2/local/include -DMETHOD=2 -DUSE_XSPLIT  oldforms.cc -o
> oldforms_n.o
> g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING  -I../include -
> DNTL_ALL  -I/usr/lib/sage/sage-3.2.2/local/include -I/usr/lib/sage/
> sage-3.2.2/local/include -DMETHOD=2 -DUSE_XSPLIT  newforms.cc -o
> newforms_n.o
> g++ -c -fPIC -g -O2 -DNEW_OP_ORDER -DUSE_PARI_FACTORING  -I../include -
> DNTL_ALL  -I/usr/lib/sage/sage-3.2.2/local/include -I/usr/lib/sage/
> sage-3.2.2/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: error: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log
> (double)
> /usr/include/c++/3.3.6/cmath:419: error:                 long double
> std::log(long double)
> /usr/include/c++/3.3.6/cmath:411: error:                 float std::log
> (float)
> periods.cc:383: error: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log
> (double)
> /usr/include/c++/3.3.6/cmath:419: error:                 long double
> std::log(long double)
> /usr/include/c++/3.3.6/cmath:411: error:                 float std::log
> (float)
> periods.cc: In member function `virtual void periods_direct::compute
> ()':
> periods.cc:459: error: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log
> (double)
> /usr/include/c++/3.3.6/cmath:419: error:                 long double
> std::log(long double)
> /usr/include/c++/3.3.6/cmath:411: error:                 float std::log
> (float)
> periods.cc:460: error: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log
> (double)
> /usr/include/c++/3.3.6/cmath:419: error:                 long double
> std::log(long double)
> /usr/include/c++/3.3.6/cmath:411: error:                 float std::log
> (float)
> periods.cc: In member function `virtual void part_period::compute()':
> periods.cc:554: error: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log
> (double)
> /usr/include/c++/3.3.6/cmath:419: error:                 long double
> std::log(long double)
> /usr/include/c++/3.3.6/cmath:411: error:                 float std::log
> (float)
> periods.cc: In member function `void ldash1::init(const level*, const
> std::vector<long int, std::allocator<long int> >&, long int, const
> rational&)':
> periods.cc:593: error: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log
> (double)
> /usr/include/c++/3.3.6/cmath:419: error:                 long double
> std::log(long double)
> /usr/include/c++/3.3.6/cmath:411: error:                 float std::log
> (float)
> periods.cc: In constructor `lfchi::lfchi(const level*, const
> newform*)':
> periods.cc:635: error: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log
> (double)
> /usr/include/c++/3.3.6/cmath:419: error:                 long double
> std::log(long double)
> /usr/include/c++/3.3.6/cmath:411: error:                 float std::log
> (float)
> periods.cc: In function `NTL::RR G(int, NTL::RR)':
> periods.cc:975: error: call of overloaded `log(int)' is ambiguous
> /usr/include/bits/mathcalls.h:110: error: candidates are: double log
> (double)
> /usr/include/c++/3.3.6/cmath:419: error:                 long double
> std::log(long double)
> /usr/include/c++/3.3.6/cmath:411: error:                 float std::log
> (float)
> make[3]: *** [periods_n.o] Error 1
> make[3]: Leaving directory `/usr/lib/sage/sage-3.2.2/spkg/build/
> eclib-20080310.p7/src/g0n'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/lib/sage/sage-3.2.2/spkg/build/
> eclib-20080310.p7/src'
> Error building cremona
> Command exited with non-zero status 1
> 277.55user 11.79system 4:54.39elapsed 98%CPU (0avgtext+0avgdata
> 0maxresident)k
> 0inputs+0outputs (88major+2021537minor)pagefaults 0swaps
> sage: An error occurred while installing eclib-20080310.p7
> Please email sage-devel http://groups.google.com/group/sage-devel
> explaining the problem and send the relevant part of
> of /usr/lib/sage/sage-3.2.2/install.log.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to