Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518494 - =www-client/firefox-31.0 - MediaDecoderReader.cpp:(.text._ZN7mozilla23AudioQueueMemoryFunctorclEPv[_ZN7mozilla23AudioQueueMemoryFunctorclEPv]+0x7a): undefined reference to `mozilla::AudioQueueMemoryFunctor::MallocSizeOf(void const*)'
Summary: =www-client/firefox-31.0 - MediaDecoderReader.cpp:(.text._ZN7mozilla23AudioQu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-29 15:12 UTC by Alex Turbov
Modified: 2014-08-01 17:48 UTC (History)
1 user (show)

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


Attachments
www-client:firefox-31.0:20140730-030447.log (www-client:firefox-31.0:20140730-030447.log,635.79 KB, text/plain)
2014-07-30 03:56 UTC, Yuki N.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Turbov 2014-07-29 15:12:13 UTC
It looks like some internal static(?) library tried to be linked w/ a dynamic one.

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: ../../../content/media/MediaDecoderReader.o: warning: relocation against `_ZN7mozilla23AudioQueueMemoryFunctor12MallocSizeOfEPKv' in readonly section `.text._ZN7mozilla23AudioQueueMemoryFunctorclEPv[_ZN7mozilla23AudioQueueMemoryFunctorclEPv]'.
../../../content/media/MediaDecoderReader.o: In function `mozilla::AudioQueueMemoryFunctor::operator()(void*)':
MediaDecoderReader.cpp:(.text._ZN7mozilla23AudioQueueMemoryFunctorclEPv[_ZN7mozilla23AudioQueueMemoryFunctorclEPv]+0x83): undefined reference to `mozilla::AudioQueueMemoryFunctor::MallocSizeOf(void const*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: ../../../content/media/MediaDecoderReader.o: relocation R_X86_64_PC32 against undefined symbol `_ZN7mozilla23AudioQueueMemoryFunctor12MallocSizeOfEPKv' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: final link failed: Bad value

Reproducible: Always
Comment 1 Manuel Rüger (RETIRED) gentoo-dev 2014-07-29 15:19:44 UTC
Please add complete build.log and emerge --info, too.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-29 18:15:45 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 3 Yuki N. 2014-07-30 03:55:10 UTC
emerge --info '=www-client/firefox-31.0::mozilla' --verbose=n
Portage 2.2.10 (default/linux/x86/13.0/desktop/kde/systemd, gcc-4.9.1, glibc-2.19-r1, 3.15.0-pf4 i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.15.0-pf4-i686-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     7711512 total,   2747816 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of tree: Wed, 30 Jul 2014 02:00:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1::OSSDL
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3, 4.9.1::OSSDL
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo stuff mva kde qt multimedia mozilla ROKO__ OSSDL local
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -Wno-all -fno-stack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/udev/rules.d/40-usb_modeswitch.rules /etc/udev/rules.d/60-cdrom_id.rules /etc/usb_modeswitch.conf /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -Wno-all -fno-stack-protector"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--verbose --keep-going --quiet-build --quiet-fail --fail-clean --quiet-unmerge-warn --buildpkg"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.utf8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="lbunzip2 -n9"
PORTAGE_BZIP2_COMMAND="lbzip2 -n9"
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/stuff /var/lib/layman/mva /var/lib/layman/kde /var/lib/layman/qt /var/lib/layman/multimedia /var/lib/layman/mozilla /var/lib/layman/ROKO__ /var/lib/layman/OSSDL /usr/local/portage"
USE="X aac acl acpi alsa avx avx2 bash-completion berkdb branding bs2b bzip2 cairo cli cracklib cups custom-cflags custom-optimization cxx dbus declarative dri dri3 dts dvd dvdr emboss enca encode exif fam ffmpeg firefox flac fortran gdbm gif gpm gtk iconv ipv6 jit jpeg kde kipi lcms ldap libnotify lto luajit mac mad mdnsresponder-compat mmx mmxext mng modules mp3 mp4 mpeg musepack ncurses nls nptl offensive ogg opengl openmp opus pam pango pch pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline sdl session sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg symlink systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis wifi wxwidgets x264 x86 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel usb-audio" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel" 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, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 4 Yuki N. 2014-07-30 03:56:42 UTC
Created attachment 381862 [details]
www-client:firefox-31.0:20140730-030447.log
Comment 5 Yuki N. 2014-07-30 04:41:12 UTC
Firefox 30 build and works fine with gcc 4.9.1;
firefox 31 build and works fine with gcc 4.8.3 and won't compile with gcc 4.9.1.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-30 14:18:26 UTC
Can one of you test with ld.gold instead of ld.bfd?  

Upstream likes to try and force gold on the build system but we've made adjustments so that a gentoo system's global preference is used instead.  I'm just wondering if this relates.
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-07-30 14:58:48 UTC
I see this failure both with ld.gold and ld.bfd

# emerge --info
Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome, gcc-4.9.0, glibc-2.19-r1, 3.15.6 x86_64)
=================================================================
System uname: Linux-3.15.6-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    32924868 total,   6265564 free
KiB Swap:   33552380 total,  33552352 free
Timestamp of tree: Wed, 30 Jul 2014 04:00:01 +0000
ld GNU gold (GNU Binutils 2.24) 1.11
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.8, 3.2.5-r3, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
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.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            3.3.6-r1, 4.6.4, 4.7.4, 4.8.3, 4.9.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Comment 8 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-30 15:47:37 UTC
Seems upstream bug https://bugzilla.mozilla.org/show_bug.cgi?id=999496 might match.  Please test patch https://hg.mozilla.org/mozilla-central/raw-rev/1f10a8067853 and see if it helps??
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-07-31 04:05:38 UTC
(In reply to Ian Stakenvicius from comment #8)
> Seems upstream bug https://bugzilla.mozilla.org/show_bug.cgi?id=999496 might
> match.  Please test patch
> https://hg.mozilla.org/mozilla-central/raw-rev/1f10a8067853 and see if it
> helps??

With the patch, firefox-31.0 builds successfully (at least when using ld.gold)
Comment 10 Alex Turbov 2014-07-31 14:56:37 UTC
(In reply to Ian Stakenvicius from comment #8)
> Seems upstream bug https://bugzilla.mozilla.org/show_bug.cgi?id=999496 might
> match.  Please test patch
> https://hg.mozilla.org/mozilla-central/raw-rev/1f10a8067853 and see if it
> helps??

work w/ ld.bfd as well
Comment 11 Ian Stakenvicius (RETIRED) gentoo-dev 2014-07-31 14:57:43 UTC
Sweet -- i'm doing regression testing to make sure it didn't break anything with gcc-4.7, and if that passes clean I'll have it in the tree in a couple of hours.