Build failure for rs6000-ibm-aix3.2.5 in gcc/f

starfire@tiac.net starfire@tiac.net
Tue Nov 24 17:13:00 GMT 1998


Hello,
	I was really really bummed out when, what I thought was a really cool
suite of stuff bomb out on me during the early stages of compilation. 
After reading through the documentation I have concluded that there
maybe only one problem here. Perhaps there is one fix as well!! Here
goes..., first the configuration information for your processing
pleasure:

Product:		egcs-1.1b
Platform:		rs6000-ibm-aix3.2.5
Native C compiler:	XL C Version 1.3.0.24
make:			gmake

---------------------
What I did:

./configure ( in top level )
make
---------------------

Now the first problem occurs because configure incorrectly constructs
the ALL_CFLAGS in /egcs-1.1b/gcc/f/Makefile as follows:

ALL_CFLAGS = $(INTERNAL_CFLAGS) $(X_CFLAGS) $(T_CFLAGS) $(CFLAGS)
$(XCFLAGS) -W -Wall

The problem is both -W and -Wall. The man pages for cc specify the usage
for -W as follows:

-Wprogram,options
                  Pass the listed options to the specified program.

So...neither -W is supported without a program nor is the program 'all'
recognized...( I've tried all three combinations of -W and -Wall ).

The error from make looks like this:

# make
cc -c  -DIN_GCC    -g  -W -Wall    -I. -I.. -I. -I./.. -I./../config
bad.c
cc: 1501-208 command option W is missing a subargument
make: *** [bad.o] Error 40

--------

Ok that's error one. When I take both -W and -Wall out of the Makefile I
see what appears to be an unrelated slew of errors ( the process makes
it past the definition of ALL_CFLAGS and tries to actually compile
something):

# make
cc -c  -DIN_GCC    -g     -I. -I.. -I. -I./.. -I./../config bad.c
"./proj.h", line 35.0: 1506-205 (S) "You have to use gcc 2.x to build
g77 (might be fixed in g77-0.6)."
"./intrin.def", line 3121.23: 1506-010 (W) Macro DEFIMP invoked with a
null argument.
"./intrin.def", line 3121.28: 1506-010 (W) Macro DEFIMP invoked with a
null argument.
"./intrin.def", line 3122.37: 1506-010 (W) Macro DEFIMP invoked with a
null argument.
"./intrin.def", line 3123.26: 1506-010 (W) Macro DEFIMP invoked with a
null argument.
"./intrin.def", line 3123.33: 1506-010 (W) Macro DEFIMP invoked with a
null argument.

	... and so on and so on..

---------

Ok that's the second error.  The real error appears to be the fact that
Make system doesn't compile gcc before g77. My configuration is trying
to compile g77 with the native compiler.  I think gcc should build first
and be used to compile g77.

Question of the day:	How can I fix this so it does the right thing?


Cordially,
Michael Starkie      |
Starfire@tiac.net    |



More information about the Gcc-bugs mailing list