| Summary: |
x32 build of gmp fails |
| Product: |
[Build System, Metadata & Runtime] OE-Core
|
Reporter: |
Richard Purdie <richard.purdie> |
| Component: |
devtools / tool chain | Assignee: |
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)
|
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)