Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497516 - www-client/firefox-26.0 fails to detect libc filename on ia64
Summary: www-client/firefox-26.0 fails to detect libc filename on ia64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: IA64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-08 11:29 UTC by Émeric Maschino
Modified: 2014-05-12 08:18 UTC (History)
2 users (show)

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


Attachments
build.log.tgz (build.log.tgz,414.60 KB, application/x-gzip-compressed-tar)
2014-01-08 11:30 UTC, Émeric Maschino
Details
Build environment (environment,201.62 KB, text/plain)
2014-01-08 11:30 UTC, Émeric Maschino
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2014-01-08 11:29:45 UTC
Hi,

Firefox 10 ESR is currently the only version that ever ran on Gentoo ia64. However, a single patch recently landed in Mozilla repo that fixes the issue in mozjs that was preventing Firefox 17 ESR (bug #487248) and 24 ESR (bug #487250) from running on ia64. Firefox 17 ESR won't be fixed on Gentoo (bug #487248, comment #1) so I tried to emerge latest Firefox ebuild, i.e. 26.0.

I'm not aware of restriction on GCC version, so first tried to emerge Firefox with current stable GCC on ia64, i.e. GCC 4.6.3. Link fails with ld: libxul.so: short data segment overflowed (bug #497514). I then tried to emerge Firefox using GCC 4.7 through package.env keywording. Firefox builds and installs flawlessly but it's barely usable: while I can click and navigate into the various menus and options, I simply can't navigate the web! Entering an URL in the toolbar address and hitting Enter or clicking the "Go" button has no effect at all. Furthermore, it seems that no add-on is loaded as the following errors are reported when Firefox is started from console:

*** ERROR addons.xpi: Failed to process extension changes at startup: Error: Could not open system library: no libc (resource://gre/modules/osfile/osfile_unix_allthreads.jsm:60)
A coding exception was thrown and uncaught in a Task.
Full message: ReferenceError: OS is not defined
Full stack: _openFile@resource://gre/modules/services-common/log4moz.js:603
TaskImpl_run@resource://gre/modules/Task.jsm:233
TaskImpl@resource://gre/modules/Task.jsm:182
Task_spawn@resource://gre/modules/Task.jsm:152
@resource://gre/modules/services-common/log4moz.js:609
@resource://gre/modules/services-common/log4moz.js:614
@resource://gre/modules/services-common/log4moz.js:630
@resource://gre/modules/services-common/log4moz.js:670
App_append@resource://gre/modules/services-common/log4moz.js:443
@resource://gre/modules/services-common/log4moz.js:284
@resource://gre/modules/services-common/log4moz.js:298
MarionetteComponent@resource://gre/components/marionettecomponent.js:43
@resource://gre/modules/XPCOMUtils.jsm:271

However, ldd /usr/bin/firefox shows no missing library:

	linux-gate.so.1 (0xa000000000000000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x2000000000070000)
	librt.so.1 => /lib/librt.so.1 (0x20000000000b4000)
	libdl.so.2 => /lib/libdl.so.2 (0x20000000000d4000)
	libstdc++.so.6 => /usr/lib/gcc/ia64-unknown-linux-gnu/4.7.3/libstdc++.so.6 (0x20000000000ec000)
	libm.so.6.1 => /lib/libm.so.6.1 (0x20000000002c4000)
	libgcc_s.so.1 => /usr/lib/gcc/ia64-unknown-linux-gnu/4.7.3/libgcc_s.so.1 (0x2000000000398000)
	libc.so.6.1 => /lib/libc.so.6.1 (0x20000000003cc000)
	/lib/ld-linux-ia64.so.2 (0x2000000000000000)
	libunwind.so.7 => /usr/lib/gcc/ia64-unknown-linux-gnu/4.7.3/libunwind.so.7 (0x2000000000670000)

Trying to emerge Firefox with GCC 4.7, not through package.env keywording but by switching GCC profile with gcc-config produces the same results.

Please let me know if I can help further.

Thanks,

     Émeric


Here's the output of emerge --info:

Portage 2.2.7 (default/linux/ia64/13.0/desktop/gnome/systemd, gcc-4.6.3, glibc-2.16.0, 3.10.7-gentoo-r1 ia64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.10.7-gentoo-r1-ia64-Madison-with-gentoo-2.2
KiB Mem:    24985776 total,  16252800 free
KiB Swap:     524272 total,    524272 free
Timestamp of tree: Tue, 07 Jan 2014 21:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo my_ebuilds
ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-mtune=itanium2 -O2 -pipe"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mtune=itanium2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/my_ebuilds"
USE="X a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvdr eds encode evo exif fam firefox flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ia64 iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session socialweb spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

www-client/firefox-26.0 was built with the following:
USE="alsa dbus gstreamer jit libnotify minimal pulseaudio startup-notification -bindist -custom-cflags (-custom-optimization) -debug (-pgo) (-selinux) -system-cairo -system-icu -system-jpeg -system-sqlite (-wifi)" LINGUAS="fr -af -ak -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -nso -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW -zu"
CFLAGS="-mtune=itanium2 -pipe -fPIC"
CXXFLAGS="-mtune=itanium2 -pipe -fPIC"


Here's the output of emerge --pqv www-client/firefox-26.0:

[ebuild   R   ] www-client/firefox-26.0  USE="alsa dbus gstreamer jit libnotify minimal pulseaudio startup-notification -bindist -custom-cflags (-custom-optimization) -debug (-pgo) (-selinux) -system-cairo -system-icu -system-jpeg -system-sqlite (-wifi)" LINGUAS="fr -af -ak -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -de -el -en_GB -en_ZA -eo -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -km -kn -ko -ku -lg -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -nso -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW -zu"
Comment 1 Émeric Maschino 2014-01-08 11:30:08 UTC
Created attachment 367380 [details]
build.log.tgz
Comment 2 Émeric Maschino 2014-01-08 11:30:27 UTC
Created attachment 367382 [details]
Build environment
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-01-08 14:37:25 UTC
See also: https://bugs.gentoo.org/show_bug.cgi?id=414297#c21
Comment 4 Émeric Maschino 2014-01-12 13:43:31 UTC
Seems to me that I'm hitting https://bugzilla.mozilla.org/show_bug.cgi?id=812647, right?

     Emeric
Comment 5 Émeric Maschino 2014-01-12 17:18:43 UTC
(In reply to Émeric Maschino from comment #4)
> Seems to me that I'm hitting
> https://bugzilla.mozilla.org/show_bug.cgi?id=812647, right?
> 
>      Emeric

Except that I'm less lucky as I can't event try the debugging steps listed in [1]: nothing happens when I hit the Enter key once opened a new tab in about:about.

BTW, reverting the proposed patch doesn't help. So, either with libSystem.B.dylib or libsystem.B.dylib, I'm still getting the libc error.

     Emeric


[1] https://bugzilla.mozilla.org/show_bug.cgi?id=812647#c6
Comment 6 Émeric Maschino 2014-01-13 07:08:43 UTC
(In reply to Émeric Maschino from comment #5)
>
> BTW, reverting the proposed patch doesn't help. So, either with
> libSystem.B.dylib or libsystem.B.dylib, I'm still getting the libc error.

I was asked to test patch from [1] and this did the trick.

     Émeric


[1] https://bugzilla.mozilla.org/show_bug.cgi?id=878791
Comment 7 Émeric Maschino 2014-05-12 08:18:42 UTC
Fixed upstream in Firefox 29.0.