Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554096 - net-libs/webkit-gtk-2.8.3 - error: cannot convert ‘std::unique_ptr<WebCore::GraphicsContext3DPrivate>::pointer {aka WebCore::GraphicsContext3DPrivate*}’ to ‘void**’ in return
Summary: net-libs/webkit-gtk-2.8.3 - error: cannot convert ‘std::unique_ptr<WebCore::...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 559742 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-07-06 21:20 UTC by Gary E. Miller
Modified: 2015-09-06 22:46 UTC (History)
4 users (show)

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


Attachments
build.log (build.log.gz,579.04 KB, text/plain)
2015-07-06 21:22 UTC, Gary E. Miller
Details
Ebuild environment file for net-libs/webkit-gtk-2.8.3 (environment,181.36 KB, text/plain)
2015-07-10 11:33 UTC, Kamen Dokov
Details
build.log (net-libs:webkit-gtk-2.8.3:20150710-053943.log.gz,675.64 KB, application/x-gzip)
2015-07-10 11:38 UTC, Kamen Dokov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2015-07-06 21:20:11 UTC
Package will not build.

Reproducible: Always

Steps to Reproduce:
1. emerge net-libs/webkit-gtk-2.8.3

Actual Results:  
/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/pl
atform/graphics/cairo/GraphicsContext3DCairo.cpp: In member function ‘void** WebC
ore::GraphicsContext3D::platformLayer() const’:
/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp:306:26: error: cannot convert ‘std::unique_ptr<WebCore::GraphicsContext3DPrivate>::pointer {aka WebCore::GraphicsContext3DPrivate*}’ to ‘void**’ in return
     return m_private.get();
                          ^


Expected Results:  
I expect a complete emerge.

dagwood webkit-gtk-2.8.3 # emerge --info
Portage 2.2.20 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.20-r2, 4.1.0-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.1.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3630QM_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    32775932 total,  11265920 free
KiB Swap:   25599996 total,  25599996 free
Timestamp of repository gentoo: Mon, 06 Jul 2015 15:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.2 [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.2::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::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-r1::gentoo
sys-devel/automake:       1.5-r2::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://spidey.rellim.com/gentoo-portage
    priority: -1000

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

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

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

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

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

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7-avx -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /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=corei7-avx -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 splitdebug unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.hoobly.com/ rsync://gentoo.gossamerhost.com/gentoo-distfiles/ ftp://mirror.datapipe.net/gentoo http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.UTF-8"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aacplus aacs accessibility acl acpi adns aesicm aio alsa amazon amd64 amr amrenc ao apng archive ares asyncdns asyncns audacious audiofile avahi avx bash-completion bbswitch bcmath berkdb binary-drivers bluetooth bluray bonjour bookmarks branding btrfs bzip2 cairo calendar capi caps cdaudio cdb cdda cdr celt cgroup chroot clang cli clucene consolekit cracklib crypt cryptsetup cscope ctype cups curl custom-optimization cxx daap dane dbus dc1394 declarative dga dirac diskio divx dlz dri dtmf dts dv dvb dvbplayer dvd dvdr dvi ecwj2k egl emboss encode equalizer exif expat extrafilters extras faac faad fam fame fat fdk festival ffmpeg fftw fileinfo filter firefox fits flac flite fontconfig foomaticdb fortran fortune ftp g3dvl gallium gcdmaster gcrypt gd gdbm geoip geoloc geonames geos geotiff gif gimp gkrellm glamor gles gles1 gles2 glib gmath gml gmp gnome-keyring gnuplot gnutls gost gpg gpgme gphoto2 gpm grammar grass grilo gs gsl gsm gstreamer gtk gucharmap gutenprint h323 hardened hash hddtemp hfs highlight hostip hpijs http httpd iax iconv icu id3tag imagemagick imlib inkjar inotify introspection ipp iproute2 ipsec ipv6 irc ivr jabber jack java javascript jbig jpeg jpeg2k json krb4 ladspa lame largefile latex lcms ldap less libass libburn libedit libextractor libgcrypt libindicate liblockfile libnotify libsamplerate libsoxr libsysfs libv4l2 libvisual live lm_sensors lmdb logrotate lua lv2 lxc lzma lzo mad manual math matroska mbrola mdadm mdnsresponder-compat mhash midi mkl mmap mmx mmxext mng modules mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mplayer mtp multilib music musicbrainz mysql mysqli ncurses netcdf netlink network nfs nfsv4 nls nodrm nominatim nptl nsplugin ntfs nvidia offensive ogdi ogg ogm openal opencl opencv openexr opengl openmp openssl opus osmesa oss pam pango passwdqc pcap pch pcntl pcre pdf pdfimport perl phar pixmaps plazes plotutil plotutils png pnm policykit popcnt posix postproc ppds proj pth pulseaudio pvr python qos qt-static qt3support qt4 qt5 quicktime quvi rar raw rdesktop readline realmedia realtime rle rpz rrdtool rtc rtmp rtsp run-as-root scanner schroedinger screen script scripts sdl seccomp secure-delete server session sftp shm shout simplexml sip sipim skins smi smime smp sndfile snmp sound spamassassin speex spell sqlite srt srtp sse sse2 sse3 sse4_1 sse4_2 ssh ssl ssse3 startup-notification stream svg swat syntax-check syslog taglib tcl tcpd tcpwrapper theora thesaurus threads thumbnail tidy tiff timidity tk tokenizer toolame tools totem transcode tremor truetype tts tunepimp twolame udev udisks unbound unicode upnp upower urandom usb utils uxa v4l v4l2 vaapi vamp vcd vcdinfo vcdx vdpau vdr video vim-syntax visualization vlm vnc vorbis vorbis-psy vpx vxml wav wavpack webkit webp wifi wikipedia wireshark wma wmf wmp wps wxwidgets x264 x265 xanim xattr xcap xcb xcf xcomposite xface xfce xforms xft xine xinerama xml xmlrpc xmp xorg xosd xpm xrandr xrender xscreensaver xsl xslt xulrunner xv xvfb xvid xvmc yahoo yahoo-geo youtube zephyr zeroconf zip zlib zrtp zvbi" ABI_X86="64 32" 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" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="keyboard mouse synaptics evdev roccat_savu" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21 ruby22" SANE_BACKENDS="gphoto2 abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_pp mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia vesa intel i965" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gary E. Miller 2015-07-06 21:22:15 UTC
Created attachment 406274 [details]
build.log

Too big, so I had to gzip it.
Comment 2 Kamen Dokov 2015-07-10 11:25:53 UTC
same here on x86-64:



/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp: In member function ‘void** WebCore::GraphicsContext3D::platformLayer() const’:
/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp:306:26: error: cannot convert ‘std::unique_ptr<WebCore::GraphicsContext3DPrivate>::pointer {aka WebCore::GraphicsContext3DPrivate*}’ to ‘void**’ in return
     return m_private.get();
                          ^
/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkitgtk-2.8.3/Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp:307:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Source/WebCore/CMakeFiles/WebCore.dir/build.make:56286: recipe for target 'Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/cairo/GraphicsContext3DCairo.cpp.o' failed
make[2]: *** [Source/WebCore/CMakeFiles/WebCore.dir/platform/graphics/cairo/GraphicsContext3DCairo.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkit-gtk-2.8.3_build'
CMakeFiles/Makefile2:590: recipe for target 'Source/WebCore/CMakeFiles/WebCore.dir/all' failed
make[1]: *** [Source/WebCore/CMakeFiles/WebCore.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-libs/webkit-gtk-2.8.3/work/webkit-gtk-2.8.3_build'
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
Comment 3 Kamen Dokov 2015-07-10 11:27:33 UTC
emerge --info '=net-libs/webkit-gtk-2.8.3::gentoo'                       
Portage 2.2.20 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.20-r2, 3.16.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.1-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.2
KiB Mem:     7639896 total,   1297460 free
KiB Swap:    4194300 total,   4194240 free
Timestamp of repository gentoo: Fri, 10 Jul 2015 05:30:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2-r1::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::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-r1::gentoo
sys-devel/automake:       1.8.5-r5::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

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

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

Installed sets: @kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ftree-vectorize"
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=native -O2 -pipe -ftree-vectorize -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build=y --autounmask-write=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://mirrors.ludost.net/gentoo/ ftp://mirrors.ludost.net/gentoo/ http://gentoo.osuosl.org http://mirror.gentoo.no/ http://gentoo.ynet.sk/pub http://www.ibiblio.org/pub/Linux/distributions/gentoo http://distfiles.gentoo.bg/ http://ftp.gentoo.bg/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="bzip2"
PORTAGE_COMPRESS_FLAGS="-9"
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 accessibility acl acpi alsa amd64 bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr dvdread egl emboss encode exif fam firefox flac fortran g3dvl gallium gdbm gif glamor gles gles1 gles2 gpm gtk iconv ipv6 jpeg kde kde4 kipi kontact lcms ldap libnotify lirc mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opencl opengl openmp openvg oss pam pango pcre pdf phonon plasma png policykit ppds pppd pulseaudio python qt3support qt4 readline reports scanner sdl semantic-desktop session spell spl sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg tcpd threads tiff truetype truetype-fonts type1-fonts udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xcb xcomposite xine xinerama xml xscreensaver xv xvid xvmc zlib zsh-completion" ABI_X86="64" ALSA_CARDS="hda-nvidia 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="aivdm ashtech clientdebug earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea ntrip oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar timing tnt tripmate tsip ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Kamen Dokov 2015-07-10 11:29:43 UTC
emerge -pqv '=net-libs/webkit-gtk-2.8.3::gentoo'
[ebuild  NS   ] net-libs/webkit-gtk-2.8.3 [2.4.9, 2.4.9-r200] USE="(X) coverage egl geoloc gles2 gstreamer introspection jit spell webgl -doc -libsecret -opengl {-test} (-wayland)"
Comment 5 Kamen Dokov 2015-07-10 11:33:53 UTC
Created attachment 406458 [details]
Ebuild environment file for net-libs/webkit-gtk-2.8.3
Comment 6 Kamen Dokov 2015-07-10 11:38:24 UTC
Created attachment 406460 [details]
build.log
Comment 7 Karl-Johan Karlsson 2015-07-21 23:50:28 UTC
TL;DR: Rebuilding with USE="-gles2 opengl" fixes this problem for me, but I'm not sure why.

Somewhat organised longer thoughts:

The code in question is at Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp:306:

   PlatformLayer* GraphicsContext3D::platformLayer() const
   {
       return m_private.get();
   }

How is that trying to convert to a void *? PlatformLayer is a typedef defined in Source/WebCore/platform/graphics/PlatformLayer.h depending on your graphics backend. Here's the part relevant to Linux (at line 34):

   #elif USE(TEXTURE_MAPPER)
   namespace WebCore {
   class TextureMapperPlatformLayer;
   typedef TextureMapperPlatformLayer PlatformLayer;
   };
   #else
   typedef void* PlatformLayer;
   #endif

So PlatformLayer is a void *, which means that USE(TEXTURE_MAPPER) is false.

USE is a macro defined at Source/WTF/wtf/Platform.h:54:

   #define USE(WTF_FEATURE) (defined WTF_USE_##WTF_FEATURE  && WTF_USE_##WTF_FEATURE)

So we're looking for WTF_USE_TEXTURE_MAPPER. That's defined in the block beginning at Source/cmake/OptionsGTK.cmake:351:

   if ((OPENGL_FOUND OR OPENGLES2_FOUND) AND (GLX_FOUND OR EGL_FOUND))
       set(ENABLE_TEXTURE_MAPPER 1)
       set(WTF_USE_3D_GRAPHICS 1)

       add_definitions(-DWTF_USE_3D_GRAPHICS=1)
       add_definitions(-DWTF_USE_TEXTURE_MAPPER=1)
       add_definitions(-DWTF_USE_TEXTURE_MAPPER_GL=1)
       add_definitions(-DENABLE_3D_RENDERING=1)

So it depends on OPENGL_FOUND, OPENGLES2_FOUND, GLX_FOUND, and EGL_FOUND. Are those defined? How does CMake save such definitions? Let's just grep the build tree:

   cd ../webkit-gtk-2.8.3_build/
   grep --binary-files=without-match -R -E '[[:alnum:]]*GL[[:alnum:]]*_FOUND' * | grep -v GLIB

When building with USE="gles2 -opengl", which I note both of you (and me) are doing, that doesn't find anything. However, when building with USE="-gles2 opengl", I get:

   CMakeCache.txt:CAIRO_EGL_FOUND:INTERNAL=1
   CMakeCache.txt:CAIRO_GLX_FOUND:INTERNAL=1
   CMakeCache.txt:CAIRO_GL_FOUND:INTERNAL=1
   CMakeCache.txt:GLX_FOUND:INTERNAL=1

That looks significant. And, sure enough, that gets WTF_USE_TEXTURE_MAPPER set, which it wasn't before:

   grep -R WTF_USE_TEXTURE_MAPPER *
   Source/JavaScriptCore/CMakeFiles/JavaScriptCore-4-gir.dir/DependInfo.cmake:  "WTF_USE_TEXTURE_MAPPER=1"
   Source/JavaScriptCore/CMakeFiles/JavaScriptCore-4-gir.dir/DependInfo.cmake:  "WTF_USE_TEXTURE_MAPPER_GL=1"
   Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/flags.make:CXX_DEFINES = -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DDATA_DIR=\"share\" -DENABLE_3D_RENDERING=1 -DENABLE_PLUGIN_PROCESS_GTK2=1 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DHAVE_CONFIG_H=1 -DHAVE_GTK_GESTURES=1 -DMOZ_X11=1 -DSTATICALLY_LINKED_WITH_WTF -DUSER_AGENT_GTK_MAJOR_VERSION=601 -DUSER_AGENT_GTK_MINOR_VERSION=1 -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -DWTF_PLATFORM_X11=1 -DWTF_USE_3D_GRAPHICS=1 -DWTF_USE_EGL=1 -DWTF_USE_GLX=1 -DWTF_USE_GSTREAMER -DWTF_USE_GSTREAMER_MPEGTS -DWTF_USE_LIBNOTIFY=1 -DWTF_USE_OPENGL=1 -DWTF_USE_REDIRECTED_XCOMPOSITE_WINDOW=1 -DWTF_USE_TEXTURE_MAPPER=1 -DWTF_USE_TEXTURE_MAPPER_GL=1 -DWTF_USE_WEBAUDIO_GSTREAMER -DXP_UNIX
   [...]

And the package builds and installs.

Now, this looked like a problem with the detection of GL stuff, and toggling those USE flags was my first instinct for easily influencing the detection of GL stuff. Miraculously, it worked. Explaining why it worked, and developing a proper fix, is left as an exercise for the reader who knows more about CMake than I do.

It should be noted that this is a new problem, as I have both net-libs/webkit-gtk-2.4.9:3 and net-libs/webkit-gtk-2.4.9-r200:2 installed, built with USE="gles2 -opengl".

# emerge --info net-libs/webkit-gtk
Portage 2.2.20 (python 2.7.10-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.21-r1, 4.0.8-hardened x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.8-hardened-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:    32886736 total,  25542616 free
KiB Swap:   33554424 total,  33527836 free
Timestamp of repository gentoo: Tue, 21 Jul 2015 12:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25 p1.2) 2.25
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.2.3::gentoo
dev-util/pkgconfig:       0.28-r3::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-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

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

creideiki
    location: /usr/local/portage
    masters: gentoo
    priority: 0

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

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

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

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 googleearth AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x google-talkplugin skype-eula QUAKE4 Oracle-BCLA-JavaSE Intel-SDP Introversion NVIDIA-CUDA Nero-AAC-EULA google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ggdb -O2 -pipe -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -ggdb -O2 -pipe -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=n --backtrack=30"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.sunet.se/pub/Linux/distributions/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--enable-new-dtags"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10 --ipv6"
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 aacs acl acpi alsa amd64 anthy avi avx avx2 bash-completion berkdb bluray bzip2 c++0x cairo canna cdda cdr cjk cli consolekit cracklib crypt css cups cvs cxx dbus dirac dri dts dvd dvdnav dvdr dvdread egl emacs exif ffmpeg fftw flac fontconfig fortran fuse gdbm gif gimp git gles gles1 gles2 glitz gphoto2 gstreamer gtk gtk3 hal handbook hardened iconv idn ipv6 javascript jingle jpeg justify kde lensfun lm_sensors logrotate mad matroska mmap mmx mmxext mng modules motif mp3 multilib ncurses nls nptl nsplugin offensive ogg opencl opengl openmp orc pam pax_kernel pcre pdf phonon pie plasma png policykit postscript qt qt3 qt3support qt4 quicktime qwt raw readline real resid rtmp s3tc samba sasl sdl semantic-desktop session sid smp sndfile sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 steamgames_source_engine steamgames_tf2 steamruntime subversion svg tcpd theora tiff truetype unicode urandom usb v4l vaapi vdpau vorbis win32codecs windows_games wma wmf x264 xattr xcb xine xinerama xmp xrandr xtpax xv xvid xvmc zlib" ABI_X86="64 32" 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="braindump flow karbon kexi krita sheets stage words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse joystick evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB en_UK sv sv_SE" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby22" SANE_BACKENDS="pixma hp" USERLAND="GNU" VIDEO_CARDS="intel 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON

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

net-libs/webkit-gtk-2.4.9::gentoo was built with the following:
USE="X (-aqua) -coverage -debug egl -geoloc gles2 gstreamer introspection -jit -libsecret -opengl -spell -test -wayland webgl" ABI_X86="64"
CFLAGS="-march=native -g -O2 -pipe -fweb -ftracer"
CXXFLAGS="-march=native -g -O2 -pipe -fweb -ftracer"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"


net-libs/webkit-gtk-2.4.9-r200::gentoo was built with the following:
USE="X (-aqua) -coverage -debug egl -geoloc gles2 gstreamer introspection -jit -libsecret -opengl -spell -test webgl" ABI_X86="64"
CFLAGS="-march=native -g -O2 -pipe -fweb -ftracer"
CXXFLAGS="-march=native -g -O2 -pipe -fweb -ftracer"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"


net-libs/webkit-gtk-2.8.3::gentoo was built with the following:
USE="(X) -coverage -doc egl -geoloc -gles2 gstreamer introspection -jit -libsecret opengl -spell -test (-wayland) webgl" ABI_X86="64"
CFLAGS="-march=native -ggdb -O2 -pipe -fweb -ftracer -fno-strict-aliasing"
CXXFLAGS="-march=native -ggdb -O2 -pipe -fweb -ftracer -fno-strict-aliasing"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
Comment 8 Kamen Dokov 2015-07-22 05:29:14 UTC
So, the bug is now confirmed?
That's good, I thought it's never going to be fixed. :D
Comment 9 Karl-Johan Karlsson 2015-07-22 08:11:22 UTC
After sleeping on it, I found the closed bug #533704, which is the exact same problem for net-libs/webkit-gtk-2.6.4. It seems the solution to that bug was to comment out the gles2 stuff from the ebuild for 2.6.5, since it didn't work at all. It's not clear to me from the CVS logs why it was reintroduced in 2.8.3, but there has been a bit of upstream activity in the GL CMake stuff since 2.6.4:

https://bugs.webkit.org/show_bug.cgi?id=142498
https://bugs.webkit.org/show_bug.cgi?id=144105
https://bugs.webkit.org/show_bug.cgi?id=145408
Comment 10 Kamen Dokov 2015-07-22 11:03:43 UTC
OK, it seems as possible regression????
Comment 11 Ianislav Trendafilov 2015-08-21 09:15:07 UTC
Please check your x11-libs/cairo flags.

I was trying to complile:
# USE="gles2 -opengl" net-libs/webkit-gtk-2.8.5
, but I had:
# USE="-gles2 opengl" x11-libs/cairo-1.14.2

Problem was solved after switching webkit-gtk flags. If this solves the problem for others, proper dependency checks should be added to webkit-gtk like:
gles2? (x11-libs/cairo[gles2])
opengl? (x11-libs/cairo[opengl])
Comment 12 Kamen Dokov 2015-08-22 05:54:42 UTC
(In reply to brutester from comment #11)
> Please check your x11-libs/cairo flags.
> 
> I was trying to complile:
> # USE="gles2 -opengl" net-libs/webkit-gtk-2.8.5
> , but I had:
> # USE="-gles2 opengl" x11-libs/cairo-1.14.2
> 
> Problem was solved after switching webkit-gtk flags. If this solves the
> problem for others, proper dependency checks should be added to webkit-gtk
> like:
> gles2? (x11-libs/cairo[gles2])
> opengl? (x11-libs/cairo[opengl])

This set of USE flags works for me!
Comment 13 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-08-24 05:12:05 UTC
(In reply to brutester from comment #11)
> opengl? (x11-libs/cairo[opengl])

Good point, we are missing this dependency. Committed:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2e60d5d6f9ff34982ea7fba32bcf2e467d2bd6d

> gles2? ( x11-libs/cairo[gles2] )

From the code, I can't understand why this would be needed :/

Maybe x11-libs/cairo[-opengl] is enough, for example?
Comment 14 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-08-24 05:53:33 UTC
I think I found the problem: in the ebuild we forgot to pass -DENABLE_GLES2 to cmake when USE=gles2.

As a result, cmake was detecting egl but then wasn't detecting gles2 (since we didn't explicitly ask for it) and wasn't detecting glx either (since we explicitly disabled it when USE=-opengl) - and the result is an incomplete accelerated graphics configuration, and eventual build failure.

Thanks a lot for the two complete build logs, combined with Karl-Johan's analysis they showed the error.

Should be fixed now, please check:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d6f5d7354318ceb83f975248694ef9d24635b53
Comment 15 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-09-06 22:46:21 UTC
*** Bug 559742 has been marked as a duplicate of this bug. ***