On Oct 16, 3:05 am, "Dr. David Kirkby" <david.kir...@onetel.net>
wrote:
> Following a patch to pari
>
> http://sagetrac.org/sage_trac/ticket/6579
>
> which needs review, Sage 4.1.2 will now build completely on Solaris with
> no manual intervention.
>
> I've built it on my own Solaris box, and a build is in progress on t2
> now at
>
> /scratch/kirkby/gcc32/sage-4.1.2/

I spoke too soon. The build on 't2' faied due to a long-standing
issue:

http://trac.sagemath.org/sage_trac/ticket/6595

If Sun's compilers can be found, then the Sage library will fail to
build, as the library code will use the GNU C compiler for compiling C
code, but switch to the Sun C++ compiler for compiling C++ code. I got
round this issue on my matchine at home by moving the Sun compilers to
a non-standard location so SCons does not use them in preference to
the GNU C++ compiler.

So I should rephrase this. Sage will build on Solaris with no manual
intervention, as long as the Sun Studio compiler can NOT be found in
one of the standard locations for it, like /opt/SUNWspro/bin. That
path is hard-coded into the SCons source code, so  it will fail
irrespective of whether you have /op/SUNWspro/bin in the path or not.
I got around this issue on my home machine by moving the Sun compiler
to a non-standard location, so SCons does not know about it.

The real solution is to force the library code to respect the value of
the environment variable CXX, which Sage sets to g++. The library code
ignores that and instead expresses a preference for the Sun C++
compiler.

I've got some idea how to fix this. The same problem used to happen
with PolyBoRi, but Alexandrer Dryer modified the PolyBoRi code so it
respects the value of CXX, rather than use whatever compiler SCons
prefers.

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