PATCH: gcc-2.8.0 bootstrap failure (i386-sco)

Robert Lipe robertl@dgii.com
Thu Jan 15 16:30:00 GMT 1998


> I thought this supposedly worked, or I would have tested it earlier.

It did.   It was broken between the last time I tested it and the
official release.   Since I generally override the build with 
CC=/bin/cc /path/to/configure make bootstrap, I've been immune 
from this. :-(   I've been testing by overrideing the CC becuase
I wanted to be sure it would bootstrap with the native comilers.

This problem is also present in EGCS as of this morning.  It's fixed
by the following completely self-evident patch.   Please apply this
to the most immediate release branch of both EGCS and GCC.



--- config/i386/x-sco5_ Wed Jan 14 17:50:07 1998
+++ config/i386/x-sco5  Wed Jan 14 17:50:44 1998
@@ -1,6 +1,6 @@
 RANLIB = :
 RANLIB_TEST = false
-CC = cc
+CC = cc
 OLDCC = cc
 CCLIBFLAGS =
 # We avoid the ALLOCA in -lPW becuase it gives us an evil index()

What, you don't see the problem?   Edit x-sco5 and remove the 
trailing space that is present on that line.   This way when 
the code does the test if $(CC) = $(OLDCC), it'll pass.

This is about to become an instant FAQ in comp.unix.sco.programmer...


Wed Jan 14 18:01:16 1998  Robert Lipe  (robertl@dgii.com)
	* sco5.h (CC): Remove trailing space.

> If you include alloca.o manually in the link command then cccp links ok.
> Perhaps something is misspelled in the makefile script that includes
> alloca.o when CC = cc.  ... I can't read it, never mind spell it.
> 
> released gcc-2.8.0
> i586-sco3.2v5
> 
> cc  -c  -DIN_GCC      -DHAVE_CONFIG_H    -I. -Iccdir -Iccdir/config ccdir/obsta\ck.c
> cc   -DIN_GCC      -DHAVE_CONFIG_H    -I. -Iccdir -Iccdir/config  \
>   -c `echo ccdir/alloca.c | sed 's,^\./,,'`
> true
> cc   -DIN_GCC      -DHAVE_CONFIG_H  -o cccp cccp.o cexp.o prefix.o \
>   version.o obstack.o ` case "cc " in "cc") echo "alloca.o" ;; esac `  
> undefined                       first referenced
>  symbol                             in file
> alloca                              cccp.o
> ld fatal: Symbol referencing errors. No output written to cccp
> gmake: *** [cccp] Error 13
> 
> 
> and again, later on,
> 
> cc   -DIN_GCC      -DHAVE_CONFIG_H  -o genattr \
>  genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` `
> case "cc "@"alloca.o" in "cc"@?*) echo alloca.o ;; esac ` ` case "" in
> ?*) echo  ;; esac `
> 
> 
> 
> 
> 

-- 
Robert Lipe       http://www.dgii.com/people/robertl       robertl@dgii.com



More information about the Gcc mailing list