Pierre Labastie wrote:
On 31/01/2018 19:55, Thomas Trepl wrote:
Am Mittwoch, den 31.01.2018, 19:16 +0100 schrieb Pierre Labastie:
You may want to try adding two flags to binutils' configure:
--enable-64-bit-bfd
--enable-targets=x86-64
--enable-targets=x86_64 results in a configure error but the --enable-
64-bit-bfd did work.
You guys are so ingenious!
Thanks, I'm not sure I deserve that...
What did you do to discover this?
In binutils doc, namely
https://sourceware.org/binutils/docs-2.29/as/i386_002dOptions.html
configure --help doesn't show those switches.
That's the same problem as with gcc: there are configure scripts accepting
different option in diferent subdirectories.
change to the "gas" subdirectory, and try "./configure --help"
or maybe also to the "bfs" subdir, etc
Grub compiles fine with
that.
Nice! The doc was telling to add the x86-64 target, but it seems overkill in
your case.
I looked at the code and it is producing x86_64 code. That's OK if you
are running a 32-bit system on a 64-bit capable system, but not on a real
32-bit system. It does not matter though if the code is never actually
run, but it's possible that it could generate an illegal instruction
exception.
I do not have a 32-bit system any more, so I cannot test LFS/BLFS 32-bit
versions. We technically support 32-bit systems as a community, but must
relay on others for testing and bug reports.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page