GCC patch failure LFS 6.5

bchaffin at programmer.net bchaffin at programmer.net
Thu Feb 11 07:07:18 PST 2010


 Thanks Randy.

Actually, it did help. Looking at your success gave me a chance to take a closer look at my failure.
It was a problem with the command vs my directory structure. My fault. Fixed now.



 


 

 

-----Original Message-----
From: Randy McMurchy <lfs.user at mcmurchy.com>
To: LFS Support List <lfs-support at linuxfromscratch.org>
Sent: Thu, Feb 11, 2010 9:49 am
Subject: Re: GCC patch failure LFS 6.5


bchaffin at programmer.net wrote these words on 02/11/10 08:13 CST:
> This command: patch -Np1 -i ../gcc-4.4.1-startfiles_fix-1.patch
> 
> fails with the following error:
> 
> patching file gcc/gcc.c
> Hunk #1 FAILED at 6370.
> 1 out of 1 hunk FAILED -- saving rejects to file gcc/gcc.c.rej

You said you downloaded the gcc tarball (again), so I'm assuming you
unpacked it and changed into the gcc-4.4.1 directory and ran the
patch command. I cannot understand it failing. I just built LFS-6.5
and here is what happened when I ran it:

rml at rmlinux: /mnt/rml6/build > tar xf Sources/gcc-4.4.1.tar.gz
rml at rmlinux: /mnt/rml6/build > cd gcc-4.4*
rml at rmlinux: /mnt/rml6/build/gcc-4.4.1 > patch -Np1 -i ../Sources/gcc-4.4.1-startfiles_fix-1.patch
patching file gcc/gcc.c
Hunk #1 succeeded at 6467 (offset 97 lines).
rml at rmlinux: /mnt/rml6/build/gcc-4.4.1 >


As you can see, it patch the file as expected. I wish I could be of
more help, but it is simply a mystery to me why it doesn't work for
you.

Perhaps your version of patch (or whatever in the Fedora OS) takes
a hunk that succeeds, but has offsets as a failure. Just a guess.

-- 
Randy

rmlscsi: [bogomips 1003.22] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
08:48:00 up 46 days, 13:56, 1 user, load average: 0.20, 0.20, 0.08
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20100211/980659fa/attachment.html>


More information about the lfs-support mailing list