public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: EGCS build failure on AIX 4.2
       [not found] <199804061831.LAA09441@seaspace.com>
@ 1998-04-06 11:36 ` David Edelsohn
  1998-04-06 17:35   ` Doug Semler
  1998-04-08  2:13   ` Andrey Slepuhin
  0 siblings, 2 replies; 5+ messages in thread
From: David Edelsohn @ 1998-04-06 11:36 UTC (permalink / raw)
  To: Doug Semler; +Cc: egcs

	I also notice that you configure EGCS using

--with-gnu-as and --with-gnu-ld

Are GNU as and GNU ld really primary in your path?  Do you really have
those installed?  Because of changes in AIX, GNU ld may not work correctly
on AIX 4.2, so I would recommend against using it.

	My guess is that if you configured for AIX ld and really used the
AIX linker, the build work succeed.

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: EGCS build failure on AIX 4.2
  1998-04-06 11:36 ` EGCS build failure on AIX 4.2 David Edelsohn
@ 1998-04-06 17:35   ` Doug Semler
  1998-04-08  2:13   ` Andrey Slepuhin
  1 sibling, 0 replies; 5+ messages in thread
From: Doug Semler @ 1998-04-06 17:35 UTC (permalink / raw)
  To: egcs

David Edelsohn wrote:
> 	I also notice that you configure EGCS using
> 
> --with-gnu-as and --with-gnu-ld
> 
> Are GNU as and GNU ld really primary in your path?  Do you really have
> those installed?  Because of changes in AIX, GNU ld may not work correctly
> on AIX 4.2, so I would recommend against using it.

Yes, and you were right, if I removed GNU ld from the path, it builds
fine...

> 
> 	My guess is that if you configured for AIX ld and really used the
> AIX linker, the build work succeed.

Here's something for you though:

stage1/xgcc -Bstage1/ -c  -DIN_GCC    -O2 -g  -DHAVE_CONFIG_H     -I. -I../../../egcs-1.0.2/gcc -I../../../egcs-1.0.2/gcc/config ../../../egcs-1.0.2/gcc/c-convert.c
stage1/xgcc -Bstage1/ -c  -DIN_GCC    -O2 -g  -DHAVE_CONFIG_H     -I. -I../../../egcs-1.0.2/gcc -I../../../egcs-1.0.2/gcc/config ../../../egcs-1.0.2/gcc/c-aux-info.c
stage1/xgcc -Bstage1/ -c  -DIN_GCC    -O2 -g  -DHAVE_CONFIG_H     -I. -I../../../egcs-1.0.2/gcc -I../../../egcs-1.0.2/gcc/config ../../../egcs-1.0.2/gcc/c-common.c
stage1/xgcc -Bstage1/ -c  -DIN_GCC    -O2 -g  -DHAVE_CONFIG_H     -I. -I../../../egcs-1.0.2/gcc -I../../../egcs-1.0.2/gcc/config ../../../egcs-1.0.2/gcc/c-iterate.c
stage1/xgcc -Bstage1/ -c  -DIN_GCC    -O2 -g  -DHAVE_CONFIG_H     -I. -I../../../egcs-1.0.2/gcc -I../../../egcs-1.0.2/gcc/config ../../../egcs-1.0.2/gcc/genattr.c
stage1/xgcc -Bstage1/ -c  -DIN_GCC    -O2 -g  -DHAVE_CONFIG_H     -I. -I../../../egcs-1.0.2/gcc -I../../../egcs-1.0.2/gcc/config ../../../egcs-1.0.2/gcc/rtl.c
stage1/xgcc -Bstage1/  -DIN_GCC    -O2 -g  -DHAVE_CONFIG_H   -o genattr \
 genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?*) echo  ;; esac ` -lm -lld
./genattr ../../../egcs-1.0.2/gcc/config/rs6000/rs6000.md > tmp-attr.h
exec(): 0509-036 Cannot load program ./genattr because of the following errors:
        0509-029 Alignment of text does not match required alignment.
        0509-025 The ./genattr file is not executable or not in correct XCOFF format.
        0509-026 System error: Cannot run a file that does not have a valid format.
make[2]: *** [stamp-attr] Error 255
make[2]: Leaving directory `/users/opt/build/foobar/egcs/gcc'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory `/users/opt/build/foobar/egcs/gcc'
make: *** [bootstrap-lean] Error 2

If I remove the -bpT:0x10000000 -bpD:0x20000000 from the link specs,
the thing compiles fine.  (this is still using GNU as...)

If I don't use GNU as , it also compiles fine. (Well...so far, knock
on wood :)

---
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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: EGCS build failure on AIX 4.2
  1998-04-08  2:13     ` David Edelsohn
@ 1998-04-08  2:13       ` Doug Semler
  0 siblings, 0 replies; 5+ messages in thread
From: Doug Semler @ 1998-04-08  2:13 UTC (permalink / raw)
  To: David Edelsohn; +Cc: Andrey Slepuhin, egcs

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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: EGCS build failure on AIX 4.2
  1998-04-06 11:36 ` EGCS build failure on AIX 4.2 David Edelsohn
  1998-04-06 17:35   ` Doug Semler
@ 1998-04-08  2:13   ` Andrey Slepuhin
  1998-04-08  2:13     ` David Edelsohn
  1 sibling, 1 reply; 5+ messages in thread
From: Andrey Slepuhin @ 1998-04-08  2:13 UTC (permalink / raw)
  To: David Edelsohn; +Cc: egcs, Doug Semler

On 06-Apr-98 David Edelsohn wrote:
>       I also notice that you configure EGCS using
> 
> --with-gnu-as and --with-gnu-ld
> 
> Are GNU as and GNU ld really primary in your path?  Do you really have
> those installed?  Because of changes in AIX, GNU ld may not work correctly
> on AIX 4.2, so I would recommend against using it.
> 
>       My guess is that if you configured for AIX ld and really used the
> AIX linker, the build work succeed.

As I remember, official gnu ld (2.8.1) doesn't work correctly on AIX4.2.
However, problem was fixed in development snapshots. Ian Lance Tailor
sent a patch to 2.8.1 sources to egcs mailing list (letter from 9 Oct).
But I still had problems with complicated C++ code, this cause me
to look more closely at AIX ld+collect2 solution, which now seems
to be stable (except some problems with shared libraries+rtti+exceptions).

Andrey.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: EGCS build failure on AIX 4.2
  1998-04-08  2:13   ` Andrey Slepuhin
@ 1998-04-08  2:13     ` David Edelsohn
  1998-04-08  2:13       ` Doug Semler
  0 siblings, 1 reply; 5+ messages in thread
From: David Edelsohn @ 1998-04-08  2:13 UTC (permalink / raw)
  To: Andrey Slepuhin; +Cc: egcs, Doug Semler

>>>>> 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+exceptions).

	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.

David

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-04-08  2:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <199804061831.LAA09441@seaspace.com>
1998-04-06 11:36 ` EGCS build failure on AIX 4.2 David Edelsohn
1998-04-06 17:35   ` Doug Semler
1998-04-08  2:13   ` Andrey Slepuhin
1998-04-08  2:13     ` David Edelsohn
1998-04-08  2:13       ` Doug Semler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).