This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]