Well, I can't compile glibc with LFS live cd 6.5.
The first attempt I got this after >6hrs compiling (on via Epia Nehemiah 1GHZ)
Code:
stat.o.dt -MT /mnt/lfs/sources/glibc-build/io/stat.o
stat.c:50: error: redefinition of '__stat'
../include/sys/stat.h:22: note: previous definition of '__stat' was here
make[2]: *** [/mnt/lfs/sources/glibc-build/io/stat.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.10.1/io'
make[1]: *** [io/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.10.1'
make: *** [all] Error 2
so I was looking for something wrong with sources.cache or mtune or stune (no idea what it is)
Then I saw
Code:
case `uname -m` in
i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;;
esac
En replaced" i?386" with "i486" Maybe that was the mistake? But now I'm thinking the questionmark is more a wildcard than a typo.
So I recompiled with i486 and got this error:
Code:
sed -e 's/#.*$//' -e '/^[ ]*$/d' ../abi-tags | \
while read conf tagos tagver; do \
test `expr 'i686-pc-linux-gnu' \
: "$conf"` != 0 || continue; \
( echo "$tagos" | \
sed -e 's/[^0-9xXa-fA-F ]//' \
-e 's/^/#define __ABI_TAG_OS /'; \
echo "#ifndef __ABI_TAG_VERSION"; \
echo "$tagver" | \
sed -e 's/[^0-9xXa-fA-F]/ /g' -e 's/ *$//' \
-e 's/ /,/g' -e 's/^/# define __ABI_TAG_VERSION /'; \
echo "#endif" ) > /mnt/lfs/sources/glibc-build/csu/abi-tag.h.new; \
done
if test -r /mnt/lfs/sources/glibc-build/csu/abi-tag.h.new; then mv -f /mnt/lfs/sources/glibc-build/csu/abi-tag.h.new /mnt/lfs/sources/glibc-build/csu/abi-tag.h; \
else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi
make[2]: Map '/mnt/lfs/sources/glibc-2.10.1/csu' wordt verlaten
make[1]: *** [csu/subdir_lib] Fout 2
make[1]: Map '/mnt/lfs/sources/glibc-2.10.1' wordt verlaten
make: *** [all] Fout 2
root [ /mnt/lfs/sources/glibc-build ]#
That wasn't the solution so I did a "make distclean" and recompiled with i386 and i686 just to try.
If I follow the script now (with i?86) every time it's giving the same error?