2009/7/31 Minh Nguyen <nguyenmi...@gmail.com>:
>
> On Thu, Jul 30, 2009 at 1:14 PM, Minh Nguyen<nguyenmi...@gmail.com> wrote:
>> Hi folks,
>>
>> This is the first release candidate for Sage 4.1.1. Source and binary are at
>>
>> http://sage.math.washington.edu/home/mvngu/release/sage-4.1.1.rc0.tar
>> http://sage.math.washington.edu/home/mvngu/release/sage-4.1.1.rc0-sage.math.washington.edu-x86_64-Linux.tar.gz
>>
>> and the upgrade path is
>>
>> http://sage.math.washington.edu/home/mvngu/release/sage-4.1.1.rc0/
>
> Sage still dies when trying to build sage-4.1.1.rc0.spkg. Here's a
> relevant snippet:
>
> *** Begin install log ***
>
> /opt/SUNWspro/bin/CC -o src/so_ZZ_pylong.o -c -KPIC -fPIC
> -I/scratch/mvngu/sage-4.1.1.rc0/local/include
> -I/scratch/mvngu/sage-4.1.1.rc0/local/include/python2.6
> -I/scratch/mvngu/sage-4.1.1.rc0/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 ***

This is due to an issue with SCons, which we really need to resolve. I
don't know if it SCons at fault, or sage-4.1.1.rc0.spkg, but either
way, there is a mix of compilers and flags.

Since no serious effort has been made by anyone (myself included) to
build Sage with Suns compillers, we MUST use the GNU compilers for
now. SCons has the path to the Sun compilers (/opt/SUNWspro/bin)
hard-coded in it. I believe the contents of  sage-4.1.1.rc0.spkg and
inherring things from SCons, which includes the path of the compiler.
So  sage-4.1.1.rc0.spkg starts using the Sun compiler.

Note it is also giving a mix of Sun and GNU flags to the Sun compiler.

There is a hacked version of SCons that I made

http://sage.math.washington.edu/home/kirkby/Solaris-fixes/scons-hack/scons-1.2.0.p0.spkg

that basically just removes the path of the Sun compiler suite from
SCons. Clearly this is a hack,not a patch, hence I am not suggesting
it is reviewed.

But if you install that, and rebuild SCons, then perhaps
sage-4.1.1.rc0.spkg will build (there might be other issues with that
package - I can't recall and due to some hardware issues here, I can't
easily check).

Dave

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send 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