Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 01-31-2009, 05:00 PM   #1
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:

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 (
|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
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 05:03 PM.
Old 02-01-2009, 06:30 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Looks like you have the same problem as here :


( 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 06:33 AM.


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

All times are GMT -5. The time now is 06:54 PM.

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