On 31/12/2018 8:22 am, Michele Bucca wrote:
Il 28 dic 2018 4:23 AM, "Kent Cooper" <[email protected]
<mailto:[email protected]>> ha scritto:
So now I'm on chapter 5.10 of book version 8.3, trying to build
the second pass of GCC but I keep running into the same errors
after 3 complete restarts. I can
get up to 5.9 without a hitch, but there is one major thing I
don't understand:
Is it imperative to delete $LFS/sources/gcc-8.2.0 after completing
chapter 5.8? Or should it be left there so that libstdc++-v3
doesn't need to be recompiled?
If I delete it, I get roughly 1.5 hours into chapter 5.10 before I
encounter the same problem described here
<http://lists.linuxfromscratch.org/pipermail/lfs-support/2015-August/048881.html>:
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking for x86_64-pc-linux-gnu-gcc...
/mnt/lfs/sources/gcc-8.2.0/gcc/xgcc -B/mnt/lfs/sources/gcc-8.2.0/gcc/
-B/tools/x86_64-pc-linux-gnu/bin/ -B/tools/x86_64-pc-linux-gnu/lib/ -isystem
/tools/x86_64-pc-linux-gnu/include -isystem /tools/x86_64-pc-linux-gnu/sys-include
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... configure: error: in
`/mnt/lfs/sources/gcc-8.2.0/build/x86_64-pc-linux-gnu/libstdc++-v3':
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> make[1]: *** [configure-target-libstdc++-v3] Error 1
> make[1]: Leaving directory `/mnt/lfs/sources/gcc-8.2.0/build'
> make: *** [all] Error 2
What architecture is your host? is your system 32bit or 64bit?
try to run this
echo "int main(){}" > dummy.c
$TGT_LFS-gcc dummy.c
readelf -l a.out | grep ': /tools'
what is the output?
Hi Michelle, and thanks for trying to help! :-) I'm past those problems now, but
I thought I'd answer your questions anyway. I'm running a x86_64 Kubuntu VM on
Windows 10 Pro 64 bit, and the compilation test from the book was successfully
compiling, which was the most confusing thing about the error. Not sure why I
forgot to mention that in my email, but apologies for the confusion :-)
I know it's a bit late now but Merry Christmas and Happy New Year to all! Let's
hope 2019 is a better year for everyone!
--
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