Bug 5783 - x32 build of gmp fails
Summary: x32 build of gmp fails
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.6
Hardware: x86 x86
: Medium+ normal
Target Milestone: 1.6 M3
Assignee: Laurentiu Palcu
QA Contact:
URL:
Whiteboard:
: 4529 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-01 11:30 UTC by Richard Purdie
Modified: 2014-02-12 10:36 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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