I think my current gcc toolchain may be doomed, as it uses the sun
linker and the gnu assembler! (I read this was a good thing to do, at
least at some point in history).


Configured with: ../gcc-4.4.0/configure --prefix=/usr/local --enable-
shared --disable-static --disable-libtool-lock --enable-objc-gc --
enable-concept-checks --disable-libada --enable-libssp --enable-
languages=c,c++,objc,fortran --enable-threads=posix --enable-tls=yes --
with-system-zlib --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gnu-
as --with-as=/usr/sfw/bin/gas --with-gmp-include=/usr/include/gmp --
with-gmp-lib=/usr/local/lib --with-mpfr-include=/usr/local/include/
mpfr --with-mpfr-lib=/usr/local/lib --enable-c99 --enable-nls --enable-
wchar_t --enable-libstdcxx-allocator=mt --with-pic

I'll have a go anyway with the following and see what happens before
building a new toolchain:


bash-3.2$ export PATH=/usr/ccs/bin:/usr/sfw/bin:/usr/local/bin:$PATH
bash-3.2$ echo $PATH
/usr/ccs/bin:/usr/sfw/bin:/usr/local/bin:/opt/sunstudio12.1/bin:/opt/
dtbld/bin:/export/home/brandon/bin:/opt/jdsbld/bin:/usr/gnu/bin:/usr/
bin:/usr/ccs/bin:/usr/sbin:/bin:/usr/sfw/bin:/usr/X11/bin

I also had a problem building MPIR on OpenSolaris due to the linker
problems you noted on the wiki; if you can get mpir to use a correct
version of libtool (the one in /usr/bin worked) this problem
disappears.

On Aug 3, 8:29 pm, David Kirkby <david.kir...@onetel.net> wrote:
> 2009/8/3 brandon.bar...@gmail.com <brandon.bar...@gmail.com>:
>
>
>
> > I look forward to testing and building  it on opensolaris / intel.
>
> Give Sage a try on OpenSolaris and let me know what happens. I posted
> ealier today some notes on what I needed to do to get it build on
> SPARC. OpenSolaris might be a bit different. Things might work or
> might not work. But some feedback would be useful.
>
> There is one thing to watch out for. Some of the files check the
> linker to see whether it is GNU or Sun and so give appropiate flags.
> What is actually needed is the linker that gcc uses. But my tests are
> based on the first linker in the path. So if your gcc was configured
> to use the Sun linker, make sure the location of the Sun linker
> (/usr/ccs/bin/) is in the path before any GNU linker from binutils.
> Conversely, if your gcc is configured to use the GNU linker and
> assembler, make sure the path to those from binutils is in the path
> before those of the Sun tools (/usr/ccs/bin).
>
> You can see what linker and assember gcc use, using 'gcc -v'
>
> I''ve not got OpsnSolaris at home but do haveSolarisExpress
> Community Edition on a laptop. MPIR refused to build properly on that,
> but others have got MPIR to work OK.
>
> Any feedback is welcome.
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to