Summary: | net-libs/xulrunner-2.0 fails to configure on arm (configure: error: Unexpected pointer size) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markus Meier <maekke> |
Component: | Current packages | Assignee: | Mozilla Gentoo Team <mozilla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arm, dlan, eric225125, siarhei.siamashka, steev, wtt6 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | ARM | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 360427 | ||
Attachments: |
net-libs:xulrunner-2.0:20110405-083217.log
config.log respect-cflags-on-arm.patch libffi-arm-vfp.patch |
Description
Markus Meier
2011-04-05 21:22:45 UTC
Created attachment 268647 [details]
config.log
Found an upstream bug: https://bugzilla.mozilla.org/show_bug.cgi?id=632915 The build system hardcodes -mfloat-abi=softfp . Unsurprisingly, this doesn't work. The fix for this is adding mozconfig_annotate '' --with-cpu-arch=armv4t for xulrunner. On <armv6 we still have bug 372199 Created attachment 282329 [details]
respect-cflags-on-arm.patch
This patch works for both firefox and xulrunner, so apply for both. The problem is that the mozilla buildsystem expects a --with-cpu-arch parameter _ONLY ON ARM_ and depending on the value it mangles the CFLAGS accordingly. If no value is passed, it defaults to armv7, therefore it doesn't work on armv5(maekke's subarchitecture).
So in our case, since we don't like packages mangling CFLAGS, we simply remove this stupid thing.
(In reply to comment #4) > Created attachment 282329 [details] > respect-cflags-on-arm.patch > Upstream isn't going to like this patch, so forget about sending it. Debian builds for armv4t and it already removes this stuff, Ubuntu builds for armv7 only, so they don't have this issue, thats why this stupid thing is present. Created attachment 282335 [details, diff] libffi-arm-vfp.patch After applying the above patch, we then run into this issue reported upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=632915 Apply for both xulrunner and firefox. *** Bug 374327 has been marked as a duplicate of this bug. *** (In reply to comment #6) > Created attachment 282335 [details, diff] > libffi-arm-vfp.patch > > After applying the above patch, we then run into this issue reported upstream: > https://bugzilla.mozilla.org/show_bug.cgi?id=632915 > > Apply for both xulrunner and firefox. Wrong upstream URL, this is the correct one: https://bugzilla.mozilla.org/show_bug.cgi?id=644136 Patches applied |