This content has been marked as final. Show 2 replies
Thanks for reporting this problem. I shall check this out and will get back to you.
Thanks & Regards,
This issue lacks in the interwork of binutils and GCC.
GCC don't want to support cross compiling from 32/32 to 64 bit and therefore Binutils don't see the need to compile ld as a 64 bit linker on a 32 bit system.
If I guess right, then you need an other 32 bit system than linux to compile it for 64 bit.
Maybe with BSD it is possible to handle that isue.
I think it is best to take a yet 64 bit compiled system and compile it there.
(knoppix seams to be a verry good development system)
Even though you can not run 64 bit code on a system with a 32 bit kernel like the other way around even if the CPU can.
That means to compile a minimum boot system with terminal including GCC in 64 bit without knowing if there is a compilation error because you can not run any test and checks of GCC and ld, the kernel, systools, shell, ... .
Maybe LFS has an answer.