[SOLVED] LFS: Error during GCC-4.7.1-Pass 1 (LFS 7.2, Section 5.5)
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
LFS: Error during GCC-4.7.1-Pass 1 (LFS 7.2, Section 5.5)
I'm following LFS 7.2 book, and I'm stuck at Section 5.5, building GCC-4.7.1 When I'm executing the "make" command, after some time I get the following error message. You can find it below:
In file included from ./tm.h:32:0,
../../gcc-4.7.1/gcc/config/i386/linux.h:26:34: warning: extra tokens at end of #undef directive [enabled by default]
../../gcc-4.7.1/gcc/config/i386/linux.h:27:34: warning: extra tokens at end of #undef directive [enabled by default]
../../gcc-4.7.1/gcc/config/i386/linux.h:29:0: warning: "STANDARD_STARTFILE_PREFIX" redefined [enabled by default]
../../gcc-4.7.1/gcc/config/i386/linux.h:28:0: note: this is the location of the previous definition
../../gcc-4.7.1/gcc/gcc.c:1130:54: warning: initialization makes pointer from integer without a cast [enabled by default]
../../gcc-4.7.1/gcc/gcc.c:1130:54: error: expected ',' or ';' before string constant
../../gcc-4.7.1/gcc/gcc.c: In function 'get_random_number':
../../gcc-4.7.1/gcc/gcc.c:8107:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
make: *** [gcc.o] Error 1
make: Leaving directory `/mnt/lfs-full/sources/gcc-build/gcc'
make: *** [install-gcc] Error 2
make: Leaving directory `/mnt/lfs-full/sources/gcc-build'
make: *** [install] Error 2
How can I fix this problem? And what can cause it?
Distribution: Linux From Scratch, Slackware64, Partedmagic
What machine are you building on? 32 or 64 bit?
just unpacked gcc 4.7.1 and in the file given in the error the reference to the warning ../../gcc-4.7.1/gcc/config/i386/linux.h:29:0: warning: "STANDARD_STARTFILE_PREFIX" the "STANDARD_STARTFILE_PREFIX" definition doesn't exist.
Try checksumming and/or redownloading/unpacking the archive.