This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC 3.2 Success (sort of) on Solaris 2.5.1
- From: Jesus Cea Avion <jcea at argo dot es>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 28 Aug 2002 13:15:42 +0200
- Subject: GCC 3.2 Success (sort of) on Solaris 2.5.1
- Organization: Argo Redes y Servicios Telematicos, S.A. - http://www.argo.es/
Please, update http://gcc.gnu.org/gcc-3.2/buildstat.html
If you answer this email, please, send me a copy since I can't cope with
the volume of this mailing list.
This is a horror history. Please, read carefully. I've spend three weeks
with this. I will make a long story short:
Initial State: gcc 2.95.3, binutils 2.11.2.
a) I upgrade binutils to last version, 2.13. *Caution here. See later.*
b) GCC 3.2 configuration:
# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/3.2/specs
Configured with: ../gcc-3.2/configure --with-gnu-as
--with-as=/usr/local/bin/as --with-gnu-ld --with-ld=/usr/local/bin/ld
--disable-nls --enable-languages=c,c++ --disable-libgcj --disable-shared
Thread model: posix
gcc version 3.2
c) "make bootstrap".
d) "compare between "stage2" and "stage3" fails miserably. The "*.o" are
differents but an "objdump -D" shows that "stage2" and "stage3" object
files are "equivalent". That is, the "*.o" files are not equal, but
disassembly are the very same.
e) I patch "gcc/Makefile" to skip comparison between "stage2" and
"stage3" binaries, since they are not equal but seems to be
"equivalent". I don't know/understand the reason.
f) "make install"
And now all is running fine... until I try to compile a shared lib. The
compilation and linking goes fine, but when anybody tries to use the
shared lib, the program core dumps.
I finally determine that GNU binutils "ld" is the problem. I was using
binutils 2.13. I compile binutils 2.12.1, install *ONLY* the "ld"
component (I keep the other 2.13 utils and libraries) and every goes
fine now.
--
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
jcea@argo.es http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/
_/_/ _/_/ _/_/_/_/_/
PGP Key Available at KeyServ _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz