solaris 10 sparc using solaris ld and solaris as problems
Robert A. Schmied <
ras@...>
2011-12-07 19:27:31 GMT
mpfr gurus
i've been trying to upgrade to newer gcc from old version shipped
as /usr/sfw/bin/gcc (gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath))
gmp 4.2.1 compiled long ago ok, but mpfr has always been troublesome ...
when trying to build gcc-4.4.6 i quickly found the need for mpfr along
with the instructions that a subdir containing mpfr in the gcc-4.4.6 tld
would configure the gcc build to build mpfr ... and that worked fine
for first stage of gcc.
note that gcc-4.4.6 on sparc solaris 10 (not opensolaris) requires
(and allows) the configuration of both the assembler (as) and linker (ld)
to be the gnu versions at /usr/sfw/bin/gas and /usr/sfw/bin/gld respectively).
unfortunately, a subsequent stage failed to correctly locate mpfr.h (
it was never moved to the gcc-4.4.6 configure mfpr source dir) and
the gcc build fails ...
encouraged by the complete mpfr build i ran the mpfr tests and all but
one (iirc) passed, further encouraged by this i then attempted to independently
build/install mpfr (3.1.0).
i've not had any luck and am looking for suggestions, advice, assistance, whatever ...
current state:
* i have applied the 3.0.1 cumulative patches. but independent mpfr
builds continue to fail as described below, the gcc-4.4.6 build has
not been re-attempted with the patched mpfr yet ...
* if i run configure without any particular arguments gcc and libtool
will use the solaris /usr/ccs/bin/ld and everything builds and links.
but most tests core dump either seg-fault or bus-error. interestingly
test/tversion works fine.
note that for some reason /usr/local/include/libintl.h is being
used rather than the solaris stock version at /usr/include/libintl.h.
i haven't checked which intl library is being searched ... but this
could very well be the cause of the cores.
* if i specify --with-gnu-ld=no and set envvar LD to /usr/sfw/bin/gld
the first (dynamic?) library link-edit fails
libtool: link: gcc -shared -fPIC -DPIC ... -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath
-Wl,/usr/local/lib /usr/local/lib/libgmp.so -lc -O2 -Wl,-soname -Wl,libmpfr.so.4 -o .libs/libmpfr.so.4.1.0
ld: warning: option -o appears more than once, first setting taken
ld: fatal: file /usr/local/lib: unknown file type
ld: fatal: File processing errors. No output written to .libs/libmpfr.so.4.1.0
collect2: ld returned 1 exit status
gmake[2]: *** [libmpfr.la] Error 1
gmake[2]: Leaving directory `/usr/local/src/mpfr-3.1.0/src'
some versions data:
% libtool --version
libtool (GNU libtool) 2.4
% uname -a
SunOS xxxx 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Blade-1000
% gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
% ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.482
% as -V
as: Sun Compiler Common 10 Patch 05/06/2005
i've likely missed something important, let me know what and if rather
esoteric provide a clue or two on how to get it ...
thanks for any suggestions (short of booting a newer/different os)
aloha
ras