On Jul 10, 3:20 am, "Dr. David Kirkby" <[EMAIL PROTECTED]>
wrote:
> I tried to build sage 3.0.4 on my laptop (Solaris Express Community
> Edition snv_91 X86), but it fails when building pari. It looks from a
> search of the web, that the error generated:
>
> "ld: fatal: relocations remain against allocatable but non-writable
> sections"
>
> might be a result of using the Sun linker with gcc, rather than the
> GNU linker. Yet various binary distributions of gcc (including
> Blastwave), make gcc use the Sun linker, not the GNU one. My gcc 4.0.2
> was configured with:  --without-gnu-ld --with-ld=/usr/ccs/bin/ld.
>
> I downloaded pari 
> fromhttp://pari.math.u-bordeaux.fr/pub/pari/unix/pari-2.3.3.tar.gz
> and get the same problem. Perhaps I need to build a gcc which uses the
> GNU linker, not the Sun one. Yet various sources say the Sun one works
> better, so its anyone's guess what problems using the GNU linker might
> create.
>
> I guess the quicker we can get away from gcc and use Sun's compilers
> on Solaris the better. gcc can be built many ways on Solaris, and they
> are not all equal.
>
> Dave

Yes, the blastwave compiler is in my experience next to useless. I
build or use a custom build toolchain on Solaris when I use gcc for
that reason. If you build your own gcc make sure to also use the
latest binutils.

The problem you hit happens on some occasion when you link static
libraries which in case of pari is probably gmp. Pari seems to provide
two version of libpari in some occasions: one with a dynamic gmp and
one with a static gmp link in. I don't know why they do, I can
speculate for some reasons but overall that seems to be not the choice
I would make.

Once Solaris support is progressing for Sage I will explicitly mention
it in the release notes. I usually get each Sage release to build, but
it is not a trivial task.

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
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