LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-16-2011, 02:32 PM   #1
martyrdom
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
Angry Problem with Glibc config


Hi,
I known, there was a very similar post already but situation was different - someone mixed two different ver. of LSF Book and the sources.
I'm using LFS Book v6.7 and the Sources 6.7
My host system is LFS Boot CD v. 6.3

The problem is that when I typed a configuration command for Glibc I've got an error message like that:
Code:
checking for cpuid.h usability... no
checking for cpuid.h presence... no
checking for cpuid.h... no
configure: error: gcc must provide the <cpuid.h> header
In Glibc config.log I've found:
Code:
conftest.c:83:19: error: cpuid.h: No such file or directory
File cpuid.h IS here:
/mnt/lfs/tools/lib/gcc/i686-lfs-linux-gnu/4.5.1/include/cpuid.h

I kept follow all the instructions in the book. Try do it twice and got the same error.

Any help or work around? Please...
 
Old 03-16-2011, 02:52 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,365

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Just checking on my box
bash-4.1$ locate cpuid.h
locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
/usr/lib/gcc/i486-slackware-linux/4.4.4/include/cpuid.h
/usr/src/linux-2.6.35.4/arch/ia64/include/asm/sn/sn_cpuid.h
/usr/src/linux-2.6.35.4/include/config/x86/cpuid.h


It just may be a typo in the ./configure. Workaround? Try a symlink to cpuid.h in /usr/include :-D
 
Old 03-16-2011, 03:07 PM   #3
martyrdom
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
Workaround? Try a symlink to cpuid.h in /usr/include :-D
I thought about it but how to put symlink on a CD?
(/usr/include belongs to my host system - LFS LiveCD Please correct me if I'm wrong)
 
Old 03-17-2011, 04:48 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,365

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Yes, that does sound silly, but it's not quite what I meant
/checks book

By the time you're compiling glibc, you are in chroot. So /mnt/lfs/anywhere is no longer relevant.
In the chroot, run
ln -s /tools/lib/gcc/i686-lfs-linux-gnu/4.5.1/include/cpuid.h /usr/include

and that would do it. Mistakes in that area (early ch 6) are often because something is wrong with the way you re-entered chroot.
 
Old 03-17-2011, 08:47 AM   #5
martyrdom
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
I should mention that before that I'm still in chapter 5.7.1
It is the first pass - before chroot

Perhaps totay I will try to start all over again from the beginning.
This time I will use Book and Sources in version 6.3 - it match perfectly with my LFS LiveCD v.6.3
 
Old 03-17-2011, 01:14 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I just tried building LFS 6.7 using the LFS liveCD as host to find out if I get that same message (I did install lfs 6.7, but used debian): I do get warnings about cpuid.h, but the configure steps keeps running (final cpuid message: checking for cpuid.h... yes). The warnings I see are well documented and can be ignored.

Could you give a bit more info?

- Which liveCD are you using (I used lfslivecd-x86-6.3-r2145),
- What does echo $LFS_TGT show (i686-lfs-linux-gnu),

I do believe a mistake was made in the ../glibc-2.12.1/configure ...... step. If I change --host=$LFS_TGT into --host=$LFS_TFT and run the ./configure step it stops with a configure error and the same errors you see. It seems a valid $LFS_TGT is needed, can you confirm it is set correctly?

Hope this helps.
 
Old 03-17-2011, 03:02 PM   #7
martyrdom
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
- Which liveCD are you using (I used lfslivecd-x86-6.3-r2145),
I use the same
Quote:
- What does echo $LFS_TGT show (i686-lfs-linux-gnu),
It show me exactly the same
Maybe I did a mistake before? I'm going to try again
 
Old 03-17-2011, 03:19 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Maybe I did a mistake before?
It starts to look that way

Quote:
I'm going to try again
Wishing you a smooth build!
 
Old 03-17-2011, 07:10 PM   #9
martyrdom
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
So I started again. The same confiruration - book 6.7, Sources 6.7 and host LiveCD 6.3
This time I get only warnings like druuna, not errors. Just finish make install
Thanks for help!
 
  


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
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
glibc config problem LQ496873 Linux From Scratch 6 02-25-2006 10:58 AM
Problem on config glibc-2.3.4 satimis Linux From Scratch 2 02-03-2006 10:28 PM
glibc config errors kudos Linux - Software 2 10-06-2003 12:13 PM
possible samba config problem or network config issue? rruffin Linux - Networking 3 06-03-2003 04:04 PM

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

All times are GMT -5. The time now is 06:51 AM.

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