Minh Nguyen wrote:
> Hi folks,
> 
> When building Sage 4.3.alpha1 on t2 (SPARC Solaris 10) with GCC 4.4.1
> and the Sun linker/assembler, the build failed. This time, it failed
> when building c_lib. Here's a relevant error message snippet:
> 
> 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 
> expe
> cted 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/sandbox/sage-4.3.alpha1/local/include
> -I/scratch/mvngu/sandbox/sage-4.3.alpha1/local/include/python2.6
> -I/scratch/mvngu/sandbox/sage-4.3.alpha1/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/sandbox/sage-4.3.alpha1/local/include
> -I/scratch/mvngu/sandbox/sage-4.3.alpha1/local/include/python2.6
> -I/scratch/mvngu/sandbox/sage-4.3.alpha1/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.
> 
>>From the look of it, there's a mixture of GCC and Sun C compilers when
> one should choose either and stick with it for the rest of the build
> process. Also, the build now fails earlier than last I remember.
> Previously, the build would fail when building the package
> sage-x.y.z.spkg. The full install log is up on sage.math [1]. If it
> helps, here's my PATH:
> 
> [mv...@t2 ~]$ echo $PATH
> /usr/local/gcc-4.4.1-sun-linker/bin:/usr/local/bin2:/usr/bin:/usr/ccs/bin:/usr/local/bin:/usr/sfw/bin:/bin:/usr/sbin
> 
> [1] 
> http://sage.math.washington.edu/home/mvngu/doc/sage/install/sage-4.3/install-sage-4.3.alpha1-t2-sparc-solaris-10.log
> 


Does anyone fancy having a look at trying to fix this? It probably needs 
someone 
with knowledge of SCons, or at least python better than me.

Basically, the library is not respecting the variable CXX (nothing unusual), 
but 
choses the Sun C++ compiler in preference to the g++ (very unusual), even if 
the 
Sun compiler is not in the path, and CXX is set to g++.

This is really the only thing that presents Sage from building quite easily on 
Solaris.


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
URL: http://www.sagemath.org

Reply via email to