bchaf...@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: r...@rmlinux: /mnt/rml6/build > tar xf Sources/gcc-4.4.1.tar.gz r...@rmlinux: /mnt/rml6/build > cd gcc-4.4* r...@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). r...@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