On Mon, Jul 17, 2017 at 08:40:35PM +0000, Phil Rigby wrote:
> Hi everyone, trying to build a LFS system for the first time, followed the
> handbook up to the point of GCC, running the "make" and getting this:
Hi Phil,
it might help if you mention which version of the book you are using
(I'll assume 8.0), although this error is so uncommon that I suspect
you have done something wrong.
Also, we normally jsut call it the book - to me 'the handbook'
sounds very BSD-ish : nothing wrong with that, but our books are
only ever a snapshot of what we thought was good at the time.
>
>
> ...
>
> ...
>
> ...
>
I wonder if the initial error was somewhere before this ? One of
the matches google found was caused by omitting libgmp.la,
libmpfr.la, libmpc.la - see version-check.sh and library-check.sh at
the bottom of section 2.2.
> else \
> set -e; for ml in `cat fixinc_list`; do \
> sysroot_headers_suffix=`echo ${ml} | sed -e 's/;.*$//'`; \
> multi_dir=`echo ${ml} | sed -e 's/^[^;]*;//'`; \
> fix_dir=include-fixed${multi_dir}; \
> if ! true && test ! -d `echo
> /mnt/lfs${sysroot_headers_suffix}/mnt=/lfs/tools/include | sed -e :a -e
> 's,[^/]*/\.\.\/,,' -e ta`; then \
> echo The directory that should contain system headers does not exist:
> >&2 ; \
This part looked worrying to me, but only because I don't read my
logs line-by-line if I don't need to :)
> echo " `echo /mnt/lfs${sysroot_headers_suffix}/mnt=/lfs/tools/include
> | sed -e :a -e 's,[^/]*/\.\.\/,,' -e ta`" >&2 ; \
BUT, I see that mine (in 8.0, gcc-6.3.0) was slightly different:
if ! true && test ! -d `echo /mnt/lfs${sysroot_headers_suffix}/tools/include |
sed -e :a -e
's,[^/]*/\.\.\/,,' -e ta`; then \
echo The directory that should contain system headers does not
exist: >&2 ; \
Specifically, mine echoes
/mnt/lfs${sysroot_headers_suffix}/tools/include
but yours echoed
/mnt/lfs${sysroot_headers_suffix}/mnt=/lfs/tools/include
I would expect sysroot_headers_suffix to not be set at this stage,
so mine just references /mnt/lfs/tools/include, but yours is trying
to reference /mnt/lfs/mnt=/lfs/tools/include : that looks like
garbage somewhere in the configure options. Or perhaps a typo.
I can understand why you try to change things to fix it yourself,
but for LFS itself, particularly on released versions of the book,
the instructions in the book should be good enough to get it to
build. When you have succeeded once in doing it by the book, and if
you then use parts of BLFS, it is of course fine to try changing the
instructions - with my usual comment that if it breaks you get to
keep both pieces.
[...]
> make[3]: Entering directory '/mnt/lfs/sources/gcc-6.3.0/build/prev-gcc'
> make[3]: *** No rule to make target 'real-install-headers-tar'. Stop.
I suspect that when things go wrong, the build often falls through
until it tries to make that target. So other errors, such as what
I mentioned at the start, might also end with that same error
message. But running the checks on the host system requirements is
still important, it can save a lot of broken partial builds.
Summary:
Please check the host system requirements, just in case. Then check
you have set the variables correctly (4.4, 5.3). then, using
freshly untarred source, retry gcc pass 1 (or start over if some of
your variables were wrongly set).
ĸen
--
I live in a city. I know sparrows from starlings. After that
everything is a duck as far as I'm concerned. -- Monstrous Regiment
--
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