LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   glibc recompile (http://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-recompile-831120/)

grail 09-09-2010 01:04 AM

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

druuna 09-09-2010 02:02 AM

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.

grail 09-09-2010 02:21 AM

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".

druuna 09-09-2010 03:01 AM

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!


All times are GMT -5. The time now is 10:05 PM.