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 07-07-2022, 06:32 PM   #1
RetroGamerCX
LQ Newbie
 
Registered: Sep 2020
Location: Brazil
Distribution: gentoo
Posts: 7

Rep: Reputation: Disabled
Angry 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.
 
Old 07-07-2022, 06:39 PM   #2
RetroGamerCX
LQ Newbie
 
Registered: Sep 2020
Location: Brazil
Distribution: gentoo
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-07-2022, 08:14 PM   #3
RetroGamerCX
LQ Newbie
 
Registered: Sep 2020
Location: Brazil
Distribution: gentoo
Posts: 7

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-08-2022, 08:34 AM   #4
derguteweka
Member
 
Registered: Sep 2018
Posts: 57

Rep: Reputation: Disabled
Moin,

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

cheers,
WK
 
1 members found this post helpful.
Old 07-08-2022, 10:38 AM   #5
RetroGamerCX
LQ Newbie
 
Registered: Sep 2020
Location: Brazil
Distribution: gentoo
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by derguteweka View Post
Moin,

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

cheers,
WK
is make check that important, then?
 
Old 07-08-2022, 11:10 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,771
Blog Entries: 17

Rep: Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051
Quote:
Originally Posted by RetroGamerCX View Post
is make check that important, then?
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.

Last edited by hazel; 07-08-2022 at 11:11 AM.
 
1 members found this post helpful.
Old 07-08-2022, 12:09 PM   #7
RetroGamerCX
LQ Newbie
 
Registered: Sep 2020
Location: Brazil
Distribution: gentoo
Posts: 7

Original Poster
Rep: Reputation: Disabled
yeah, do you know what causes error 2 on make?
 
Old 07-09-2022, 01:06 PM   #8
derguteweka
Member
 
Registered: Sep 2018
Posts: 57

Rep: Reputation: Disabled
Moin,

Quote:
Originally Posted by RetroGamerCX View Post
is make check that important, then?
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.

cheers,
WK
 
1 members found this post helpful.
Old 07-11-2022, 06:47 AM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,058

Rep: Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831
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
Code:
echo 'int main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /lib'
 
2 members found this post helpful.
Old 11-23-2022, 02:35 AM   #10
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 176

Rep: Reputation: 41
[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?"

Totally Built Linux Distro

https://sourceforge.net/projects/tot...t-linux-distro

Last edited by xlfs-0.2; 11-30-2022 at 04:08 PM.
 
Old 11-23-2022, 02:38 AM   #11
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 176

Rep: Reputation: 41
You haven't posted the error for us to see!

Over like 250+ packages I build i GUARANTEE YOU most README admit that some tests will always fail.

You should do you own c++ test by compiling c++ programs and running them.

And for us: tell us what test fails don't be so vague. That's almost spam it's so vague.
 
Old 11-23-2022, 04:24 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 6,771
Blog Entries: 17

Rep: Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051Reputation: 4051
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.

Last edited by hazel; 11-23-2022 at 04:25 AM.
 
Old 11-23-2022, 07:20 AM   #13
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 3,058

Rep: Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831Reputation: 831
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.
 
Old 12-19-2022, 06:43 AM   #14
RetroGamerCX
LQ Newbie
 
Registered: Sep 2020
Location: Brazil
Distribution: gentoo
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-26-2022, 12:21 AM   #15
xlfs-0.2
Member
 
Registered: Oct 2022
Posts: 176

Rep: Reputation: 41
Nice.

Are you running lfs linux in a linux ubuntu VM host? In win11 VM host? Is that what is going on?

Did you enable linux kernel LVM support when you built the kernel? (specifically kvm video obvious)

Did you check your host VM's video options?

Did a GRUB BOOT menu come up? Is your VM a bootable grub image on GPT? Or are you using somekinda virtual system where GRUB isn't used?

Last edited by xlfs-0.2; 12-26-2022 at 12:23 AM.
 
  


Reply


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
zstd tests failing on decompression only tests fabulousUnicorn Linux From Scratch 6 08-31-2022 11:25 AM
Libstdc++ Configure Error: Link tests are not allowed after GCC_NO_EXECUTABLES rocketfuel Linux From Scratch 2 12-20-2020 04:11 PM
Link tests are not allowed after GCC_NO_EXECUTABLES (Libstdc++-6.2.0) rackel Linux From Scratch 5 07-28-2020 09:37 AM
[SOLVED] LFS 7.9: 6.17 GCC-5.3.0: unexpected failures in gcc tests sudo_maas Linux From Scratch 4 06-23-2016 08:19 AM
mismatched rpm versions of libstdc++ and libstdc++-devel pcweirdo Linux - Software 8 11-29-2004 09:30 AM

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

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