Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Linux From Scratch problem - final gcc build

  • 26-11-2009 1:49pm
    #1
    Closed Accounts Posts: 17,208 ✭✭✭✭


    Hey guys,

    I'm going a Linux From Scratch project in my spare time at home and really enjoying it. However, I am after getting stuck on the final gcc compile (latest stable v6.5, Ch 6.15). It configures and builds as far as libgcc correctly, but starts failing with the following error at this point:
    Checking multilib configuration for libgcc...
    Configuring in i686-pc-linux-gnu/libgcc
    configure: loading cache ./config.cache
    checking for --enable-version-specific-runtime-libs... no
    checking for a BSD-compatible install... /tools/bin/install -c
    checking for gawk... gawk
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for i686-pc-linux-gnu-ar... ar
    checking for i686-pc-linux-gnu-lipo... lipo
    checking for i686-pc-linux-gnu-nm... /sources/gcc-build/./gcc/nm
    checking for i686-pc-linux-gnu-ranlib... ranlib
    checking for i686-pc-linux-gnu-strip... strip
    checking whether ln -s works... yes
    checking for i686-pc-linux-gnu-gcc... /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
    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 ANSI C... none needed
    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

    I've gone through the mailing lists, documentation and Google and can't find anything helpful for this phase of the build. I know it can be a common problem for ncurses if the compiler isn't installed correctly, but it seems to be finding the correct versions of gcc and g++.

    I am also attaching the config.log file, but I can't see what might be causing problems in it.

    Thanks.


Comments

  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Had been rebuilding with new build directories, but never thought to trash the source and try again. Now seems to be working correctly, but I'll await the test suite results before I cry victory :)


  • Closed Accounts Posts: 4,564 ✭✭✭Naikon


    Had been rebuilding with new build directories, but never thought to trash the source and try again. Now seems to be working correctly, but I'll await the test suite results before I cry victory :)

    Good to hear. Was going to try LFS out myself, but I am working
    on a pretty secret project right now:D More to come...


  • Registered Users, Registered Users 2 Posts: 1,606 ✭✭✭djmarkus


    Oh i cant wait, I bet its a Linux powered Dooms day device called....

    Lindoom?


  • Closed Accounts Posts: 4,564 ✭✭✭Naikon


    djmarkus wrote: »
    Oh i cant wait, I bet its a Linux powered Dooms day device called....

    Lindoom?

    Haha, yes, my room will be akin to something along these lines:
    http://danpritchard.com/images/unix-magic-overacre-poster.jpg

    shhhh:)


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    It boots!

    I messed up the network interface script, so I will need to look at that before I can get her online, but it boots!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 2,719 ✭✭✭ARGINITE


    Congrats, is it a boy or a girl :D


  • Registered Users, Registered Users 2 Posts: 710 ✭✭✭TheReverend


    I use Linux it is good

    Thank you for that insightful comment.

    To OP,
    Good luck getting it to work, ive been meaning to do something like that for ages but I am a lazy lazy man :P


Advertisement