Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607902 - www-client/firefox-51.0[-skia] fails to build
Summary: www-client/firefox-51.0[-skia] fails to build
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: 2017-02-01 10:26 UTC by Joonas Niilola
Modified: 2017-03-20 15:06 UTC (History)
4 users (show)

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


Attachments
build.log file gunzipped, original was 2 MB (build.log.gz,93.39 KB, application/gzip)
2017-02-01 10:26 UTC, Joonas Niilola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Niilola gentoo-dev 2017-02-01 10:26:49 UTC
Created attachment 462082 [details]
build.log file gunzipped, original was 2 MB

This is what I dug up from build.log: 
-----
In file included from ^[[01m^[[K/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/gfx/layers/       composite/LayerManagerComposite.cpp:15:0^[[m^[[K,
                 from ^[[01m^[[K/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/gfx/layers/    Unified_cpp_gfx_layers5.cpp:47^[[m^[[K:
^[[01m^[[K/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/gfx/layers/composite/PaintCounter.h:12: 40:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[Kskia/include/core/SkCanvas.h: No such file or directory
-----

I just built Firefox-51.0 fine with skia USE flag enabled. However, it always fails with -skia. 

-----
# emerge --info
Portage 2.3.3 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r3, 4.9.2-linn x86_64)
=================================================================
System uname: Linux-4.9.2-linn-x86_64-Intel-R-_Core-TM-_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.3
KiB Mem:    16385812 total,   5975716 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 31 Jan 2017 14:22:14 +0000
sh bash 4.4_p11
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p11::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            5.4.0-r2::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

jps-gentoo
    location: /var/lib/layman/jps-gentoo
    masters: gentoo
    priority: 50

pg_overlay
    location: /var/lib/layman/pg_overlay
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay/
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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=native -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="http://mirror.mdfnet.se/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
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="/tmp"
USE="3dnow 3ndowext 64bit X a52 aac acl acpi alsa amd64 archive berkdb branding bzip2 cairo cdda cdr cjk cli consolekit corefonts cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gstreamer gtk gtk3 hpcups iconv infinality javascript jpeg jpeg2k lame lcms ldap libnotify mad matroska mng modules mp3 mp4 mpeg multilib ncurses nptl ogg opengl openmp pam pango pcre pdf pdfimport png policykit ppds pulseaudio qt3support qt4 rar readline sdl seccomp session smp sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd theora threads thumbnail tiff truetype type1 type3 udev udisks unicode upower usb vdpau vim-syntax vorbis win32codecs wxwidgets x264 x265 xattr xcb xinerama xml xorg xv xvid zip zlib" ABI_X86="64" ALSA_CARDS="realtek alc892 acl892 nvidia" 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 avx mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2" 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" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="en en_US fi sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="en en_US fi sv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" SANE_BACKENDS="pixma" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
-----

USE flags for Firefox:
USE="dbus gmp-autoupdate gtk2 hwaccel jemalloc pulseaudio startup-notification system-icu system-jpeg system-libvpx -bindist -custom-cflags -custom-optimization -debug -hardened -jack (-neon) -pgo (-rust) (-selinux) -skia* (-system-cairo) -system-harfbuzz -system-libevent -system-sqlite {-test} -wifi"
Comment 1 Oleh 2017-02-06 13:54:09 UTC
so, mozconf eclass has to change to not provide option to enable/disable skia and it always should be on.
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2017-02-06 16:48:27 UTC
(In reply to Oleg from comment #1)
> so, mozconf eclass has to change to not provide option to enable/disable
> skia and it always should be on.

That hasn't been confirmed yet; I think the erros is more likely to be a lack of testing upstream on the skia-disabled case, but I will adjust it one way or the other once I can find out the appropriate resolution to this bug.

(Confirming bug as I can reproduce the error)
Comment 3 Jory A. Pratt gentoo-dev 2017-02-07 00:29:16 UTC
(In reply to Ian Stakenvicius from comment #2)
> (In reply to Oleg from comment #1)
> > so, mozconf eclass has to change to not provide option to enable/disable
> > skia and it always should be on.
> 
> That hasn't been confirmed yet; I think the erros is more likely to be a
> lack of testing upstream on the skia-disabled case, but I will adjust it one
> way or the other once I can find out the appropriate resolution to this bug.
> 
> (Confirming bug as I can reproduce the error)

53.0 is confirmed to force skia, I am fine with forcing it in 50.0+
Comment 4 Jory A. Pratt gentoo-dev 2017-02-10 00:44:01 UTC
https://src.fedoraproject.org/cgit/rpms/firefox.git/tree/mozilla-1319374.patch

That should get you a working -skia build just throw it into /etc/portage/patches/www-client/firefox-51.0 to test
Comment 5 Joonas Niilola gentoo-dev 2017-02-10 19:07:16 UTC
(In reply to Jory A. Pratt from comment #4)
> https://src.fedoraproject.org/cgit/rpms/firefox.git/tree/mozilla-1319374.
> patch
> 
> That should get you a working -skia build just throw it into
> /etc/portage/patches/www-client/firefox-51.0 to test

This works, just built Firefox with -skia again. But if its coming mandatory in future builds, I guess its better to just go with defaults. I have some USE flags for Firefox that hasnt existed in years anymore anyway, time to clean up!
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2017-03-20 15:06:34 UTC
skia is non-optional in firefox-52 and above, closing.