Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627352 - Can't compile Firefox 55 with GCC 5.4
Summary: Can't compile Firefox 55 with GCC 5.4
Status: RESOLVED DUPLICATE of bug 617690
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-08 17:45 UTC by Armitage
Modified: 2017-08-08 17:56 UTC (History)
0 users

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


Attachments
Firefox 55 2000 lines tailed build.log (tailed-build.log,167.91 KB, text/plain)
2017-08-08 17:53 UTC, Armitage
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Armitage 2017-08-08 17:45:33 UTC
Hi,

Since the firefox-55 was added in portage as a masked package, I was trying to compile it. A few months ago I moved from GCC 4.9 to GCC 5.4 and I had no problems while compiling firefox (I can compile any version if it's <=firefox-54), but the firefox-55 fails and I think (but I'm not sure) that it might be related with the GCC migration.

I tried compiling all the firefox dependencies with emerge -pve firefox. The result was a recompilation of more than a 400 packages and it had no effect: I'm getting the same error in the compile phase.

I'm using the PGO use flag, and it could also be related with the problem. I would like to keep the PGO use flag for performance reasons.

I provide the full build log for firefox as an attached file. The problem seems to be here:


../../gfx/thebes/Unified_cpp_gfx_thebes1.o: In function `gfxTextRun::SetSpaceGlyph(gfxFont*, mozilla::gfx::DrawTarget*, unsigned int, mozilla::gfx::ShapedTextFlags) [clone .cold.361]':
Unified_cpp_gfx_thebes1.cpp:(.text.unlikely+0x61dd): undefined reference to `gfxShapedWord* gfxFont::GetShapedWord<unsigned char>(mozilla::gfx::DrawTarget*, unsigned char const*, unsigned int, unsigned int, mozilla::unicode::Script, bool, int, mozilla::gfx::ShapedTextFlags, gfxFontShaper::RoundingFlags, gfxTextPerfMetrics*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: libxul.so: hidden symbol `_ZN7gfxFont13GetShapedWordIhEEP13gfxShapedWordPN7mozilla3gfx10DrawTargetEPKT_jjNS3_7unicode6ScriptEbiNS4_15ShapedTextFlagsEN13gfxFontShaper13RoundingFlagsEP18gfxTextPerfMetrics' isn't defined
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status


That's the emerge --info for firefox:


# emerge --info firefox
Portage 2.3.6 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r4, 4.9.34-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.34-gentoo-x86_64-Intel-R-_Core-TM-_i7-6500U_CPU_@_2.50GHz-with-gentoo-2.3
KiB Mem:    16327060 total,   2037808 free
KiB Swap:    5242876 total,   5242876 free
Timestamp of repository gentoo: Tue, 08 Aug 2017 17:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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="-march=corei7 -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 xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://ftp-stud.hs-esslingen.de/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="es_ES.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnowprefetch X a52 aac abm acl acpi activities adx aes alsa amd64 aperfmperf apic arat arch_perfmon avx avx2 berkdb bluetooth bmi1 bmi2 branding bts bzip2 cairo cdda cdr clflush clflushopt cli cmov consolekit constant_tsc cracklib crypt cups cx16 cx8 cxx dbus de declarative dri ds_cpl dtes64 dtherm dts dvd dvdr eagerfpu emboss encode epb ept erms est exif f16c fam firefox flac flexpriority fma fortran fpu fsgsbase fxsr gdbm gif glamor gpm gtk ht hwp hwp_act_window hwp_epp hwp_notify iconv ida intel_pt invpcid ipv6 jpeg kde kipi kwallet lahf_lm lcms ldap libnotify lm mad mca mce mmx mmxext mng modules monitor movbe mp3 mp4 mpeg mpx msr mtrr multilib ncurses nls nonstop_tsc nopl nptl nx ogg opengl openmp pae pam pango pat pbe pcid pclmulqdq pcre pdcm pdf pdpe1gb pebs pge phonon plasma pln png pni policykit popcnt ppds pse pse36 pts qml qt3support qt4 qt5 rdrand rdseed rdtscp readline rep_good sdbg sdl seccomp semantic-desktop sep session smap smep spell ss sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg syscall tcpd tiff tm tm2 tpr_shadow truetype tsc tsc_adjust tsc_deadline_timer udev udisks unicode upower usb vme vmx vnmi vorbis vpid wayland widgets wxwidgets x264 x2apic xattr xcb xcomposite xgetbv1 xinerama xml xsave xsavec xsaveopt xscreensaver xtopology xtpr xv xvid xvmc zlib" ABI_X86="64" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp mmxext sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="es es-ES en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="es-ES en-US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

www-client/firefox-54.0.1::gentoo was built with the following:
USE="dbus gmp-autoupdate hwaccel jemalloc pgo startup-notification -bindist -custom-cflags -custom-optimization -debug -hardened -jack (-neon) -nsplugin -pulseaudio (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite -test -wifi" ABI_X86="(64)" L10N="es-ES -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW"
CFLAGS="-march=corei7 -pipe"
CXXFLAGS="-march=corei7 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"


I can reproduce the issue in two different machines. The both machines has the same kernel version, the same GCC version (5.4) and I migrated from GCC 4.9 to GCC 5.4 in the both machines. I'm also using the PGO in both machines. Sine I can reproduce the same error in two machines, I think that it might be a "global" problem for everyone who followed the same steps I did.

Could someone provide some help here?

Thank you for your time.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-08-08 17:52:22 UTC

*** This bug has been marked as a duplicate of bug 617690 ***
Comment 2 Armitage 2017-08-08 17:53:17 UTC
Created attachment 488356 [details]
Firefox 55 2000 lines tailed build.log
Comment 3 Armitage 2017-08-08 17:54:27 UTC
I had to cut the build.log on the last 2000 lines since it was too big (13'4Mb).

The cutted build.log is attached now. Sorry for the confusion.
Comment 4 Armitage 2017-08-08 17:56:02 UTC
(In reply to Brian Evans from comment #1)
> 
> *** This bug has been marked as a duplicate of bug 617690 ***

Thank you for repoting it as duplicated, I coulnd't find the other report. I'll keep an eye to the original bug report.

Thank you again.