LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Cross-lfs Glibc-2.4 (https://www.linuxquestions.org/questions/linux-from-scratch-13/cross-lfs-glibc-2-4-a-453071/)

EXS 06-09-2006 01:19 AM

Cross-lfs Glibc-2.4
 
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

EXS 06-09-2006 02:03 PM

Chanced --prefix
 
Hi,

after chancing
Code:

... --prefix=/tools ...
to
Code:

... --prefix=/cross-tools ...
glibc-2.4 compiled successfully. Is this a bug?


All times are GMT -5. The time now is 11:57 PM.