installation of gcc failing, make error 2 and libstdc++ tests failing...
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.
installation of gcc failing, make error 2 and libstdc++ tests failing...
hi, this is probably my last attempt on making an lfs, because i have come this far just to get errors: after not just one, but all of the libstdc++ tests failed, make gave error 2 on the makefile at line 2391. the last command i ran was copy and pasted from the book:
"su tester -c "PATH=$PATH make -k check".
i'm pretty sure there were no errors before running the command, and i dunno what the cause of this error is at all.
well, i just read that it's known to the libstdc++ tests to fail, but i don't think the make is known to fail as well. i can't guess anything because i need further clarification about error 2.
i'm so confused right now... after reading better my terminal, i saw that the error 2 came from libatomic, but libatomic isn't mentioned on the build log mentioned on the book...
Last edited by RetroGamerCX; 07-07-2022 at 08:26 PM.
Reason: mistakes
I'd try to proceed. Either it's just on of the usually failing tests or - if it's a real problem with your installation - you'll face it pretty soon again...
I'd try to proceed. Either it's just on of the usually failing tests or - if it's a real problem with your installation - you'll face it pretty soon again...
Depends on the package. It's considered essential for binutils, glibc, gcc and its three internal libraries, and libstdc++. Not so much for the rest of the installation. And no tests at all should be run on the intermediate toolset, only on the final products.
But in any case the make error shows that something has gone badly wrong. No LFS build should break like that.
Yeah, on the one hand, it's important to give you a good feeling, if it tests ok.
On the other hand, if tests fail, and you have no idea why they fail, i'd just give it a try and ignore the failing tests.
You've nothing to lose. If anything is seriously wrong with your fresh compiler, you'll recognise it very soon. And if the tests failed for no serious reason, you're able to proceed.
Imho, proceeding doesn't harm or destroy anything valuable.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,058
Rep:
been building lfs for years I have NEVER run tests on libstdc++, but always run the sanity checks to make sure you are compiling and linking correctly, about half way down this page: https://www.linuxfromscratch.org/lfs...ter08/gcc.html
[QUOTE=RetroGamerCX;6366317]hi, this is probably my last attempt on making an lfs, because i have come this far just to get errors
I made a small LFS which has 0% build errors. It can run ff99 w/video sound (PC intelHD sound nvidia). but it's not "suited for laptops" and global distribution of all hardwares.
It is possible to build linux from scratch usably 0% failure. Somone told me "the point is learning if a script does it what is learned?"
When I first started building LFS, I religiously tested everything. Now I only test where the Book says you definitely must. And even if you do test everything, one or two test failures in a package don't count. A lot of failures in an essential build package do.
@Keith: surely you run tests on your final gcc, and that includes libstdc++. I agree that it's not worth testing the temporary libstdc++ that you build for your toolkit.
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,058
Rep:
Hazel - Nope just the sanity test, I script it all so rarely have typos, did the full checks a couple of times on my 1st few builds, but never bothered since, never had a problem.
hi, i'm back after 200 years to say i finally went ahead on my lfs, i ignored the errors as you guys told me to, and now i'm almost done! what happens now is that every time i boot my lfs, grub says:
"could not find a suitable video mode
Booting in blind mode
_"
then 1 second later, vmware says that the guest halted the cpu, and tells me to power off the vm. i think i have to make a different thread about this issue.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.