LinuxQuestions.org
Help answer threads with 0 replies.
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 05-01-2007, 12:01 AM   #1
accp-james
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Rep: Reputation: 0
Can't build glibc 2.4 or 2.5 w/o errors...


So, I tried building LFS 6.2 on an Intel 945 board w/ a Pentium D processor... I can't even get through the initial toolchain because expect seems to want to find glibc 2.4 or higher, and the version used by the book is 2.3.x. So, naturally I attempt to 'integrate' the SVN version and the stable, only to find that the SVN fails as well, but for a different reason...

I cannot get glibc 2.4 or 2.5 to pass 'make check'. Both versions fail the cancelXX tests for NPTL... which of course leads to some more serious issues down the road, such as a broken gthread-2.0 library.

So, what I'm not understanding is why there's an apparent broken dependancy in the stable version of the book, and more importantly why I can't get glibc 2.4 or 2.5 to build without NPTL being broken?
 
Old 05-01-2007, 10:03 AM   #2
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,

This all sounds a bit strange to me.

- Which chapter did give you the problem (you are probably referring to 5.7. Adjusting the Toolchain)?
- Which command gave the error?
- What is you base system and is up to specs?

The book (LFS 6.2) and all packages listed/installed are working and don't have dependency problems, the only thing that could be wrong: Your base system. I would advice using the LFS liveCD as a base system.

BTW: Mixing stable and SVN could give very strange results. One of them: dependency related issues.

There's not enough relevant information present to give you a more solid advice.
 
Old 05-01-2007, 09:03 PM   #3
accp-james
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I'll go through the build process again and report the specific errors, and this most recent batch of problems was using the LFS LiveCD... Though, it's worth noting that the X86_64 LiveCD won't allow me to start a shell, despite the fact that virtually every prepackaged distro installs/runs their x86_64/AMD64 releases without issue (Debian Netinst has a problem detecting the Intel Pro100 type network adapter built in the 945 Express chipset.) So I'm using the x86 release, which doesn't bother me much... don't wanna have to deal with 64 bit compatability issues (no Flash ) anyway.

Something else I'm wondering, I built last weeks SVN on a P4 2.8GHz machine without problems, I would like to use the -march=prescott optimization when building the software for this machine (I was able to use '-O3 -march=pentium4' on that box for virtually all of the packages on the other one), but if I build on the P4 for use with the Pentium-D I'm having issues with I can't use the right optimizations... kinda defeats half the purpose of using LFS in my mind... Is there an 'easy' solution to this issue? I'd be happy to build on the P4 if I can move the stuff over.
 
Old 05-02-2007, 01:33 AM   #4
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:
....... using the LFS LiveCD... Though, it's worth noting that the X86_64 LiveCD won't allow me to start a shell / ........ don't wanna have to deal with 64 bit compatability issues (no Flash ) anyway.
If this is the case, use the none 64 bit version of the LFS liveCD. Why do it the hard way....

Quote:
I would like to use the -march=prescott optimization when building the software for this machine (I was able to use '-O3 -march=pentium4' on that box for virtually all of the packages on the other one), but if I build on the P4 for use with the Pentium-D I'm having issues with I can't use the right optimizations...
You should not use any compiler optimization during chapter 5 (it's just a base for chapter 6). Chapter 6.1 talks about optimization and points to a hint. There's a possible risk when using optimization and the (small) benefits of using optimization don't outweigh the risks.

Quote:
... kinda defeats half the purpose of using LFS in my mind...
I don't agree. LFS is about learning linux, the way linux works/is set up and having a system that only has those things installed/running that you want. Being able to optimize a package when building it is nice (when it works) but is not one the goals of the LFS project.
 
Old 05-03-2007, 04:58 PM   #5
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
Try a different comp?

Quote:
I cannot get glibc 2.4 or 2.5 to pass 'make check'. Both versions fail the cancelXX tests for NPTL
My old system (now dead), failed alot of NPTL tests alongside others when building glibc. I vaguely remember a cancel something test failing too. Several gcc tests were failed also. Unfortunately it was a hardware problem. My hardware was slightly testy and wasn't exactly brand new (big chunky SocketA Athlon), and this may be the problem here. I became frustrated and ignored the errors every time and never had a problem with the finished system...
 
  


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
Glibc-2.3.6 build issue ---- wordexp.o not build Dhana_pal Linux - Software 0 12-27-2006 01:56 AM
Configuring glibc-build Brennan Linux From Scratch 1 09-26-2005 02:44 PM
How do I build and install glibc 2.3.1 for SuSE 9.0? wfolk Linux - Newbie 5 09-02-2004 05:11 PM
debug build of glibc flok Slackware 2 07-13-2004 11:17 AM

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

All times are GMT -5. The time now is 07:05 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