LinuxQuestions.org
Review your favorite Linux distribution.
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 01-31-2009, 04:00 PM   #1
Vardhaman
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Rep: Reputation: 0
Hunk FAILED error while patching binutils-2.18


LFS 6.4 | OpenSUSE 11.1 | Section 5.4.1 |

This is the error i am getting:

Code:
lfs:/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.cgi/src/configure.diff?r1=1.268&r2=1.268.2.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
|--- /mnt/lfs/sources/binutils-2.18.orig/configure      2007-08-06 20:29:40.000000000 +0000
|+++ /mnt/lfs/sources/binutils-2.18/configure   2007-11-18 22:37:58.000000000 +0000
--------------------------
File to patch: /mnt/lfs/sources/binutils-2.18.tar.tar
patching file /mnt/lfs/sources/binutils-2.18.tar.tar
Hunk #1 FAILED at 6128.
1 out of 1 hunk FAILED -- saving rejects to file /mnt/lfs/sources/binutils-2.18.tar.tar.rej
lfs:/mnt/lfs/sources$
i have modified the binutils-2.18-configure-1.patch to include the path to binutils-2.18 package.
even after that, the compiler is not modifying the package by itself.
i still have to enter the package path and name during the execution of the path.


and finally when it seems on its way to patching,it is giving me this error:
Hunk #1 FAILED at 6128.
1 out of 1 hunk FAILED

what seems to be the problem?

Last edited by Vardhaman; 01-31-2009 at 04:03 PM.
 
Old 02-01-2009, 05:30 AM   #2
knudfl
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
*
Looks like you have the same problem as here :

http://www.linuxquestions.org/questi...s-help-701266/

....

( Don't modify the patch, and don't do complicated commands,
will just increase the risk for errors. )
....

Last edited by knudfl; 02-01-2009 at 05:33 AM.
 
  


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
nvidia display drivers installation error with binutils, binutils allready installed mandrakeBren Linux - Newbie 9 01-06-2009 12:52 PM
Ch.6 Binutils failed--Using kernel 2.6.10 trigggl Linux From Scratch 4 02-24-2005 05:58 AM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 07:57 AM
What is Hunk #2 FAILED at 87 in Kernel 2.6.5 patchin? velan Debian 1 05-05-2004 11:25 AM
problem with "rpm -bb" , 1 out of 1 hunk ignored ...error: Bad exit status from /v wohaolouis Linux - Software 0 03-07-2004 07:12 AM

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

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