EGCS build failure on AIX 4.2

Doug Semler doug@seaspace.com
Mon Apr 6 17:35:00 GMT 1998


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)



More information about the Gcc mailing list