Hi,
On 12/03/2017 02:41, Jeremy Huntwork wrote:
Hello,
I was just going through the latest book again as a reference/review.
Nice job on keeping it up to date and valid!
There were just a couple of small things I noticed which could
possibly be improved.
In section 5.5, Gcc pass 1, the following switch is not explained:
--with-glibc-version=2.11
In section 5.8, I'm curious why --host= was chosen for the libstdc++
build instead of manually specifying the compiler and utils to use as
is done for binutils pass2 and gcc pass2. I imagine at that stage it
would be better to let the build script assume it is compiling fully
natively with a manually specified compiler and utils instead of
possibly trying to do something special with cross-compiling. I'm sure
everything currently works, it just seems inconsistent and possibly
open to unwanted effects. If there is a strong reason for using the
--host switch, a note about why would be helpful.
It's also not explained why libstdc++ is done separately now before
gcc pass 2. From going through it, it seems that with version 6.3.0
it's a hard requirement, but a brief note about why it is built
separately beforehand instead of just later as part of gcc pass 2
could be helpful.
gcc pass 2 needs libstdc++ for building (the gcc code is written in
C++). So libstdc++ is needed before gcc-pass2.
libstdc++ is not done as part of gcc-pass1 because it needs glibc, and
we do not want it to be linked to the host glibc.
This is also the reason for the --host switch. We are still
"cross-compiling" at this stage. libstdc++ is more part of gcc-pass1
than gcc-pass2
There was another thing I had noticed in the stable book, about the
names of the gcc headers to adjust for the startfile prefixes, but it
appears you've fixed it already for the development one, so good job!
Regards
Pierre
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page