Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This 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.


  Search this Thread
Old 04-19-2008, 02:34 AM   #1
LQ Newbie
Registered: Sep 2004
Location: india
Posts: 8

Rep: Reputation: 0
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section

i am compiling the gcc-4.1.2 and having the following eror every time
gawk -f ../../gcc-4.1.2/gcc/opt-gather.awk ../../gcc-4.1.2/gcc/c.opt ../../gcc-4.1.2/gcc/common.opt ../../gcc-4.1.2/gcc/config/i386/i386.opt > tmp-optionlist
/bin/sh ../../gcc-4.1.2/gcc/../move-if-change tmp-optionlist optionlist
optionlist is unchanged
echo timestamp > s-options
HEADERS="auto-host.h ansidecl.h" DEFINES="" \
/bin/sh ../../gcc-4.1.2/gcc/ bconfig.h
bconfig.h is unchanged
make[2]: *** No rule to make target `../../build-i686-pc-linux-gnu/libiberty/libiberty.a', needed by `build/genmodes'. Stop.
make[2]: Leaving directory `/mnt/phoenics/gcc-build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/mnt/phoenics/gcc-build'
make: *** [all] Error 2

if somebdy have idea or resource to make a clean make plz tell me i am waitin for reply.
thanx for ur help

//Moderator note: Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. Do not post duplicate threads again. Read the LQ Rules before continuing.

Last edited by unSpawn; 04-19-2008 at 04:42 AM.
Old 04-21-2008, 03:19 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Is this the top most error?
How did you ./configure it?
did you copy the complete gcc sources? Is the libiberty directory present?
Old 04-23-2008, 08:59 AM   #3
LQ Newbie
Registered: Apr 2008
Posts: 15

Rep: Reputation: 1
I'm getting the same error when i try to make gcc. Libiberty folder is present in my build directory. And i configured it using CC="gcc -B /usr/bin/" ../gcc-4.1.2/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c
Last time i tryed to compile it make(in the source folder) worked just fine.
Old 04-24-2008, 04:23 PM   #4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
This error will happen if you are re-using the files, make clean will not do it.
So make a new directory with a new name and start with 'tar jxvf ... again, else the risk of an error.
And of course follow 6.12.1 step by step.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error while compiling gcc in lfs 6.12 aditya_gpch Linux - Newbie 3 04-19-2008 05:54 AM
error using lfs while compiling 6.12 gcc-4.1.2 aditya_gpch Programming 1 04-19-2008 04:38 AM
error while compiling gcc in lfs 6.12 aditya_gpch Linux - Software 1 04-19-2008 04:37 AM
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 08:57 PM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration