| Summary: | Update site/arm-common to allow building recent version of glib-2.0 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | tf <tf+bugs.yocto> | ||||
| Component: | core | Assignee: | Saul Wold <sgw> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | jessica.zhang, Martin.Jansa, meta.mr.watcher, meta.watcher, song.liu | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 1.3 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | (P1) | ||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | --- | |||||
| Attachments: |
|
||||||
Thanks for the patch, can you send this direct to the openembedded-core@lists.openembedded.org mailing list? We will be updated glib-2.0 at somepoint. glib-2.32.1 wasn't failing, but now when upgrading to glib-2.32.2 it does, so I'll test this patch now | checking for guint32... yes | checking alignment of guint32... configure: error: in `/OE/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/glib-2.0/glib-2.0-1_2.32.2-r0/glib-2.32.2': | configure: error: cannot compute alignment of guint32 | See `config.log' for more details conftest.c: In function 'main': conftest.c:218:12: error: size of array 'test_array' is negative conftest.c:218:12: error: storage size of 'test_array' isn't constant conftest.c:218:12: warning: unused variable 'test_array' [-Wunused-variable] configure:28524: $? = 1 This patch has been applied along with patches for all arches http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=feee16b82800231d88ff91f60757b791d4f33d62 |
Created attachment 495 [details] Patch to add glib type alignment values to arm-common Most recent releases of glib-2.0 (from 2.32 onwards, iirc) check for alignment of guint32, guint64 and unsigned long at configure time, so these need to be in the site file. The version of glib currently in Yocto does not needs this, but updating the site file will save someone debugging div0 crashes in glib when Yocto decides to update glib-2.0. Patch to update arm-common is attached.