Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607662 - www-client/firefox-51.0, 52.0.1 build failure on Big Endian machines (#error "Skia gpu currently assumes little endian")
Summary: www-client/firefox-51.0, 52.0.1 build failure on Big Endian machines (#error ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-29 20:53 UTC by ernsteiswuerfel
Modified: 2017-08-26 17:57 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.gz,66.41 KB, application/gzip)
2017-01-29 20:53 UTC, ernsteiswuerfel
Details
build.log with USE +skia (build_wSkia.log.gz,66.48 KB, application/gzip)
2017-03-12 21:09 UTC, ernsteiswuerfel
Details
build.log with USE -skia (build_woSkia.log.gz,75.00 KB, application/gzip)
2017-03-12 21:10 UTC, ernsteiswuerfel
Details
52.0.1 build.log (build_52.0.1.log.gz,65.41 KB, application/gzip)
2017-03-21 16:35 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2017-01-29 20:53:06 UTC
Created attachment 461860 [details]
build.log

Fails to build on my ppc-system.

# emerge -pqv '=www-client/firefox-51.0::gentoo'
[ebuild  N    ] www-client/firefox-51.0  USE="dbus gmp-autoupdate jemalloc pulseaudio skia startup-notification -bindist -custom-cflags -custom-optimization -debug -gtk2 -hardened -hwaccel -jack (-neon) (-pgo) (-rust) (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite {-test} -wifi" L10N="de -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -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 -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" 

# emerge -pqv '=www-client/firefox-51.0::gentoo'
[ebuild  N    ] www-client/firefox-51.0  USE="dbus gmp-autoupdate jemalloc pulseaudio skia startup-notification -bindist -custom-cflags -custom-optimization -debug -gtk2 -hardened -hwaccel -jack (-neon) (-pgo) (-rust) (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite {-test} -wifi" L10N="de -ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -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 -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" 
T801 ef # emerge --info '=www-client/firefox-51.0::gentoo'
Portage 2.3.3 (python 3.4.5-final-0, default/linux/powerpc/ppc64/13.0/32bit-userland/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r3, 4.9.6-gentoo ppc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.6-gentoo-ppc64-PPC970MP,_altivec_supported-with-gentoo-2.3
KiB Mem:    16169768 total,  11035304 free
KiB Swap:   17367032 total,  17367032 free
Timestamp of repository gentoo: Sun, 29 Jan 2017 10:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::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.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

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

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

flow
    location: /var/lib/layman/flow
    sync-type: laymansync
    sync-uri: https://gitlab.com/Flow/flow-s-ebuilds.git
    masters: gentoo
    priority: 50

gentoo-mate
    location: /var/lib/layman/gentoo-mate
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/gentoo-mate.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="*"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=G5 -mtune=G5 -Os -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /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="-mcpu=G5 -mtune=G5 -Os -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="ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-6"
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 alsa altivec bash-completion berkdb bluetooth bzip2 cairo caja cdda cdr cli colord cracklib crypt cups custom-cflags custom-optimization cxx dbus djvu dri dts dvd dvdr eds emboss enca encode evo exif fam firefox flac fortran gdbm gif glamor gles2 gnome-keyring gnome-online-accounts gnutls gstreamer gtk gtk3 iconv icu introspection ipv6 ithreads jpeg jpeg2k lcms libnotify libsecret live lz4 lzma lzo mad matroska mmap mng modules mp3 mp4 mpeg mtp ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pcre pdf png policykit ppc ppds pulseaudio readline sdl seccomp session spell ssl startup-notification svg system-sqlite systemd tcpd threads tiff tracker truetype udev udisks unicode upower usb vorbis vpx webp wmf wxwidgets x264 xattr xcb xml xmp xv xvid zlib" ABI_PPC="32" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" CURL_SSL="openssl" 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" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en de_DE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="radeon r300 r600 nouveau 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 ernsteiswuerfel archtester 2017-03-12 21:06:14 UTC
Re-tried firefox 51.0.1 with a slightly updated toolchain (linux headers 4.9, gcc 5.4.0-r3, binutils 2.26.1). This time I also had a closer look at the build-log.

Looks like USE="skia" is the critical point. Building with USE +skia fails with errors like that:

In file included from /var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/skia/skia/include/gpu/GrCaps.h:11:0,
                 from /var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/skia/skia/include/gpu/GrContext.h:11,
                 from /var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/gl/SkiaGLGlue.cpp:6:
/var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/skia/skia/include/gpu/GrTypes.h:271:6: error: #error "Skia gpu currently assumes little endian"
     #error "Skia gpu currently assumes little endian"
      ^
/var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/skia/skia/include/gpu/GrTypes.h:280:6: error: #error "SK_*32_SHIFT values must correspond to GL_BGRA or GL_RGBA format."
     #error "SK_*32_SHIFT values must correspond to GL_BGRA or GL_RGBA format."
      ^
[...]
                                           ^
/var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/skia/skia/include/core/SkImageInfo.h: In static member function 'static SkImageInfo SkImageInfo::MakeN32Premul(int, int, SkColorProfileType)':
/var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/skia/skia/include/core/SkImageInfo.h:196:43: error: 'kN32_SkColorType' was not declared in this scope
         return SkImageInfo(width, height, kN32_SkColorType, kPremul_SkAlphaType, pt);


Building with USE -skia fails with:

In file included from /var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/layers/composite/LayerManagerComposite.cpp:15:0,
                 from /var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/ff/gfx/layers/Unified_cpp_gfx_layers5.cpp:47:
/var/tmp/portage/www-client/firefox-51.0.1/work/firefox-51.0.1/gfx/layers/composite/PaintCounter.h:12:40: fatal error: skia/include/core/SkCanvas.h: No such file or directory
Comment 2 ernsteiswuerfel archtester 2017-03-12 21:09:38 UTC
Created attachment 466844 [details]
build.log with USE +skia
Comment 3 ernsteiswuerfel archtester 2017-03-12 21:10:11 UTC
Created attachment 466846 [details]
build.log with USE -skia
Comment 4 ernsteiswuerfel archtester 2017-03-21 16:33:39 UTC
The problem persists on firefox-52.0.1. As USE-flag "skia" seems mandantory, or is no longer listed among the USE-flags; i guess the build failure will affect ALL big endian machines.
Comment 5 ernsteiswuerfel archtester 2017-03-21 16:35:20 UTC
Created attachment 467800 [details]
52.0.1 build.log
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2017-03-21 17:31:05 UTC
OK it looks like the only fix for this will be to re-add optional skia support and mask it on big-endian platforms.

We can keep 52.x ESR with this once I've fixed it, but starting with firefox-53 and until such time as someone can provide patches to make skia big-endian friendly (reportedly non-trivial in https://bugzilla.mozilla.org/show_bug.cgi?id=1144632 ), we will have to drop those keywords going forward.
Comment 7 ernsteiswuerfel archtester 2017-03-21 21:43:34 UTC
Good proposal. However with 51.0.x at least on my setup (ppc64 with 32-bit userland) I got build problems with USE -skia too. See the 2nd build.log attatched to this bug.
Comment 8 ernsteiswuerfel archtester 2017-05-04 17:54:47 UTC
Just tried building 52.1.0esr but this one failed with a different error, so I will open a new bug.
Comment 9 ernsteiswuerfel archtester 2017-05-27 18:11:46 UTC
Current www-client/firefox-52.1.0-r1 builds ok now on my G5, as long as I build it with USE="system-icu". Otherwise I hit bug #617510. Thanks for making it that far! ;-)
Comment 10 Jory A. Pratt gentoo-dev 2017-08-26 17:57:43 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