> I seem to have done everything as should, i.e. certainly
> source /usr/local/skynet_bash_profile
> before make
>
> Dima
I've just tried that, and see that gcc is built with the GNU linker
and GNU assembler - gcc -v shows:
--with-gnu-as --with-as=/usr/local/binutils-2.20.1/sparc-SunOS-ultrasparc3-gcc-4.4.3/bin/as
--with-gnu-ld --with-ld=/usr/local/binutils-2.20.1/sparc-SunOS-ultrasparc3-gcc-4.4.3/bin/ld
But for Solaris one is much better using the Sun linker, not the GNU
one. This is even documented in the gcc manual. For the assembler it
is less of an issue, though I prefer to use the Sun one on SPARC too,
using the GNU assembler on Solaris x86.
Mariah has already built gcc with the Sun linker and Sun assembler.
You must make sure the first gcc in your path is the one at
/usr/local/gcc-4.5.1/sparc-SunOS-ultrasparc3-sun-as-ld/bin/gcc
so gcc -v shows it was configured with:
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
I've actually set up a script so that depending on whether I log in on
odd or even minutes past the hour, my setup works 32-bit or 64-bit:
export PATH=/usr/local/gcc-4.5.1/sparc-SunOS-ultrasparc3-sun-as-ld/bin:$HOME/bin:/usr/sfw/bin:/usr/bin:/usr/sbin:/usr/local/SunSt
udio12-200709/sparc-SunOS/SUNWspro/bin:/usr/ccs/bin
export SAGE_FORTRAN=/usr/local/gcc-4.5.1/sparc-SunOS-ultrasparc3-sun-as-ld/bin/gfortran
export LD_LIBRARY_PATH=/usr/local/gcc-4.5.1/sparc-SunOS-ultrasparc3-sun-as-ld/lib:/usr/local/gcc-4.5.1/sparc-SunOS-ultrasparc3-su
n-as-ld/lib/sparcv9
export SAGE_FORTRAN_LIB=/usr/local/gcc-4.5.1/sparc-SunOS-ultrasparc3-sun-as-ld/lib/libgfortran.so
cd `uname -n`/32
fi
fi
$HOME/bin contains the GNU versions of tar and make.
If you dont have them, then
mkdir $HOME/bin
cp /usr/sfw/bin/gmake $HOME/bin/make
cp /usr/sfw/bin.gtar $HOME/bin/tar
I've emailed William a few times about the mess his changes have made
on t2, and are hoping to resolve the issues on t2.
See also
http://wiki.sagemath.org/skynet
though I think that document might not result in you getting the GNU
versions of make and tar in your path first. That is essential on
Solaris.
Dave