Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 475980 - >=www-client/firefox-17.0.x >=mail-client/thunderbird-17.0.x on ARM: undefined references
Summary: >=www-client/firefox-17.0.x >=mail-client/thunderbird-17.0.x on ARM: undefine...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 486218 486492 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-06 18:39 UTC by Mikhail Kurinnoi
Modified: 2017-08-26 17:57 UTC (History)
5 users (show)

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


Attachments
Complete build log. (thunderbird-17.0.7.log.bz2,273.27 KB, application/x-bzip2)
2013-07-06 18:40 UTC, Mikhail Kurinnoi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Kurinnoi 2013-07-06 18:39:29 UTC
Compiled and work fine with default CFLAGS/CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard", but as soon as I changed the CFLAGS/CXXFLAGS on
CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard" and rebuild toolchain>system>world - have this issue with thunderbird-17.0.7 (all other packages recompiled successfully).

Reproducible: Always




Portage 2.1.12.2 (default/linux/arm/13.0/armv7a/desktop, gcc-4.6.3, glibc-2.15-r3, 3.0.8+ armv7l)
=================================================================
System uname: Linux-3.0.8+-armv7l-ARMv7_Processor_rev_0_-v7l-with-gentoo-2.2
KiB Mem:      969608 total,    195100 free
KiB Swap:   10239996 total,  10207956 free
Timestamp of tree: Fri, 28 Jun 2013 20:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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="-O2 -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
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"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.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 --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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses neon networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell sqlite ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" 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 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="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev" 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, USE_PYTHON
Comment 1 Mikhail Kurinnoi 2013-07-06 18:40:07 UTC
Created attachment 352738 [details]
Complete build log.
Comment 2 Jory A. Pratt gentoo-dev 2013-09-28 16:00:44 UTC
*** Bug 486218 has been marked as a duplicate of this bug. ***
Comment 3 Jory A. Pratt gentoo-dev 2013-09-29 17:54:03 UTC
*** Bug 486492 has been marked as a duplicate of this bug. ***
Comment 4 leonbaum2 2013-11-04 00:35:53 UTC
I ran into this bug as well.  Is anything filed upstream with Mozilla?
Comment 5 Rick Farina (Zero_Chaos) gentoo-dev 2013-11-19 17:01:20 UTC
We should have a check for this in the ebuild but it looks like if you are building with CFLAGS="-mfpu=neon" then it requires media-libs/libpng[neon]
Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2013-11-19 18:03:36 UTC
Looks like <firefox-25.0-r1 can't build even with my suggested fix.
Comment 7 Rainer Herbers 2013-11-19 18:40:37 UTC
(In reply to Rick Farina (Zero_Chaos) from comment #6)
> Looks like <firefox-25.0-r1 can't build even with my suggested fix.

Same Bug in firefox-24
Bug seems to be fixed in firefox-25

I emerged www-client/firefox-25.0-r1 without problems.
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=armv7-a -mfpu=neon-vfpv4 -ftree-vectorize -mfloat-abi=hard"
and with "neon" useflag



Compare the last lines in mozilla-release/gfx/ycbcr/moz.build

firefox-24.0.source.tar.bz2:

elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly',
                           'FreeBSD', 'NetBSD', 'OpenBSD'):
    CPP_SOURCES += [
        'yuv_row_posix.cpp',
    ]
else:
    CPP_SOURCES += [
        'yuv_row_other.cpp',
    ]

if CONFIG['OS_TEST'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
    CPP_SOURCES += [
        'yuv_convert_arm.cpp',
    ]

LIBRARY_NAME = 'ycbcr'


firefox-25.0.source.tar.bz2:

elif CONFIG['OS_ARCH'] in ('Linux', 'SunOS', 'Darwin', 'DragonFly',
                           'FreeBSD', 'NetBSD', 'OpenBSD'):
    CPP_SOURCES += [
        'yuv_row_posix.cpp',
    ]
else:
    CPP_SOURCES += [
        'yuv_row_other.cpp',
    ]

if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
    ASFILES += [
        'yuv_row_arm.s',
    ]
    CPP_SOURCES += [
        'yuv_convert_arm.cpp',
    ]

LIBRARY_NAME = 'ycbcr'


Diff is:

--- mozilla-release-24/gfx/ycbcr/moz.build      2013-09-11 01:15:02.000000000 +0200
+++ mozilla-release-25/gfx/ycbcr/moz.build      2013-10-26 00:27:18.000000000 +0200
@@ -61,7 +61,10 @@
         'yuv_row_other.cpp',
     ]
 
-if CONFIG['OS_TEST'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
+if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['HAVE_ARM_NEON']:
+    ASFILES += [
+        'yuv_row_arm.s',
+    ]
     CPP_SOURCES += [
         'yuv_convert_arm.cpp',
     ]
Comment 8 thunder367 2013-12-16 06:41:46 UTC
Please release patch for stable platform.
Comment 9 thunder367 2013-12-16 06:42:34 UTC
firefox-24.1.1
Comment 10 Jory A. Pratt gentoo-dev 2017-08-26 17:57:32 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team