I've posted quite a few things here recently on my attempts to build
Sage on Solaris. Here's my summary of the current issues in building
SAGE 3.0.3.alpha1 under Solaris 10, listed in order of the failures.

My system is a Sun Blade 2000, 2 x 1.2 GHz, 8 GB RAM, running Solaris
10 update 4. GNU tools used when compiling (gcc 4.0.2 and gmake 3.81).
This is not the same machine that I have allowed a few people access
too, but it is similar in software configuration.

No attempt was made to create a 64-bit binary.

Only errors are listed - there are *tons* of compiler warnings, which
I will ignore  for now.

gmake SAGE_PORT=SPARC

1) The first build failed is caused by NTL, with the package
ntl-5.4.2.p3.spkg

There are various problems with NTL, including GNUisms, the fact
certain tests are not run on Solaris. Francois has submitted a patch
for this. I've placed the .spkg file Francois created on my Sun Ultra
60 at:

http://www.g8wrb.org/sage/ntl-5.4.2.p3.spkg.new

If someone would download it and test on their box (any platform), it
would be useful to know it works. It works on both Suns I have tested
on, although these two machines have quite similar setups.

2) The second build failure occurs at flint-1.06.p3
The original Makefile in src/makefile works, but a patched version in
patches/makefile does not.
The solution to this is simple - remove the broken makefile in patches/
makefile and remove the line

cp patches/makefile src/

from flint's spkg-install

I've put a new version at flint at

http://www.g8wrb.org/sage/flint-1.06.p3.spkg.new

Again, it would be useful to know if if this works for others or not.

3) Next failure is  polybori-0.3.1.p3
Michael suggested the change:

#!bin/sh" -> "#!/usr/bin/env bash"

but that does NOT work for me. Numerous errors still appear but they
are in C++ code and I don't know C++. I hope someone else can fix that
one. (I will give access to one of my Suns for anyone that thinks they
could do it).

4) Next failure is on R. The Sun libiconv is not suitable - R needs
the GNU one. I don't think using the option "--with-iconv=no" is a
good idea, as that is deprecated and the option will be removed soon
from R. configure.ac has this line in it:

AC_MSG_WARN([--with-iconv=no is deprecated and will be withdrawn
shortly])

Hence I suggest libiconv is added to Sage - it is a small package (4.3
MB) and compiles quite quickly (under 2 minutes on my 1.2 GHz Sun
Blade 2000, which is not very fast by modern standards).

5) The 5th failure is on rubiks-20070912.p7

#!bin/sh" -> "#!/usr/bin/env bash

works for me.  I did *not* need to use the "install->ginstall"
suggested by Michael.

6) In what I think is probably the final stages of the build, there
are some errors which I've not looked at properly.

x sage-3.0.3.alpha1/spkg-dist, 1609 bytes, 4 tape blocks
x sage-3.0.3.alpha1/spkg-install, 2963 bytes, 6 tape blocks
x sage-3.0.3.alpha1/PKG-INFO, 279 bytes, 1 tape blocks
Finished extraction
****************************************************
Host system
uname -a:
SunOS kestrel 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Blade-1000
****************************************************
****************************************************
GCC Version
gcc -v
Reading specs from /usr/local/opt/csw/gcc4/bin/../lib/gcc/sparc-sun-
solaris2.8/4.0.2/specs
Target: sparc-sun-solaris2.8
Configured with: ../sources/gcc-4.0.2/configure --prefix=/opt/csw/gcc4
--with-local-prefix=/opt/csw --without-gnu-as --with-as=/usr/ccs/bin/
as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --
enable-shared --enable-multilib --enable-nls --with-included-gettext --
with-libiconv-prefix=/opt/csw --with-x --enable-java-awt=xlib --with-
system-zlib --enable-languages=c,c++,f95,java,objc,ada
Thread model: posix
gcc version 4.0.2
****************************************************
cc -o src/so_convert.o -c -O2 -g -KPIC -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include/python2.5 -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include/NTL -Iinclude src/convert.c
"../src/kernel/none/level1.h", line 732: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 732: assignment type mismatch:
        long "=" void
"../src/kernel/none/level1.h", line 757: improper cast of void
expression
"../src/kernel/none/level1.h", line 1087: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 1087: assignment type mismatch:
        unsigned long "=" void
"../src/kernel/none/level1.h", line 1097: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 1097: assignment type mismatch:
        unsigned long "=" void
cc: acomp failed for src/convert.c
scons: *** [src/so_convert.o] Error 2
pulling from /export/home/drkirkby/sage-3.0.3.alpha1/spkg/build/
sage-3.0.3.alpha1
searching for changes
no changes found
abort: there is nothing to merge, just use 'hg update' or look at 'hg
heads'
nothing changed
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
Deleting the scons target.
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Cleaning targets ...
scons: done cleaning targets.
*** TOUCHING ALL CYTHON (.pyx) FILES ***
cc -o src/so_convert.o -c -O2 -g -KPIC -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include/python2.5 -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include/NTL -Iinclude src/convert.c
"../src/kernel/none/level1.h", line 732: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 732: assignment type mismatch:
        long "=" void
"../src/kernel/none/level1.h", line 757: improper cast of void
expression
"../src/kernel/none/level1.h", line 1087: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 1087: assignment type mismatch:
        unsigned long "=" void
"../src/kernel/none/level1.h", line 1097: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 1097: assignment type mismatch:
        unsigned long "=" void
cc: acomp failed for src/convert.c
scons: *** [src/so_convert.o] Error 2

----------------------------------------------------------
sage: Building and installing modified SAGE library files.


Installing c_lib
cc -o src/so_convert.o -c -O2 -g -KPIC -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include/python2.5 -I/export/home/drkirkby/
sage-3.0.3.alpha1/local/include/NTL -Iinclude src/convert.c
"../src/kernel/none/level1.h", line 732: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 732: assignment type mismatch:
        long "=" void
"../src/kernel/none/level1.h", line 757: improper cast of void
expression
"../src/kernel/none/level1.h", line 1087: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 1087: assignment type mismatch:
        unsigned long "=" void
"../src/kernel/none/level1.h", line 1097: void statement expression
result not ignored
"../src/kernel/none/level1.h", line 1097: assignment type mismatch:
        unsigned long "=" void
cc: acomp failed for src/convert.c
scons: *** [src/so_convert.o] Error 2
ERROR: There was an error building c_lib.

Error building new version of SAGE.

real    0m58.256s
user    0m48.378s
sys     0m8.906s

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to