﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1621	gcc fixincludes error stops it working	b3nt@…	lfs-book@…	"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"	defect	closed	lowest		Book	Branch_GCC4	normal	fixed		
