[lfs-support] preprocessor error

Rick Shelton rick.shelton at gmail.com
Wed Mar 21 06:17:44 PDT 2012


On Wed, Mar 21, 2012 at 7:01 AM, siefke_listen at web.de
<siefke_listen at web.de> wrote:
> Hello,
>
> now in Build LFS System, GCC come the error again.
>
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/
> -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/
> -isystem /usr/i686-pc-linux-gnu/include
> -isystem /usr/i686-pc-linux-gnu/sys-include    accepts -g... yes checking
> for /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/
> -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/
> -isystem /usr/i686-pc-linux-gnu/include
> -isystem /usr/i686-pc-linux-gnu/sys-include    option to accept ISO C89...
> unsupported checking how to run the C preprocessor... /lib/cpp configure:
> error: in `/sources/gcc-build/i686-pc-linux-gnu/libgcc': configure: error: C
> preprocessor "/lib/cpp" fails sanity check See `config.log' for more details.
> make[1]: *** [configure-target-libgcc] Error 1 make[1]: Leaving directory
> `/sources/gcc-build' make: *** [all] Error 2
>
>
> The config.log find under http://nopaste.info/87120df9c2.html.
>

In your config.log, on several lines, there is the message:
"# /sources/gcc-4.6.2/libgcc/configure: line 1441: /lib/cpp: No such
file or directory "

It looks like the symbolic link wasn't created correctly. (Hopefully
it is as simple as that.)
Double check with the installation of GCC in Ch6 of the LFS book.

~rick

PS. my complements on having the foresight to provide the config.log file!



More information about the lfs-support mailing list