LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 07-11-2008, 05:27 PM   #1
arcelios
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Question Regarding Patches and a failure in the GCC Compilation


This question is going to be two questions rolled into one.

1. How do you apply patches?
I understand how to run a .patch file, but I'm afraid that I do not know where to place the patch file when running it. Whenever I attempt to run a .patch file, it asks me which file I would like to patch, prompting me for a path. I have been using Linux for some time now, but I hadn't run into a .patch file until now.

2. How do I fix this error with the GCC Compilation?
On page 5.4 of LFS current stable, it tells me to to type:
Code:
make bootstrap
I type this, and it goes through the normal quick-scrolling text that a make command usually generates, but then it stops suddenly, with an error. Here are the last several lines of the make:
Code:
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[1]: Entering directory '/mnt/lfs/sources/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
make[1]: *** No rule to make target '../include/ansidecl.h', needed by 'regex.o'. Stop.
make[1]: Leaving directory '/mnt/lfs/sources/gcc-4.0.3/build-i686-pc-linux-gnu/libiberty'
make: *** [all-build-libiberty] Error 2
Then it just brings me back to the standard prompt:
Code:
lfslivecd:root | Fri 11 Jul 2008 6:07:38 PM GMT | /mnt/lfs/sources/gcc-4.0.3
# _
Help much appreciated!

--
Arc

Last edited by arcelios; 07-11-2008 at 05:28 PM.
 
Old 07-11-2008, 09:56 PM   #2
gerald_M2B
Member
 
Registered: Oct 2007
Posts: 34

Rep: Reputation: 15
The patch file can be placed anywhere, but the path that is given must show where to find it. The strip count may be different, depending on where you are patching from, in the TOPSOURCE directory, or its parent.
Put the whole patch thing into the command line, and it will not prompt you.

On the second question, use the versions that are listed in the LFS book to avoid running into pesky problems. 4.0.3 is old, LFS-6.3 is 4.1.2
When trying versions not used in the book, there may be files that are missing.
Usually I would try to locate the file, and put a link in the appropriate place where that is expected, and try again. It can take as many as three times to get through the compiler, otherwise I bail out.

Gerald
 
Old 07-12-2008, 07:25 AM   #3
dracayr
LQ Newbie
 
Registered: May 2008
Posts: 23

Rep: Reputation: 15
the book will tell you when and how to use the patch files in the corresponding chapters

dracayr
 
  


Reply

Tags
gcc, help, lfs, patch



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
have gcc compilation error during gcc installtion in linuxfromscratch vbshanmugaprakash Linux - General 3 12-13-2006 05:52 AM
Kiozen Compilation Failure DaBlade Linux - Software 4 12-18-2005 05:49 AM
mplayerplugin: compilation failure kaon Slackware 18 09-02-2005 05:50 AM
mono compilation failure tamtam Programming 1 04-16-2005 07:33 AM
winex compilation failure garfield81 Linux - Software 9 08-27-2004 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:37 AM.

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