#2461: Minor changes needed in Toolchain Technical Notes
--------------------------------+-------------------------------------------
Reporter: ch...@… | Owner: lfs-b...@…
Type: task | Status: new
Priority: normal | Milestone:
Component: Book | Version: SVN
Severity: normal | Keywords:
--------------------------------+-------------------------------------------
A few parts of page 5.2 are outdated thanks to the change in the build
method. One of the main issues is Pass 1 of GCC and Binutils involves
cross-compiling them, so they are now installed not as "ld" or "gcc", but
as /tools/bin/$LFS_TGT-[program]. The main issue this causes with the text
is when it discusses building Glibc, and talks about how the various tools
are found, and says:
"The compiler is generally not an issue since Glibc will always use the
gcc found in a PATH directory."
This no longer applies since /tools/bin/gcc does not yet exist at that
point. Also, the sample output from GCC's configure is slightly incorrect,
as the target triplet (and by extension the subdir in /tools that binutils
creates) is modified. Here's what I get:
{{{
checking what assembler to use... /tools/i686-lfs-linux-gnu/bin/as
checking what linker to use... /tools/i686-lfs-linux-gnu/bin/ld
}}}
Similarly...
"After the run of configure, check the contents of the config.make file in
the glibc-build directory for all important details. Note the use of
CC="gcc -B/tools/bin/" to control which binary tools are used and the use
of the -nostdinc and -isystem flags to control the compiler's include
search path."
Of course the references to -nostdinc and -isystem are still accurate, but
the "gcc -B/tools/bin/" no longer appears there. I have:
{{{
CC = i686-lfs-linux-gnu-gcc
}}}
Finally, the description of the toolchain adjustment mentions installing a
new linker, but that is no longer done - only the specs file is changed.
I'm not quite sure exactly how all of this information should be changed.
For instance, the reference to "gcc -B/tools/bin/" (the important part of
course being the "-B/tools/bin/") is used specifically as an example of
how Glibc does not use toolchain defaults, but that is not used with the
cross-compiler.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2461>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page