________________________________ From: Bruce Dubbs <[email protected]> To: brown wrap <[email protected]>; LFS Support List <[email protected]> Sent: Monday, November 7, 2011 8:41 PM Subject: Re: Just starting 7.0 brown wrap wrote: > > > I am just starting the build of 7.0. The last time I posted was back > in version 6.5. Anyway, I have a question about the patching of gcc. > The directions in the book showing patching 4.6.1. The patch now is > 4.6.2. I tried to apply the patch, substituting the new patch and was > prompted, as to what file to patch. Is the below line the correct > format to patch gcc from the binutils-build directory? Thanks. > > patch -Np1 -i ../gcc-4.6.2-cross_compile-1.patch If you are using LFS-7.0, use the packages and patches that it references: http://www.linuxfromscratch.org/lfs/view/stable/chapter03/patches.html Also, read section 3.1. It tells you how to check if you have all the right packages. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page I read the section 3.1 and successfully patched glibc, then I tried patching gcc and ran into the same sort of problem. See below: fs:~/gcc-build$ patch -Np1 -i ../gcc-4.6.2-startfiles_fix-1.patch can't find file to patch at input line 22 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |Submitted By: Jeremy Huntwork (jhuntwork AT linuxfromscratch DOT org) |Date: 2008-12-05 |Initial Package Version: 4.3.2 |Upstream Status: See below. |Origin: DIY Linux, See below. |Description: Original patch follows: | |# DIY Linux Patch |Date: 2008-09-09 |Author: Refer Origin. |Origin: Partial revert of http://gcc.gnu.org/ml/gcc-cvs/2006-11/msg00416.html |Maker: Greg Schafer <[email protected]> |Upstream Status: Not applicable. Tweak only for Temptools phase GCC-Pass2. |Description: Partially revert GCC driver to pre-GCC-4.3 state to allow startfiles to be | found in $prefix when GCC is configured for a non-standard prefix eg: /temptools. Full | background info in thread starting here: http://gcc.gnu.org/ml/gcc/2008-03/msg00095.html | and GCC bugzilla here: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35532 | |diff -Naur gcc-4.3.0-RC-20080222.orig/gcc/gcc.c gcc-4.3.0-RC-20080222/gcc/gcc.c |--- gcc-4.3.0-RC-20080222.orig/gcc/gcc.c 2008-01-24 18:57:12.000000000 +0000 |+++ gcc-4.3.0-RC-20080222/gcc/gcc.c 2008-03-02 06:07:36.000000000 +0000 -------------------------- File to patch:
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
