LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-09-2010, 02:04 AM   #1
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,988

Rep: Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182
glibc recompile


Howdy all

Would someone please advise of any sites I may go to with details on how to recompile glibc after the system has been built?

I seem to be able to recompile all other software included in the standard build of a (C)LFS system except glibc which when using the same options (excluding references to /tool of course) now errors when running the test:

glibc-build/elf/tst-xmmymm.out

This test consistently fails with an Error 1 and so I am unable to reinstall.

So I figure my configure / compile time options must need to change, but I am unsure as to what to

Cheers
grail

Note: version is currently - glibc-2.11.2
 
Old 09-09-2010, 03:02 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,

Is re-building glibc at a later stage (assuming you already have a working [B/C]LFS) at all possible? The whole system depends on it (together with binutils, gcc and the linux kernel headers).

I remember reading that binutils, gcc and glibc need to be done together but rebuilding is much preferred. Just remembered where I read it: LFS FAQ - How do I upgrade my LFS/BLFS system?.

Not what you where looking for, I'm sure, but something to think about.
 
Old 09-09-2010, 03:21 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,988

Original Poster
Rep: Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182Reputation: 3182
Thanks for the link druuna

I used to run a system called Sourcemage which was able to (re)compile all applications whenever required.
My normal time to do this would be either a new version of glibc or a new version of gcc at which time I like to refresh both and their dependencies.

So from that point of view I am agreeing with only recompile (and doing a full rebuild) when improvements come along.

My current system is still relatively fresh and I am ironing out little problems and trying to improve my packaging system.
This is where I was wondering if my current choices of settings, basically those from the final build of glibc minus the /tools options, need to be altered
to basically say "use what the system has to rebuild".
 
Old 09-09-2010, 04:01 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,

If all the above will be part of your shhh! distribution (do you already have a name for it?) I would go the safe way and leave the originally installed glibc, binutils, gcc and the linux kernel headers alone.

Although I haven't tried it myself it might be possible to patch glibc (as long as it is the same major/minor version: 2.11.1 -> 2.11.2). I've always been very careful when it comes to glibc and decided to re-install everything if the need for a newer glibc version arises.

As long as you keep the original gcc in place, adding a older/newer gcc version shouldn't bee a problem. Just locate it in a different place (/opt/gcc.<version>).

If you are going to test to see if this foundation can be re-installed/upgraded and you do find a way: Please let me/us know!
 
  


Reply

Tags
glibc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 recompile for kernel 2.6.10 dhave Slackware 2 01-24-2005 05:59 AM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 08:26 AM
Recompile glibc with larger stack size? insectile Slackware 3 07-20-2004 01:34 PM
How to recompile glibc ? oskernel Linux - Software 3 03-01-2004 10:24 AM
upgrading glibc. what else do i need to recompile. whansard Linux From Scratch 1 10-18-2003 04:15 PM

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

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