LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Trouble Building glibc chapter 6 (https://www.linuxquestions.org/questions/linux-from-scratch-13/trouble-building-glibc-chapter-6-a-4175465984/)

Lennie 06-24-2013 11:49 AM

I suddenly remember a strange problem I had some time ago. I wanted to build a second system on a different computer. I tried to use the same toolchain, and I had completely forgotten that i used '-march=native', which was corei7. (Actually I still don't remember if I really used that for the toolchain, but I couldn't find any other cause for the problem.) I think it was perl that again and again got stuck in an infinite loop of untaring some packages, until all RAM was used and I had to reboot. Somehow I managed to login to a different tty and run, I don't remember if it was 'ps' or something else, where I saw something like 'tar <some package>' again and again, filling the whole screen.

I don't know if I compiled everything before perl on that machine, or if I compiled it on the first machine. I create packages so I could have just installed them, and continued building from there. When I realized what I thought was the problem, I rebuild the new system on the first machine, and made sure to have the right optimization for the computer I was building for, 'core2'. And then there were no problem with perl.

Quote:

Originally Posted by business_kid (Post 4977630)
Funny how things change. . . It was 10 years ago. Agreed, Lennie. I was somehow thinking if all else fails, replace the headers before starting on ch 5. But I didn't say that, or nearly. Any switch midway would be a disaster. Thanks for tidying up for me.

Thanks for making me remember my mistakes, so I can share them and maybe help someone... ;)

business_kid 06-24-2013 03:15 PM

All LFSers and ex-LFSers have at least one experience of a build that went sadly wrong because of initial toolchain trouble causing issues much later on. If you get into the smaller packages in ch 6 without issue you're usually safe. GCC used to be the big stumbling block when I was doing it, and people using ambitious $CFLAGS settings. HLFS has/had a uclibc build that rarely completes.


All times are GMT -5. The time now is 02:09 AM.