EGCS build failure on AIX 4.2

Doug Semler doug@seaspace.com
Wed Apr 8 02:13:00 GMT 1998


David Edelsohn wrote:
> >>>>> Andrey Slepuhin writes:
> 
> Andrey> As I remember, official gnu ld (2.8.1) doesn't work correctly on AIX4
> .2.
> Andrey> However, problem was fixed in development snapshots. Ian Lance Tailor
> Andrey> sent a patch to 2.8.1 sources to egcs mailing list (letter from 9 Oct
> ).
> Andrey> But I still had problems with complicated C++ code, this cause me
> Andrey> to look more closely at AIX ld+collect2 solution, which now seems
> Andrey> to be stable (except some problems with shared libraries+rtti+excepti
> ons).
> 
> 	I believe that GNU ld was not using strict enough alignment, but
> that was causing failure when a program was invoked, not when it was
> compiled(?).  In another message, Doug seemed to imply that GNU as was
> producing code at which AIX ld balked on AIX 4.2.  I was not aware of that
> type of problem with GNU as on AIX 4.2.  I am not sure the build and
> configuration were restarted cleanly enough to be sure of this assembler
> problem.

But I am: I did an rm -rf of my build directory, and also removed ONLY
the linker from the install of binutils; but I was still using gas.  That
is what prompted the ld error (YES, I am absolutely, positively sure
that there are no other copies of the gnu linker around).  Rebuild
with only the --with-gnu-as flags, and that genattr misalignment happened.
rm -rf'ed the entire binutils directory and build directory, recompiled
egcs without the --with-* flags, and the misalignment goes away.

I am using binutils 2.8.1, and AFAIK a clean install of 4.2.0.  I don't
know if there are any patches to the OS installed on it, we really dropped
the ball on that machine.  (we don't even have the man pages on the damned
thing).  I'm gonna see if I can't talk my boss into re-installing the OS
on the monster :)

---
Doug Semler                       | doug@seaspace.com
SeaSpace Corporation              | Garbage In -- Gospel Out
Least Senior Software Developer;  | Minister of things to do Next Quarter
Low Man on the Totem Pole         | (but will Never Be Done) DNRC  O-
A closed mind is a terrible thing | Bus Error (passengers dumped)



More information about the Gcc mailing list