Bug 5783

Summary: x32 build of gmp fails
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: devtools / tool chainAssignee: Laurentiu Palcu <laurentiu.palcu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandrux.palalau, meta.mr.watcher, meta.watcher, sgw
Version: 1.6   
Target Milestone: 1.6 M3   
Hardware: x86   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2014-02-01 11:30:07 UTC
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)
Comment 1 Laurentiu Palcu 2014-02-11 15:00:15 UTC
*** Bug 4529 has been marked as a duplicate of this bug. ***
Comment 3 Alexandru Palalau 2014-02-12 10:36:21 UTC
Verified on master branch.
Commit ID: b70a10ca3ee4a0add90d387e2c8288e531aaa47c