If you add to local.conf: DEFAULTTUNE = "x86-64-x32" baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) or 'INVALID'), True) or 'lib'}" MACHINE = "qemux86-64" (i.e. an x32 build) and then bitbake gmp, it fails with | checking for assembler byte directive... .byte | checking how to define a 32-bit word... .long | checking if .align assembly directive is logarithmic... no | checking if the .align directive accepts an 0x90 fill in .text... yes | checking size of void *... (cached) 4 | checking size of unsigned short... (cached) 2 | checking size of unsigned... 4 | checking size of unsigned long... (cached) 4 | checking size of mp_limb_t... 4 | configure: error: Oops, mp_limb_t is 32 bits, but the assembler code | in this configuration expects 64 bits. | You appear to have set $CFLAGS, perhaps you also need to tell GMP the | intended ABI, see "ABI and ISA" in the manual. | Configure failed. The contents of all config.log files follows to aid debugging | ERROR: oe_runconf failed | WARNING: exit code 1 from a shell command. | ERROR: Function failed: do_configure (log file is located at /media/build1/poky/build/tmp/work/x86_64_x32-poky-linux-gnux32/gmp/5.1.1-r0/temp/log.do_configure.13230)
*** Bug 4529 has been marked as a duplicate of this bug. ***
Patch merged: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=f7b44fe6db1895aa429962b47c0b9b1c9fecfd82
Verified on master branch. Commit ID: b70a10ca3ee4a0add90d387e2c8288e531aaa47c