Letās hope for the best!
No joy!!! It failed GCC tests!!!
While I have your attention!!!
LFS states it will compile to old hardware, like I have. There are four packages that are marked as critical, when it comes to running tests, Binutils, Glibc, GMP, MPFR, GMP and MPFR detects the cpu and sets the -march settings.
Now, my Dell laptop and my Dell desktop have no problem with compiling and installing all the packages, but running tests for GCC will lead to failure and all one can do is reboot and start over,
Do you think it is feasible, to just run the tests that are flagged as critical and skip the others? But if I skip GCC tests, the package will compile and install!!!
To answer that, we need to know what the tests look at?
Does anyone know?
Even if I knew, I would not know what to edit, so all I can do is run the tests for the flagged packages that are critical and see if LFS will boot.
There is probably a program called configure
which, when it runs, looks to see is all the needed libraries and include files are present and it might check gcc compiler options too.
Can you find anything like configure.log
that might show you its output? That might tell you if something is missing thst the compile of gcc needs.
I am guessing.
I donāt know for sure what would happen if you just skip the test and just build gcc. If it fails can you go back?
I think I can bypass the GCC tests, simply because, LFS only say the GCC tests are important and not critical. But on an educational point of view. LFS deems, that new users run the tests!!! Will know in a few days!!!
I searched āLFS GCC test failsā and it seems that many has problemās with testing but they still get a working LFS at the end.
Thanks!!! Will test that theory!!!
So, what were the compiler flags you used with gcc? Itās a sensitive package, and when you use -fomg-over-the-top-optimization it tends to break. Also, have you applied the patches which LFS provides for gcc correctly?
The best way to get gcc to compile is to use -march=native -mcpu=native -O2
and NOTHING ELSE. Additionally, the same goes for the libraries you mentioned and binutils. You also shouldnāt tweak your ldflags into oblivion regarding these packagesā¦ Yes, these can cause breakage as well.
@xahodo
It is not compiling of GCC or any other package that is the issue, it is the running of GCC tests, where my old machines run out of ram and cpu cores. The PC will just stop working and hang!!!
Is it possible to only use J1 (ājobs 1) like in Gentoo? Do you have swap? If itās ram issue that should help. It takes more time thoughā¦
All I can say is Gentoo is a breeze compared to compiling LFS and LFS offers no other special settings, one just untar the tarball and compile the package. Although the distro being used must meet LFS standards.
When you untar it, what do you see?
There must be Makefiles and config files that you can edit to set compile parameters?
There is, but is the makefile to be edited?
You can edit a Makefile. You have to know what you are doing, eg to change compiler options. There may also be config files?
Does the manual say anything about setting compiler options?
Not that I know of!!!
Pages 46 to 48 are about configure and make
All the options seem to be set as arguments to ./configure.
I cant see anything you would want to alter there.
When you ran ./configure did you save its output
You can trap it like this
./configure ..... >& configure.out
or maybe it automatically makes a configure.log file?
Similarly with make you need to trap thd output and study it
make .... >& make.out
That is the usual way C programs are builtā¦ nothing special.
Get into the habit of trapping the output and checking it .
Then you may find why it doesnt compile properly.
For example, if there is an error or warning in the configure output, it probably means that something is missing. You need to identify that and install some package, before going on to the make step.
This is the gcc-14.2.0 make file!!!
My machine will compile GCC and the tests have been compiled, the ? is, do I skip the tests.
I already know the machine will fail the tests, so do I skip, and hope LFS will boot? I for one, see no other option!!!
Go! Tests are forā¦