[Bug 1621] New: gcc fixincludes error stops it working

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Mon Aug 22 03:39:10 PDT 2005


http://bugs.linuxfromscratch.org/show_bug.cgi?id=1621

           Summary: gcc fixincludes error stops it working
           Product: Linux From Scratch
           Version: Branch_GCC4
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P5
         Component: Book
        AssignedTo: lfs-book at linuxfromscratch.org
        ReportedBy: b3nt at ukonline.co.uk
         QAContact: lfs-book at linuxfromscratch.org


In the gcc-4 book the gcc fixincludes command gives an error after the second line 

lfs:/mnt/lfs/sources$ GCC_INCLUDEDIR=`dirname $(gcc
-print-libgcc-file-name)`/include &&
> find ${GCC_INCLUDEDIR}/* -xtype d -exec rm -rf \{} \; &&
> rm -f `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` &&
> unset GCC_INCLUDEDIR
find: /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/include/X11: No such
file or directory
find: /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/include/linux: No
such file or directory
find: /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/include/openssl: No
such file or directory
find: /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.0.1/include/ps: No such
file or directory
lfs:/mnt/lfs/sources$

Because the command find ${GCC_INCLUDEDIR}/* -xtype d -exec rm -rf \{} \;
deletes the folders X11,linux,openssl and ps it then gives an error because find
is still trying to search the folders that have just been deleted. This prevents
the next lines from being run. Removing the `&&' from after the line
find ${GCC_INCLUDEDIR}/* -xtype d -exec rm -rf \{} \;
allows the lines

rm -f `grep -l "DO NOT EDIT THIS FILE" ${GCC_INCLUDEDIR}/*` &&
unset GCC_INCLUDEDIR

to run as they don't then depend on the previous command



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.



More information about the lfs-book mailing list