LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-09-2006, 01:19 AM   #1
EXS
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
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
 
Old 06-09-2006, 02:03 PM   #2
EXS
LQ Newbie
 
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Chanced --prefix

Hi,

after chancing
Code:
... --prefix=/tools ...
to
Code:
... --prefix=/cross-tools ...
glibc-2.4 compiled successfully. Is this a bug?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make configure-host for binutils-2.16.1 fails under 7.0-cross-lfs-20051019-x86_64 Basel Linux From Scratch 2 10-24-2005 11:07 PM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM
Glibc-2.3.3-lfs-5.1 EPM_Students Linux From Scratch 1 02-12-2005 06:37 AM
Glibc (2.3.3-lfs-5.1) Mystified Linux From Scratch 2 12-02-2004 05:14 PM
Error cross-compiling glibc, chapter 5 donbellioni Linux From Scratch 2 09-17-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration