[lfs-support] Error Compiling GCC pass 2

Keith Howard kbhoward1975 at gmail.com
Tue Apr 12 08:23:32 PDT 2016

Hi Ken,

Thanks for responding and thanks for your insight.

So, on first inspection o f Gnu ld (first pass):
'file -L /tools/bin/x86_64-lfs-linux-gnu-ld'

/tools/bin/x86_64-lfs-linux-gnu-ld: **ELF 32-bit** LSB executable, Intel
80386, version 1 (SYSV), dynamically linked, interpreter
/lib/ld-linux.so.2, for GNU/Linux 2.6.32,
BuildID[sha1]=7c0c43bcf162ed49211b7a13579955140b891b5a, not stripped

Whoa!  It's 32 bit!  What the heck did I do!  <grumble>
So, clearly, I'll have to go back and compile those tools again.

Can anyone give me any tips on how to avoid this?
I just copied and pasted from the PDF to my console....I understand some of
this, but.....when I get into trouble I dunno what to do.

It seems I should set an environment variable or something for the
archetecture, no?
Is that  'cflags' or -m64 ?

Again, many thanks!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20160412/40ed3360/attachment.html>

More information about the lfs-support mailing list