Hi,
I try to compile a cross-lfs for an i486. I followed instructions in the cross-lfs-book. In chapter 5.7 Glibc-2.4 make failed.
The message of the error is as follows:
Code:
/bin/install: `/mnt/lfs/tools/glibc-build/../include/linux/limits.h' and `/tools/include/linux/limits.h' are the same file
make[2]: *** [/tools/include/linux/limits.h] Error 1
make[1]: *** [iconv/subdir_lib] Error 2
make: *** [all] Error 2
/tools is a symlink to /mnt/lfs/tools as described in chapter 4.2.
So whats wrong?
The configure-command is:
Code:
BUILD_CC="gcc" CC="${LFS_TARGET}-gcc" \
AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
../glibc-2.4/configure --prefix=/tools \
--host=${LFS_TARGET} --build=${LFS_HOST} \
--disable-profile --enable-add-ons \
--with-tls --enable-kernel=2.6.0 --with-__thread \
--with-binutils=/cross-tools/bin --with-headers=/tools/include \
--cache-file=config.cache
If I change --prefix=/tools to --prefix=/cross-tools I get an other error.
Second thing is, what about --host=${LFS_TARGET}? In all other chapters this was set to --host=${LFS_HOST} which is i686-cross-linux-gnu instead of i486-pc-linux-gnu.
Any ideas?
thanks in advance for help