Re: cross-compiling with different bitness

  • From: Mike Pall <mike-1207@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 17 Jul 2012 00:21:47 +0200

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.

--Mike

Other related posts: