Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560124 - net-libs/webkit-gtk-2.8.5 with USE="-opengl" fails to build (ANGLE/ShaderLang.h: No such file or directory)
Summary: net-libs/webkit-gtk-2.8.5 with USE="-opengl" fails to build (ANGLE/ShaderLang...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-10 13:22 UTC by Yann Leprince
Modified: 2016-04-03 13:17 UTC (History)
0 users

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


Attachments
build.log (build.log.xz,114.82 KB, application/x-xz)
2015-09-10 13:25 UTC, Yann Leprince
Details
environment (environment.xz,36.64 KB, application/x-xz)
2015-09-10 13:25 UTC, Yann Leprince
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Leprince 2015-09-10 13:22:45 UTC
net-libs/webkit-gtk-2.8.5 fails to build with this error:

In file included from /volatile/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkitgtk-2.8.5/Source/WebCore/platform/graphics/GraphicsContext3D.h:29:0,
                 from /volatile/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkitgtk-2.8.5/Source/WebCore/platform/graphics/GLContext.h:23,
                 from /volatile/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkitgtk-2.8.5/Source/WebCore/platform/graphics/GLContext.cpp:20:
/volatile/tmp/portage/net-libs/webkit-gtk-2.8.5/work/webkitgtk-2.8.5/Source/WebCore/platform/graphics/ANGLEWebKitBridge.h:37:30: fatal error: ANGLE/ShaderLang.h: No such file or directory


Reproducible: Didn't try

Steps to Reproduce:
USE='-* X introspection gstreamer' emerge -pv '=net-libs/webkit-gtk-2.8.5'



Of particular note is the combination of USE flags that I use for this package, in order to limit bloat:
USE='-* X introspection gstreamer'

$ emerge -pqv '=net-libs/webkit-gtk-2.8.5::gentoo'
[ebuild  NS   ] net-libs/webkit-gtk-2.8.5 [2.4.9] USE="(X) gstreamer introspection -coverage -doc -egl -geoloc -gles2 -jit -libsecret -opengl -spell {-test} (-wayland) -webgl"
$ emerge --info '=net-libs/webkit-gtk-2.8.5::gentoo'
Portage 2.2.20.1 (python 3.4.1-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.5, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i5-2430M_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     3924528 total,   1293176 free
KiB Swap:    3998716 total,   3663196 free
Timestamp of repository gentoo: Thu, 10 Sep 2015 00:45:01 +0000
sh dash 0.5.8.2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-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.24-r3::gentoo
sys-devel/gcc:            4.8.5::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE minc"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -g1 -frecord-gcc-switches"
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/portage/package.accept_keywords/zzz-auto-add /etc/portage/package.use/zzz-auto-add /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -g1 -frecord-gcc-switches"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-keep-masks"
FCFLAGS="-march=native -O2 -pipe -g1 -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs cgroup collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-march=native -O2 -pipe -g1 -frecord-gcc-switches"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/     ftp://gentoo.imj.fr/pub/gentoo/     http://gentoo.modulix.net/gentoo/     http://mirror.qubenet.net/mirror/gentoo/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-4"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 avx bash-completion bazaar berkdb bluetooth branding bzip2 cairo caps cdda cdparanoia cdr cli colord consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr emacs emboss encode exif fam fat ffmpeg fftw firefox flac fontconfig fortran gdbm gif git glamor gnutls gphoto2 gpm graphviz gstreamer gtk gtk3 iconv idn inotify ipv6 jbig jingle jit jpeg jpeg2k ladspa latex lcms libnotify libsamplerate luatex lzma lzo mad man matroska mmx mmxext mng modules mp3 mp4 mpd mpeg mtp multilib ncurses networkmanager nls nptl nsplugin ntfs ogg opengl openmp opus pam pango pch pcmcia pcre pdf png policykit popcnt postscript ppds qt3support qt4 readline replaygain resolvconf rss scanner sdl seccomp session smp sound speex spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification subversion svg tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis wifi wmf x264 xattr xcb xetex xft xml xmp xv xvid zlib zsh-completion" ABI_X86="64" CAMERAS="ptp2" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="fr_FR fr en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965"
USE_PYTHON="2.7 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Yann Leprince 2015-09-10 13:25:05 UTC
Created attachment 411514 [details]
build.log
Comment 2 Yann Leprince 2015-09-10 13:25:28 UTC
Created attachment 411516 [details]
environment
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-09-10 14:03:08 UTC
Strange, I wonder why it's trying to compile GLContext.cpp even though you have USE="-egl -opengl".

As a workaround for now, if you need webkit-gtk to install other packages, try to enable egl and opengl flags.
Comment 4 Yann Leprince 2015-09-10 16:29:28 UTC
Build succeeds with USE='-* X introspection gstreamer opengl'
Comment 5 walt 2015-10-22 18:11:48 UTC
(In reply to Yann Leprince from comment #0)

> Of particular note is the combination of USE flags that I use for this
> package, in order to limit bloat:

That's exactly the reason I tweak webkit useflags :)

I think the guilty useflag is -gles2.  I just got the same error, and removing that useflag from my package.use fixed the problem.

Alexandre, does that make any sense to you?
Comment 6 Pacho Ramos gentoo-dev 2016-03-09 15:38:24 UTC
What is the status of this with 2.10.7?
Comment 7 Yann Leprince 2016-03-09 16:11:16 UTC
This seems to be “fixed” in 2.10.7, in the sense that turning off the USE=opengl flag makes the CMake configuration fail, instead of triggering a compilation error: see #576634.
Comment 8 Pacho Ramos gentoo-dev 2016-04-03 13:17:03 UTC
will continue on that bug then