Re: cross-compiling with different bitness

  • From: Alex Bradbury <asb@xxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 19 Jul 2012 15:44:21 +0100

On 16 July 2012 23:21, Mike Pall <mike-1207@xxxxxxxxxx> wrote:
> François Perrad wrote:
>> but it fails with i386 as host & x86_64 as target
>> (the package gcc-multilib (lib64) is installed)
>> $ make HOST_CC="gcc -m64" CROSS="x86_64-unknown-linux-uclibc-"
> Errm ... an x86 kernel cannot execute x64 binaries.
> And, yes, you need to be able to run a 64 bit binary to build for
> a 64 bit target.

For buildroot, they're hoping to be able to cross build from any given
host for any given target. Is there any hope of a supported build
procedure that will allow luajit to be built on an arbitrary host for
an arbitrary target?


Other related posts: