LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-09-2008, 09:24 AM   #1
feilb
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
Section 5.11.1 patching gcc problem


Section 5.11.1 in book 6.3 calls for gcc to be patched with gcc-4.1.2.specs-1.patch to correct the location of the dynamic linker and to remove /usr/include from the search path.

Trying to apply this patch, however, yields every patch attempt failing with Hunk #x FAILED at xx.

Any ideas on why this might be?

EDIT: In some patched files the dynamic linker is presently listed as LINUX_DYNAMIC_LINKER, not /lib/ld-linux.so.2. Should i edit the patch file to look for this instead of ld-linux.so.2? Also, why would this be in place of the literal file name?

Last edited by feilb; 07-09-2008 at 09:46 AM.
 
Old 07-09-2008, 11:18 AM   #2
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Quote:
Originally Posted by feilb View Post
Section 5.11.1 in book 6.3 calls for gcc to be patched with gcc-4.1.2.specs-1.patch to correct the location of the dynamic linker and to remove /usr/include from the search path.

Trying to apply this patch, however, yields every patch attempt failing with Hunk #x FAILED at xx.

Any ideas on why this might be?

EDIT: In some patched files the dynamic linker is presently listed as LINUX_DYNAMIC_LINKER, not /lib/ld-linux.so.2. Should i edit the patch file to look for this instead of ld-linux.so.2? Also, why would this be in place of the literal file name?
Are you actually trying to compile the same version of GCC or are you trying to use a different version of GCC?
 
Old 07-09-2008, 12:17 PM   #3
feilb
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Nope, at this point, you are using the previously compiled 4.1.2 version to recompile itself independent of the host system.

I should also note that some other files contain the exact lines to be replaced and still fail. I am logged in as lfs and have ownership of all of these files, so it shouldn't be a permissions issue.
 
Old 07-09-2008, 01:12 PM   #4
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Odd, I just the SVN version with full opts and the only problem is I had to replace perl with 5.9.10 not a huge problem.
I'm running kernel 6.25.10 as well and I am also using it's headers as well.

All I say is retry? A couple of time when i tryied to get 6.3 running I got a load sed syntax errors even though i copyed and pasted the syntax into the terminal.
 
  


Reply


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 using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 05:23 PM
problem with kickstart post section Hairman Red Hat 2 05-14-2007 02:35 PM
Section 6.14 Gcc-3.4.1 error microsoft/linux Linux From Scratch 10 08-11-2005 10:52 PM
problem in section 8.4 sharmashikha Linux From Scratch 1 06-25-2005 01:50 PM
problem with search section masand LQ Suggestions & Feedback 2 06-11-2005 02:23 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration