On Thu, Jan 17, 2019 at 05:44:08PM -0500, jonetsu wrote:
> On Thu, 17 Jan 2019 10:36:33 -0500
> jonetsu <[email protected]> wrote:
>
> > make: gcc: Command not found
>
> Confirmed. It now works. Two modifications were made since last
> time. One is about a gcc directory that did not get erased when
> supposed to. The other is about the gcc 2nd pass configure command
> that had the following statements each on their own line in the build
> script:
>
> CC=$LFS_TGT-gcc
> CXX=$LFS_TGT-g++
> AR=$LFS_TGT-ar
> RANLIB=$LFS_TGT-ranlib
>
> I mean really on their own line, w/o the trailing '\' on each line.
>
> Which one of the two caused the problem ? I don't know. Or maybe both.
>
Yes indeed. In an otherwise-correct build, not removing the build
directory will cause strange results. But setting a variable such
as CC in your example will only last for that line, so it will not
be in effect when CXX is set in that example.
One of the things to learn from building LFS is that you can
override some variables used in a configure script by setting them
in fromt of, and in the same command as, the configure script.
This is also why, no matter how well somebody knows how to script,
we recommend a manual build until you have successfully booted LFS.
Of course, doing that would have not highlighted the problem in
quite the same way. But technically you deviated from the book even
in your earlier manual build if you did not use the backslash.
And please, stop top-posting in your replies.
ĸen
--
In my seventh decade astride this planet, and as my own cells degrade,
there are some things I cannot do now: skydiving, marathon running,
calculus. I couldn't do them in my 20s either, so no big loss.
-- Derek Smalls, formerly of Spinal Tap
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style