Minh Nguyen wrote:
> Hi folks,
> 
> Sage 4.1.1 compilation aborted after an error trying to compile the
> spkg sage-4.1.1.spkg. Here's a relevant snippet:
> 
> ****************************************************
> Host system
> uname -a:
> SunOS t2 5.10 Generic_141414-02 sun4v sparc SUNW,T5240 Solaris
> ****************************************************
> ****************************************************
> CC Version
> gcc -v
> Using built-in specs.
> Target: sparc-sun-solaris2.10
> Configured with: ../gcc-4.2.4/configure 
> --prefix=/usr/local/gcc-4.2.4-sun-linker
> / --with-as=/usr/ccs/bin/as --without-gnu-as --with-ld=/usr/ccs/bin/ld 
> --without
> -gnu-ld --enable-languages=c,c++,fortran 
> --with-mpfr-include=/usr/local/include
> --with-mpfr-lib=/usr/local/lib --with-gmp-include=/usr/local/include 
> --with-gmp-
> lib=/usr/local/lib
> Thread model: posix
> gcc version 4.2.4
> ****************************************************
> mv: cannot stat `/scratch/mvngu/sage-4.1.1/devel/sage-main': No such file or 
> dir
> ectory
> gcc -o src/so_convert.o -c -fPIC -I/scratch/mvngu/sage-4.1.1/local/include 
> -I/sc
> ratch/mvngu/sage-4.1.1/local/include/python2.6 
> -I/scratch/mvngu/sage-4.1.1/local
> /include/NTL -Iinclude src/convert.c
> gcc -o src/so_interrupt.o -c -fPIC -I/scratch/mvngu/sage-4.1.1/local/include 
> -I/
> scratch/mvngu/sage-4.1.1/local/include/python2.6 
> -I/scratch/mvngu/sage-4.1.1/loc
> al/include/NTL -Iinclude src/interrupt.c
> gcc -o src/so_mpn_pylong.o -c -fPIC -I/scratch/mvngu/sage-4.1.1/local/include 
> -I
> /scratch/mvngu/sage-4.1.1/local/include/python2.6 
> -I/scratch/mvngu/sage-4.1.1/lo
> cal/include/NTL -Iinclude src/mpn_pylong.c
> gcc -o src/so_mpz_pylong.o -c -fPIC -I/scratch/mvngu/sage-4.1.1/local/include 
> -I
> /scratch/mvngu/sage-4.1.1/local/include/python2.6 
> -I/scratch/mvngu/sage-4.1.1/lo
> cal/include/NTL -Iinclude src/mpz_pylong.c
> gcc -o src/so_mpz_longlong.o -c -fPIC 
> -I/scratch/mvngu/sage-4.1.1/local/include
> -I/scratch/mvngu/sage-4.1.1/local/include/python2.6 
> -I/scratch/mvngu/sage-4.1.1/
> local/include/NTL -Iinclude src/mpz_longlong.c
> gcc -o src/so_stdsage.o -c -fPIC -I/scratch/mvngu/sage-4.1.1/local/include 
> -I/sc
> ratch/mvngu/sage-4.1.1/local/include/python2.6 
> -I/scratch/mvngu/sage-4.1.1/local
> /include/NTL -Iinclude src/stdsage.c
> gcc -o src/so_gmp_globals.o -c -fPIC
> -I/scratch/mvngu/sage-4.1.1/local/include
> -I/scratch/mvngu/sage-4.1.1/local/include/python2.6
> -I/scratch/mvngu/sage-4.1.1/local/include/NTL -Iinclude
> src/gmp_globals.c
> /opt/SUNWspro/bin/CC -o src/so_ZZ_pylong.o -c -KPIC -fPIC
> -I/scratch/mvngu/sage-4.1.1/local/include
> -I/scratch/mvngu/sage-4.1.1/local/include/python2.6
> -I/scratch/mvngu/sage-4.1.1/local/include/NTL -Iinclude
> src/ZZ_pylong.cpp
> CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
> "src/ZZ_pylong.cpp", line 47: Error: "ZZ_set_pylong(NTL::ZZ&,
> _object*)" is expected to return a value.
> 1 Error(s) detected.
> scons: *** [src/so_ZZ_pylong.o] Error 1
> *** TOUCHING ALL CYTHON (.pyx) FILES ***
> /opt/SUNWspro/bin/CC -o src/so_ZZ_pylong.o -c -KPIC -fPIC
> -I/scratch/mvngu/sage-4.1.1/local/include
> -I/scratch/mvngu/sage-4.1.1/local/include/python2.6
> -I/scratch/mvngu/sage-4.1.1/local/include/NTL -Iinclude
> src/ZZ_pylong.cpp
> CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
> "src/ZZ_pylong.cpp", line 47: Error: "ZZ_set_pylong(NTL::ZZ&,
> _object*)" is expected to return a value.
> 1 Error(s) detected.
> scons: *** [src/so_ZZ_pylong.o] Error 1
> 
> ----------------------------------------------------------
> sage: Building and installing modified Sage library files.
> 
> 
> Installing c_lib
> /opt/SUNWspro/bin/CC -o src/so_ZZ_pylong.o -c -KPIC -fPIC
> -I/scratch/mvngu/sage-4.1.1/local/include
> -I/scratch/mvngu/sage-4.1.1/local/include/python2.6
> -I/scratch/mvngu/sage-4.1.1/local/include/NTL -Iinclude
> src/ZZ_pylong.cpp
> CC: Warning: Option -fPIC passed to ld, if ld is invoked, ignored otherwise
> "src/ZZ_pylong.cpp", line 47: Error: "ZZ_set_pylong(NTL::ZZ&,
> _object*)" is expected to return a value.
> 1 Error(s) detected.
> scons: *** [src/so_ZZ_pylong.o] Error 1
> ERROR: There was an error building c_lib.
> 
> ERROR installing SAGE
> 
> real    1m58.511s
> user    1m37.576s
> sys     0m18.334s
> sage: An error occurred while installing sage-4.1.1
> Please email sage-devel http://groups.google.com/group/sage-devel
> explaining the problem and send the relevant part of
> of /scratch/mvngu/sage-4.1.1/install.log.  Describe your computer,
> operating system, etc.
> If you want to try to fix the problem, yourself *don't* just cd to
> /scratch/mvngu/sage-4.1.1/spkg/build/sage-4.1.1 and type 'make'.
> Instead type "/scratch/mvngu/sage-4.1.1/sage -sh"
> in order to set all environment variables correctly, then cd to
> /scratch/mvngu/sage-4.1.1/spkg/build/sage-4.1.1
> (When you are done debugging, you can type "exit" to leave the
> subshell.)
> make[1]: *** [installed/sage-4.1.1] Error 1
> make[1]: Leaving directory `/scratch/mvngu/sage-4.1.1/spkg'
> 
> real    997m27.655s
> user    858m39.409s
> sys     81m31.052s
> Error building Sage.
> 


This is a problem we have seen with PolyBori too. It is caused by the 
fact that you will see the above line in your build

/opt/SUNWspro/bin/CC -o src/so_ZZ_pylong.o -c -KPIC -fPIC

In other words, Sun's compiler gets used.

The only hack I have found to date is to temporarily rename 
/opt/SUNWspro to something else, then do the build. I suspect it is 
related to SCons.

I'll try to look into this more. It builds fine if there is no install 
of Sun Studio, but needs some effort on 't2' as Sun Studio is installed.


Dave

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to