Peter Jeremy wrote:
Since Sage now (mostly) works on Solaris, I thought I'd try it on
my SB1500 running OpenSolaris with SunStudio.
Prerequisites:
- Install SUNWgmake and SUNWgtar
- ln -s /bin/gmake .../sage-.../local/bin/make
- ln -s /bin/gtar .../sage-.../local/bin/tar
(bash is already installed as /bin/sh)
This makes it through prereq but almost instantly blows up building bzip2:
make[2]: Entering directory
`/nsol/space/sage-4.3.4.alpha1/spkg/build/bzip2-1.0.5'
...
gcc -fPIC -c blocksort.c
make[2]: gcc: Command not found
make[2]: *** [blocksort.o] Error 127
make[2]: Leaving directory `/nsol/space/sage-4.3.4.alpha1/spkg/build/bzip2-1.0.5
I haven't investigated why bzip2 has gcc hard-coded into it - this was
just a side-line whilst I'm running some test code in OpenSolaris.
Rather annoyingly, a lot of parts of Sage have gcc hard-coded in them. The line:
CC=gcc
in the bzip2 Makefile could be removed.
You should have got a warning when prereq run that Sage has never been built
with non-GNU compilers. It would ask you to set SAGE_PORT if you tried that on
most systems, but since you need that set anyway to build on OpenSolaris, no
other action would have been needed.
Realistically, the only way to build Sage on Solaris is with gcc. It would be
good to get it to build with Sun Studio, as that would give better peformance,
but it will be a non-trivial task.
Sage will not build on OpenSolaris either yet. If you would like to help with
that, then please do. Large parts of it will build, though you need to export
the variable SAGE64 to yes. Otherwise a 32-bit build will be attempted, which
will fail. There is not much point debugging a 32-bit build, so just try a
64-bit build. But again, you will need to install gcc to get anywhere really.
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