GCC compilation error

Greg Schafer gschafer at zip.com.au
Sun Jan 19 02:46:15 PST 2003


On Sun, Jan 19, 2003 at 03:24:39PM +1100, Brenton Schulz wrote:
> This is during the second GCC compilation, once /mnt/lfs is the root 
> directory and after installing glibc etc.
> 
> here are the last few lines of the compilation:
> 
> 
> 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

You don't say what version of the book you are using but I assume it is 4.0.

Hmm, it looks to me as if you didn't apply the gcc-3.2-nofixincludes-2.patch
to your Ch 5 gcc. The dead giveaway is the line that reads:-

/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81

If the gcc-3.2-nofixincludes-2.patch is applied then you will not end up
with a stdio.h header in that dir.

But you might be able to get away with just simply moving that file out of
the way like so:-

mv /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h \
   /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h.BAD

then blow away your gcc-build dir and try again

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