View previous topic :: View next topic |
Author |
Message |
edyatl n00b
Joined: 13 Dec 2017 Posts: 8
|
Posted: Wed Dec 13, 2017 12:05 pm Post subject: Compile error: firefox-52.4 with PGO +GCC-6.4,profile 17 PIE |
|
|
Hi All,
After system update I updated GCC up to 6.4, then according to the news I migrated from 13 profile to 17 with PIE, rebuilt GCC & toolchain, started world rebuild
All packages updated normally but exclude firefox-52.4 with PGO flag, before that with GCC-5 compiler this firefox version compiled without any troubles.
Near the end of second compilation after profile tests error happened:
Code: | ERROR: www-client/firefox-52.4.0::gentoo failed (compile phase):
Failed to run 'emake -f client.mk profiledbuild'
Call stack:
ebuild.sh, line 124: Called src_compile
environment, line 5138: Called virtx 'emake' '-f' 'client.mk' 'profiledbuild'
environment, line 6218: Called die
The specific snippet of code:
[[ ${retval} -ne 0 ]] && die "Failed to run '$@'"; |
I tried search this error, but couldn't find something usefull.
How to fix this error?
Thanks in advance!
Code: | emerge --info '=www-client/firefox-52.4.0::gentoo'
Portage 2.3.13 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r9, 4.9.49-gentoo-r1 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.9.49-gentoo-r1-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-gentoo-2.4.1
KiB Mem: 1981324 total, 64300 free
KiB Swap: 3905532 total, 3604520 free
Timestamp of repository gentoo: Tue, 12 Dec 2017 10:00:01 +0000
Head commit of repository gentoo: 255b2e41ec1ec7d874ced2977b153cb4e341536e
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash: 4.3_p48-r1::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.24.3::gentoo
dev-lang/python: 2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake: 3.8.2::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/openrc: 0.34.11::gentoo
sys-apps/sandbox: 2.10-r4::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.15.1-r1::gentoo
sys-devel/binutils: 2.29.1-r1::gentoo
sys-devel/gcc: 6.4.0::gentoo
sys-devel/gcc-config: 1.8-r1::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.25-r9::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-extra-opts:
sk-overlay
location: /var/lib/layman/sk-overlay
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64-sse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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=athlon64-sse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict 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="http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify lock mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt5 readline samba sdl seccomp session spell ssl startup-notification svg tcpd thunar tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="3dnow 3dnowext mmx mmxext sse sse2 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 pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=================================================================
Package Settings
=================================================================
www-client/firefox-52.4.0::gentoo was built with the following:
USE="bindist dbus gmp-autoupdate jemalloc pgo startup-notification -custom-cflags -custom-optimization -debug -eme-free -gtk2 -hardened -hwaccel -jack (-neon) -pulseaudio (-rust) (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite -test -wifi" ABI_X86="(64)" L10N="ru -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-ES -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 -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW"
CFLAGS="-march=athlon64-sse3 -pipe"
CXXFLAGS="-march=athlon64-sse3 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"
|
Last edited by edyatl on Wed Dec 13, 2017 1:12 pm; edited 2 times in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Wed Dec 13, 2017 12:57 pm Post subject: |
|
|
Possible related bug https://bugs.gentoo.org/633640 _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
edyatl n00b
Joined: 13 Dec 2017 Posts: 8
|
Posted: Wed Dec 13, 2017 1:24 pm Post subject: |
|
|
Thanks fedeliallalinea, but I'm not sure that is my case after reading this bug. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Wed Dec 13, 2017 1:51 pm Post subject: |
|
|
You can post full build.log with wgetpaste? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
edyatl n00b
Joined: 13 Dec 2017 Posts: 8
|
|
Back to top |
|
|
jburns Veteran
Joined: 18 Jan 2007 Posts: 1214 Location: Massachusetts USA
|
Posted: Wed Dec 13, 2017 4:30 pm Post subject: |
|
|
the error in your build log is related to an undefined hidden symbol.
Code: | ../../gfx/thebes/Unified_cpp_gfx_thebes1.o: In function `gfxTextRun::SetSpaceGlyph(gfxFont*, mozilla::gfx::DrawTarget*, unsigned int, unsigned short) [clone .cold.368]':
Unified_cpp_gfx_thebes1.cpp:(.text.unlikely+0x7b09): undefined reference to `gfxShapedWord* gfxFont::GetShapedWord<unsigned char>(mozilla::gfx::DrawTarget*, unsigned char const*, unsigned int, unsigned int, mozilla::unicode::Script, bool, int, unsigned int, gfxTextPerfMetrics*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: libxul.so: hidden symbol `_ZN7gfxFont13GetShapedWordIhEEP13gfxShapedWordPN7mozilla3gfx10DrawTargetEPKT_jjNS3_7unicode6ScriptEbijP18gfxTextPerfMetrics' isn't defined
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
|
|
|
Back to top |
|
|
edyatl n00b
Joined: 13 Dec 2017 Posts: 8
|
Posted: Wed Dec 13, 2017 4:36 pm Post subject: |
|
|
Well, and how I'll can fix it? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
Posted: Wed Dec 13, 2017 4:44 pm Post subject: |
|
|
edyatl wrote: | Well, and how I'll can fix it? |
Anyway is same problem reported in the bug posted by me.
You can apply this patch _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
edyatl n00b
Joined: 13 Dec 2017 Posts: 8
|
Posted: Fri Dec 15, 2017 8:18 am Post subject: |
|
|
Thanks fedeliallalinea! Last night I tried your patch and Wow it works, firefox compiled without errors.
If somebody have same problems follow commands:
Code: | # mkdir -p /etc/portage/patches/www-client/firefox
# curl https://617690.bugs.gentoo.org/attachment.cgi?id=483002 > /etc/portage/patches/www-client/firefox/UserPatch.patch
# cd $(portageq get_repo_path / gentoo)/www-client/firefox/
# ebuild firefox-52.4.0.ebuild clean prepare
# emerge -a1 www-client/firefox |
But I still not clear understand what was the cause of firefox compile problem and what this patch do.
I can't understand why firefox-52.4 compiled normally on 13 profile with GCC-5 and breaks with error on 17 profile with GCC-6, and how patch fix problem.
Could somebody comment this in few simple words for non-genius like me?
Thanks in advance! |
|
Back to top |
|
|
Anarchy Developer
Joined: 29 Jun 2005 Posts: 140
|
Posted: Sat Dec 16, 2017 12:34 am Post subject: |
|
|
edyatl wrote: | Thanks fedeliallalinea! Last night I tried your patch and Wow it works, firefox compiled without errors.
If somebody have same problems follow commands:
Code: | # mkdir -p /etc/portage/patches/www-client/firefox
# curl https://617690.bugs.gentoo.org/attachment.cgi?id=483002 > /etc/portage/patches/www-client/firefox/UserPatch.patch
# cd $(portageq get_repo_path / gentoo)/www-client/firefox/
# ebuild firefox-52.4.0.ebuild clean prepare
# emerge -a1 www-client/firefox |
But I still not clear understand what was the cause of firefox compile problem and what this patch do.
I can't understand why firefox-52.4 compiled normally on 13 profile with GCC-5 and breaks with error on 17 profile with GCC-6, and how patch fix problem.
Could somebody comment this in few simple words for non-genius like me?
Thanks in advance! |
This is really void. Come firefox-59 which will be next esr branch pgo flag is being deleted. The mozilla team is not gonna support the build any long. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|