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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-07-2009, 07:14 AM
|
#1
|
LQ Newbie
Registered: Oct 2009
Posts: 9
Rep:
|
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:
|
|
|
12-07-2009, 07:20 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
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
|
|
|
12-07-2009, 05:33 PM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537
Rep:
|
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
|
|
|
12-07-2009, 05:48 PM
|
#4
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
@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.
|
|
|
12-07-2009, 05:49 PM
|
#5
|
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537
Rep:
|
lol no worries
|
|
|
All times are GMT -5. The time now is 08:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|