Member of The Internet Defense League Últimos cambios
Últimos Cambios
Blog personal: El hilo del laberinto Geocaching

GCC 3.2 Success (sort of) on Solaris 2.5.1

Última Actualización: 30 de Enero de 2003 - Jueves

Message-ID: <3D6CB0DE.F769AEEF@argo.es>
Date: Wed, 28 Aug 2002 13:15:42 +0200
From: Jesus Cea Avion <jcea@argo.es>
Organization: Argo Redes y Servicios Telematicos, S.A. - http://www.argo.es/
To: gcc@gcc.gnu.org
Subject: GCC 3.2 Success (sort of) on Solaris 2.5.1

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.

  1. I upgrade "binutils" to last version, 2.13. Caution here. See later.

  2. 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
    

  3. "make bootstrap".

  4. The comparison 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.

  5. 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.

  6. "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



Python Zope ©2002-2003 jcea@jcea.es

Más información sobre los OpenBadges

Donación BitCoin: 19niBN42ac2pqDQFx6GJZxry2JQSFvwAfS