Installing GCC-3.2 problem.

Chris Lingard chris at
Mon Sep 9 07:47:24 PDT 2002

Goldman Michael wrote:

> Book version : cvs 20020907
> Chapter 6 : Installing GCC-3.2
> Mother system is KNOPPIX Linux on CD (Based on Debian) with
> gcc 2.95.4, glibc-2.2.5, kernel-2.4.19-xfs.
> I completed all previous steps without any problems.
> While compiling GCC I have the following error :
>   gcc -c -DHAVE_CONFIG_H -g -O2 -I.
>   -I../../gcc-3.2/libiberty/../include
> -W -Wall -Wtraditional -pedantic -fpic
> ../../gcc-3.2/libiberty/cplus-dem.c -o pic/cplus-dem.o; \
> else true; fi
> In file included from ../../gcc-3.2/libiberty/cplus-dem.c:41:
> /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:561:30:
> bits/sys_errlist.h: No such file or directory
> make[1]: *** [cplus-dem.o] Error 1
> make[1]: Leaving directory `/temp/gcc-build/libiberty'
> make: *** [all-libiberty] Error 2

Yes gcc depends on glibc, but you have built this.  gcc
keeps all its private files in
/static/lib/gcc-lib/i686-pc-linux-gnu/3.2/ for the static build
On normal buids it will be

When gcc builds it tries to fix the header files of your disto
and puts the results in that 3.2/include directory.  There is
a clash between your base disto and gcc.  The fixed header wants
/usr/include/bits/sys_errlist.h and you do not have this

Therefore try the following
mv /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h

Then go into gcc-build and repeat the
make bootstrap


> I have feeling that compilation of gcc requires existence of
> previously compiled glibc libraries (Am I right?) But somehow
> current gcc (compiled in chapter 5) does not see that new
> libraries/includes in /usr/include and /usr/lib, but goes to that
> strange directory where they were placed by fixinclude while
> compiling gcc in chapter 5 (As far as I understood in README located
> in that dir). Of course there are only part of include files there,
> that's why it fails (I think).

Unsubscribe: send email to listar at
and put 'unsubscribe lfs-dev' in the subject header of the message

More information about the lfs-dev mailing list