DJ Lucas wrote:
> No, not good. Ignoring the fact that the command is broken, and no time
> to look right now, but the `dirname $(gcc
> -print-libgcc-file-name)`/include/limits.h file needs the
> ../include-fixed/syslimits.h, which includes this string. Removing the
> gcc version of limits.h may or may not work. I haven't tried it. I've
> got to go...check back later tonight.
Hmm. I don't have an include/limits.h on my build.
Anyway, neither include/limits.h or include-fixed/syslimits.h would be
removed with the command I'm proposing. I'm currently in the middle of
testing this on two machines. One is RH 6.2 (still in progress) and one
is a recent-ish (last year and a half or so) version of LFS. Probably
circa 6.3.
The command I propose is:
GCC_FIXED=`dirname $(gcc -print-libgcc-file-name)`/include-fixed &&
find ${GCC_FIXED}/* -maxdepth 0 -xtype d -exec rm -rvf '{}' \; &&
rm -vf `grep -l "DO NOT EDIT THIS FILE" ${GCC_FIXED}/*` &&
unset GCC_FIXED
All I've done is rename the variable to be a bit shorter and perhaps
somewhat more accurate, and to change the final directory from 'include'
to 'include-fixed'.
When it runs on the recent LFS host, the output is:
removed
`/home/jhalfs/build/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/include-fixed/asm/posix_types.h'
removed directory:
`/home/jhalfs/build/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/include-fixed/asm'
removed
`/home/jhalfs/build/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/include-fixed/linux/a.out.h'
removed directory:
`/home/jhalfs/build/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/include-fixed/linux'
removed
`/home/jhalfs/build/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/include-fixed/openssl/bn.h'
removed directory:
`/home/jhalfs/build/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.3.2/include-fixed/openssl'
Then:
root [ ~ ]# ls -l /tools/lib/gcc/i686-pc-linux-gnu/4.3.2/include-fixed/
total 12
-rw-r--r-- 1 root root 3470 2008-10-19 18:59 limits.h
-rw-r--r-- 1 root root 750 2008-10-19 18:59 README
-rw-r--r-- 1 root root 330 2008-10-19 18:59 syslimits.h
I'll post back soon when the RH 6.2 machine catches up with its output.
It's currently building glibc in chapter 5.
--
JH
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page