gcc compile failure.

u02137 at cs.unipune.ernet.in u02137 at cs.unipune.ernet.in
Sun Jan 12 00:12:50 PST 2003


After glibc-2.3.1 threw compilation errors I started from scratch and
this time used the LFS-4.0 packages. This uses glic-2.2.5 and gcc-3.2.
The compilation of glibc went smooth but when I tried to compile gcc
as given in the book (Chapter 6) I got the following error. 

.....
/usr/include/_G_config.h:29: (Each undeclared identifier is reported
only once
/usr/include/_G_config.h:29: for each function it appears in.)
/usr/include/_G_config.h:29: parse error before "__state"
/usr/include/_G_config.h: At top level:
/usr/include/_G_config.h:30: ISO C forbids data definition with no
type or storage class
/usr/include/_G_config.h:34: parse error before "__mbstate_t"
/usr/include/_G_config.h:35: ISO C forbids data definition with no
type or storage class
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from
		 /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81,
                 from ../../gcc-3.2/libiberty/cplus-dem.c:41:
/usr/include/gconv.h:158: parse error before "__mbstate_t"
/usr/include/gconv.h:159: ISO C forbids data definition with no type
or storage
class
/usr/include/gconv.h:164: parse error before '}' token
/usr/include/gconv.h:172: field `__data' has incomplete type
/usr/include/gconv.h:173: confused by earlier errors, bailing out
make[1]: *** [cplus-dem.o] Error 1
make[1]: Leaving directory `/usr/src/gcc-build/libiberty'
make: *** [all-libiberty] Error 2


Please let me know how I can resolve this. 
Thanking you,
Saurabh

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list