#7036: [with spkg; needs review] rubiks ignores CXX and uses g++ even if CXX is
Sun compiler
----------------------+-----------------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: build | Keywords: GNUism gcc CC
Reviewer: | Author: David Kirkby
Merged: |
----------------------+-----------------------------------------------------
Changes (by newvalueoldvalue):
* author: => David Kirkby
Comment:
Having looked at this package, I can see it was broken in numerous ways.
* g++ was hard coded
* An option was passed to the assembler in an attempt to suppress
warnings, though this would only work with the GNU assembler
* I don't think it could build 64-bit executables - there was nothing
about SAGE64 in the spkg-install
* CFLAGS were used when CXXFLAGS should have been used.
Basically, the makefiles were a total mess.
The revised .spkg has been tested on
* 32-bit Solaris SPARC with gcc
* 64-bit Solaris SPARC with gcc
* 32-bit Solaris SPARC with Sun compiler
* 64-bit Solaris SPARC with Sun compiler
* Sage.math - I think the default is 64-bit there.
* 32-bit on bsd.math with gcc
* 64-bit on bsd.math with gcc
There are now no hard-coded options, or compilers. Everything can be set
from spkg-install, and is set sensibly. I've tested this with both 32 and
64-bit builds on Solaris, using both the GNU and Sun compilers. Also
tested on sage.math. Also tested on bsd.math in both
The new spkg can be found here.
http://sage.math.washington.edu/home/kirkby/Solaris-
fixes/rubiks-20070912.p10/rubiks-20070912.p10.spkg
The spkg-install is here
http://sage.math.washington.edu/home/kirkby/Solaris-
fixes/rubiks-20070912.p10/spkg-install
The revised Makefiles, patches etc are in this directory:
http://sage.math.washington.edu/home/kirkby/Solaris-
fixes/rubiks-20070912.p10
Be warned, the patches are bigger than the makefiles - the chances are so
many.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7036#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---