Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've just build LFS 7.3 RC1 up to and including chapter 5 and have not come across any obstacles. I do have to say that I only checked the commands used and did not meticulously check the accompanying text.
Test is being done with the following specs:
- Used a virtual machine and debian (x86_64) as host (as described here: Minimal Graphical Debian Host for LFS),
- Used the MAKEFLAGS='-j 3' option,
- I did not run the test when building chapter 5.
Due to lack of time I'm not able to continue with the chapters that follow at the moment (I'll post the results at a later time).
Follow-up on my previous post: Just finished building chapter 6 and all seems OK.
I ran all the test available (except Automake, as suggested by the LFS team). I did run into two things that are probably worth mentioning:
- Gcc 4.7.2: The make -k check step ran for a long(!) time, longer then I remember with previous versions. Everything went well though, the only error shown was a known error (libmudflap).
- Coreutils 8.21: I did ran into an error while running the test suite. tests/misc/stty-pairs.sh failed and I was not able to correct this test failure. I did find an old reference (coreutils 7) to this error: error while testing the installation of Coreutils-7.4.
I did decide to continue with the build and did not run into any other errors, but I'm not 100% sure at this time if this error is a glitch in the test itself or something that one runs into when using the finished LFS system.
- Gcc 4.7.2: The make -k check step ran for a long(!) time, longer then I remember with previous versions. Everything went well though, the only error shown was a known error (libmudflap).
That ran a long time for me, too. But I remember that also while building v7.2. And I did it twice this time because of new kinds of errors (for me, anyway)...
Code:
=== g++ tests ===
Running target unix
ERROR: g++.dg/abi/mangle33.C -std=c++98: error executing dg-final: couldn't compile regular expression pattern: out of memory
UNRESOLVED: g++.dg/abi/mangle33.C -std=c++98: error executing dg-final: couldn't compile regular expression pattern: out of memory
ERROR: g++.dg/abi/mangle33.C -std=c++11: error executing dg-final: couldn't compile regular expression pattern: out of memory
UNRESOLVED: g++.dg/abi/mangle33.C -std=c++11: error executing dg-final: couldn't compile regular expression pattern: out of memory
=== g++ Summary ===
# of expected passes 47721
# of expected failures 286
# of unresolved testcases 2
# of unsupported tests 315
/sources/gcc-build/gcc/testsuite/g++/../../g++ version 4.7.2 (GCC)
=== libstdc++ tests ===
Running target unix
FAIL: 22_locale/time_get/get_weekday/char/38081-2.cc execution test
=== libstdc++ Summary ===
# of expected passes 8799
# of unexpected failures 1
# of expected failures 43
# of unsupported tests 19
There is no log file for comparison at http://www.linuxfromscratch.org/lfs/build-logs/7.3-rc1 (yet, I guess), and that link in the book doesn't work. But I looked through all those at the other gcc.gnu.org link and saw my libstdc++ unexpected failure several times in the Debian 4.7.2-21 tests run on February 10th.
I plan on forging ahead for now. I might ask about it at the wiki or mailing list.
To keep the results honest I restarted the build from 5.34 (my latest safe point before 6.17 GCC-4.7.2) using the same settings. Only change made is the ulimit -s 32768 setting.
The above mentioned ERROR/UNRESOLVED issue's keep showing when changing the ulimit to 65536, 131072 or 524288 (did not test with a larger setting).
@Keith Hedger: I stopped running the test suites when building chapter 5. Too many things show up that aren't relevant for the end result (a sane and temporary build environment).
The LFS team also mentions it isn't worth the effort to do so:
Quote:
At this point, the test suite would normally be run, but, as mentioned before, the test suite framework is not in place yet.
and
Quote:
As discussed earlier, running the test suite is not mandatory for the temporary tools here in this chapter.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
I assumed check would be needed later on hence its inclusion in the toolchain maybe the book could be amended to say that the check package is optional?
I don't do the checks ( except for the basic dummy.c one ).
Silly me, I read check and assumed you meant running make check for the check package (also the mention of /media/LFSGort/sources/check-0.9.9/tests in the output shown).
I did not come across this error when building check-0.9.9 in chapter 5.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
Quote:
Originally Posted by druuna
...Sorry about the confusion!
No probs I should have been a bit clearer, this may be related to some of the packages I have installed as they are much higher than the version check minimums ( although not above the "not recommended" versions )
ie installed versions:
gcc-4.7.1
glibc-2.17-2
binutils-2.21.1
coreutils-8.18
linux-3.4.7
I emailed the lfs-dev mailing list about the gcc test stuff. Armin Krejzi replied saying that he noticed the same things with gcc and thinks it should be okay to continue with those test results (which I did).
Bruce Dubbs also replied saying that he thought the g++ out-of-memory thing might be stack memory instead of total memory. He's wondering if the ulimit command should be changed to "ulimit -s unlimited". druuna tried some larger settings, but not unlimited. I may try that just to find out. He also commented that the libstd++ thing that I posted above seems to be a new normal for this version of gcc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.