LinuxQuestions.org
Help answer threads with 0 replies.
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 12-07-2009, 07:14 AM   #1
eshi14
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Rep: Reputation: 0
binutils patch error


hi,

I got the following error in 5.4 binutils-2.18 pass 1
I am using lfs version-6.4

lfs@ubuntu:/mnt/lfs/sources$ patch -Np1 -i binutils-2.18-configure-1.patch
can't find file to patch at input line 11
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By: Matt Burgess (matthew at linuxfromscratch dot org)
|Date: 2007-11-19
|Initial Package Version: 2.18
|Origin: Upstream (http://sourceware.org/cgi-bin/cvsweb....1&cvsroot=src)
|Upstream Status: Applied
|Description: Fixes the configure script to correctly dictate Texinfo > 4.9.
|
|diff -Naur binutils-2.18.orig/configure binutils-2.18/configure
|--- binutils-2.18.orig/configure 2007-08-06 20:29:40.000000000 +0000
|+++ binutils-2.18/configure 2007-11-18 22:37:58.000000000 +0000
--------------------------
File to patch:
 
Old 12-07-2009, 07:20 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You need to do the patch command from the packet source directory.

Code:
tar jxf binutils-2.18.tar.bz2
cd binutils-2.18

patch -Np1 -i binutils-2.18-configure-1.patch

mkdir -v ../binutils-build
cd ../binutils-build

../binutils-2.18/configure <options>
Hope this helps.

Post is edited: patch step is now in the correct place (thanks to exvor for pointing this out).

Last edited by anon237; 12-07-2009 at 05:48 PM. Reason: patch step is now in the correct place
 
Old 12-07-2009, 05:33 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Actually druuna you wouldent do this int he binutils-build directory but rather in the unpacked source directory.

this assumes you have the patch file in your sources.

Code:
 
cd binutils-2.18 
patch -Np1 -i ../binutils-2.18-configure-1.patch
 
Old 12-07-2009, 05:48 PM   #4
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@exvor: You are correct, I overlooked that step....

I'll rectify my earlier post for future references/reading.

Thanks for pointing this out.

Last edited by anon237; 12-13-2009 at 04:02 PM.
 
Old 12-07-2009, 05:49 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
lol no worries
 
  


Reply

Tags
binutils, error


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
nvidia display drivers installation error with binutils, binutils allready installed mandrakeBren Linux - Newbie 9 01-06-2009 12:52 PM
another binutils error AlexElther Linux From Scratch 3 04-24-2008 01:16 AM
Binutils Error hell_carnage Linux From Scratch 1 06-26-2005 08:33 AM
Error in binutils Macky Linux From Scratch 1 04-29-2005 05:39 PM
Binutils Error! chakkaradeepcc Linux From Scratch 2 04-28-2005 04:53 AM

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

All times are GMT -5. The time now is 08:38 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