#6539: MPIR determines linker is GNU when it's Sun on OpenSolaris - x86 NOT
Sparc.
----------------------+-----------------------------------------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: solaris | Keywords: OpenSolaris x86
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Thommy Malmstrom, [email protected] reported a problem to me
with a failed build of Sage on an OpenSolaris (AMD or Intel processor).
{{{
Host system
uname -a:
SunOS bigblue 5.11 snv_101b i86pc i386 i86pc Solaris
}}}
What can be seen in the configure script's output is the linker is
determined to be the GNU linker:
{{{
checking for ld used by gcc -std=gnu99... ld
checking if the linker (ld) is GNU ld... yes
}}}
But this is incorrect, as the output from the compiler shows:
{{{
Configured with: /builds2/sfwnv-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld
--enable-languages=c,c++,f77,objc --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)
}}}
The error is a result of sending the -soname to the Sun linker, which
generates an error - clearly this is nothing like you would expect from a
GNU tool, and is the Sun linker:
{{{
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VW:Y:?]
file(s)
[-64] enforce a 64-bit link-edit
[-a] create an absolute file
[-b] do not do special PIC relocations in a.out
[-B direct | nodirect]
establish direct bindings, or inhibit direct
binding
to, the object being created
[-B dynamic | static]
search for shared libraries|archives
[-B eliminate] eliminate unqualified global symbols from the
symbol table
[-B group] relocate object from within group
[-B local] reduce unqualified global symbols to local
}}}
I've attached the part of the log connected with the building of mpir.
The configure script was generated using autoconf 2.61, which is about
(Nov 2006), so is around two and a half years old. It might be that the
old version does not perform too well on OpenSolaris, so I would suggest a
later version is used to generate the configure script.
Dave
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6539>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---