Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362237 - net-libs/xulrunner-2.0 fails to configure on arm (configure: error: Unexpected pointer size)
Summary: net-libs/xulrunner-2.0 fails to configure on arm (configure: error: Unexpecte...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
: 374327 (view as bug list)
Depends on:
Blocks: 360427
  Show dependency tree
Reported: 2011-04-05 21:22 UTC by Markus Meier
Modified: 2011-08-13 17:31 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---

net-libs:xulrunner-2.0:20110405-083217.log (net-libs:xulrunner-2.0:20110405-083217.log,23.23 KB, text/plain)
2011-04-05 21:22 UTC, Markus Meier
config.log (config.log,56.38 KB, text/plain)
2011-04-05 21:23 UTC, Markus Meier
respect-cflags-on-arm.patch (respect-cflags-on-arm.patch,3.25 KB, text/plain)
2011-08-06 16:06 UTC, Raúl Porcel (RETIRED)
libffi-arm-vfp.patch (libffi-arm-vfp.patch,416 bytes, patch)
2011-08-06 16:11 UTC, Raúl Porcel (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2011-04-05 21:22:45 UTC
Created attachment 268645 [details]

* Package:    net-libs/xulrunner-2.0
 * Repository: gentoo
 * Maintainer:
 * USE:        alsa arm crashreporter dbus elibc_glibc ipc kernel_linux libnotify startup-notification test userland_GNU webm
 * FEATURES:   sandbox userpriv usersandbox
>>> Unpacking source...
checking for vpx/vpx_decoder.h... yes
checking for vpx_codec_dec_init_ver in -lvpx... yes
checking for alsa... yes
checking MOZ_ALSA_CFLAGS... -I/usr/include/alsa  
checking MOZ_ALSA_LIBS... -lasound  
checking for java... :
checking for javac... :
checking for jar... :
checking for tar archiver... checking for gnutar... no
checking for gtar... no
checking for tar... tar
checking for wget... checking for wget... wget
checking for conic... checking for valid optimization flags... yes
checking size of int *... 0
configure: error: Unexpected pointer size

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-libs/xulrunner-2.0/work/mozilla-2.0/config.log
 * ERROR: net-libs/xulrunner-2.0 failed (configure phase):
 *   econf failed
 * Call stack:
 *, line   56:  Called src_configure
 *   environment, line 5959:  Called econf
 *, line  557:  Called die
 * The specific snippet of code:
 *                      die "econf failed"

Portage (default/linux/arm/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, armv5tel)
System uname: Linux-
Timestamp of tree: Sun, 03 Apr 2011 18:00:01 +0000
ccache version 3.1.4 [disabled]
app-shells/bash:     4.2_p8
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.5, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.38 (sys-kernel/linux-headers)
CFLAGS="-O2 -march=armv5te -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=armv5te -pipe"
FEATURES="assume-digests binpkg-logs collision-protect distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dts dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv jpeg lcms libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell ssl startup-notification svg sysfs tcpd test threads tiff truetype udev unicode usb vorbis xcb xml xorg xulrunner xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2 php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev omapfb dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Comment 1 Markus Meier gentoo-dev 2011-04-05 21:23:18 UTC
Created attachment 268647 [details]
Comment 2 William Throwe 2011-06-13 00:15:18 UTC
Found an upstream bug:

The build system hardcodes -mfloat-abi=softfp .  Unsurprisingly, this doesn't work.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2011-06-24 15:03:34 UTC
The fix for this is adding  

mozconfig_annotate '' --with-cpu-arch=armv4t

for xulrunner.

On <armv6 we still have bug 372199
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2011-08-06 16:06:01 UTC
Created attachment 282329 [details]

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.
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2011-08-06 16:08:01 UTC
(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.
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2011-08-06 16:11:03 UTC
Created attachment 282335 [details, diff]

After applying the above patch, we then run into this issue reported upstream:

Apply for both xulrunner and firefox.
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2011-08-06 16:15:37 UTC
*** Bug 374327 has been marked as a duplicate of this bug. ***
Comment 8 Raúl Porcel (RETIRED) gentoo-dev 2011-08-06 17:19:47 UTC
(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:
> Apply for both xulrunner and firefox.

Wrong upstream URL, this is the correct one:
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2011-08-13 17:31:16 UTC
Patches applied