Bug 2369 - Update site/arm-common to allow building recent version of glib-2.0
Summary: Update site/arm-common to allow building recent version of glib-2.0
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard: (P1)
Depends on:
Blocks:
 
Reported: 2012-04-25 12:56 UTC by tf
Modified: 2012-05-14 18:22 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
Patch to add glib type alignment values to arm-common (944 bytes, patch)
2012-04-25 12:56 UTC, tf
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tf 2012-04-25 12:56:03 UTC
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.
Comment 1 Saul Wold 2012-04-25 15:56:53 UTC
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.
Comment 2 Martin Jansa 2012-05-02 07:29:20 UTC
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
Comment 3 Saul Wold 2012-05-08 18:43:19 UTC
This patch has been applied along with patches for all arches


http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=feee16b82800231d88ff91f60757b791d4f33d62