Gentoo Archives: gentoo-user

From: ddjones <ddjones@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] webkit-gtk-2.4.8 fails to compile
Date: Fri, 27 Mar 2015 10:04:35
Message-Id: 4164634.djNYgdSeMR@kushiel
I seem to be hitting this bug:

https://bugs.gentoo.org/show_bug.cgi?id=513386

webkit-gtk fails:


GNUmakefile:40431: recipe for target 'Programs/GtkLauncher' failed
make[1]: *** [Programs/GtkLauncher] Error 1
make[1]: *** Waiting for unfinished jobs....
Source/WebKit/gtk/webkit/webkitversion.h:37: Warning: WebKit: 
symbol='WEBKITGTK_API_VERSION': Unknown namespace for symbol 
'WEBKITGTK_API_VERSION'
/var/tmp/portage/net-libs/webkit-
gtk-2.4.8/work/webkitgtk-2.4.8/.libs/libwebkitgtk-3.0.so: undefined reference 
to `_ZNSt6chrono3_V212steady_clock3nowEv@GLIBCXX_3.4.19'
/var/tmp/portage/net-libs/webkit-
gtk-2.4.8/work/webkitgtk-2.4.8/.libs/libjavascriptcoregtk-3.0.so: undefined 
reference to `_ZNSt6chrono3_V212system_clock3nowEv@GLIBCXX_3.4.19'
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/sh', './libtool', '--
mode=link', '--tag=CC', '--silent', 'i686-pc-linux-gnu-gcc', '-o', 
'/var/tmp/portage/net-libs/webkit-gtk-2.4.8/work/webkitgtk-2.4.8/tmp-
introspectdaQWqM/WebKit-3.0', '-export-dynamic', '-O2', '-march=i686', '-
pipe', '-pthread', '-std=c99', '-Wno-deprecated-declarations', '-Wl,-O1', '-
Wl,--as-needed', '-Wl,--no-keep-memory', '-Wl,--reduce-memory-overheads', '-
Wl,--no-demangle', '/var/tmp/portage/net-libs/webkit-
gtk-2.4.8/work/webkitgtk-2.4.8/tmp-introspectdaQWqM/WebKit-3.0.o', '-L.', '-
lwebkitgtk-3.0', '-ljavascriptcoregtk-3.0', '-Wl,--export-dynamic', '-
lgmodule-2.0', '-pthread', '-lgtk-3', '-lgdk-3', '-lpangocairo-1.0', '-
lpango-1.0', '-latk-1.0', '-lcairo-gobject', '-lcairo', '-lgdk_pixbuf-2.0', '-
lsoup-2.4', '-lgio-2.0', '-lgobject-2.0', '-lglib-2.0']' returned non-zero 
exit status 1
GNUmakefile:82193: recipe for target 'WebKit-3.0.gir' failed
make[1]: *** [WebKit-3.0.gir] Error 1



If I'm reading the bug correctly, it seems to be caused there by having gcc 
4.8 installed and having 4.7 active.  From comment #30:

<quote>
gcc ebuild adds /etc/ld.so.conf.d/05gcc-i686-pc-linux-gnu.conf entries, sorted 
by version.
During compilation, API from *active* version is used.
During linking, ABI from the first *listed* version is used.

If those two disagree, like it's the case here for c++11, you'll getting 
various funny results.
</quote>


That's not the case on my system.  I only have version 4.8 installed

root@kushiel ~ # gcc-config -l
 [1] i686-pc-linux-gnu-4.8.3 *
root@kushiel ~ # 

root@kushiel ~ # cat /etc/ld.so.conf.d/05gcc-i686-pc-linux-gnu.conf
/usr/lib/gcc/i686-pc-linux-gnu/4.8.3
root@kushiel ~ # 

There's only one line in the above file, so it should be compiling and linking 
from the same source.  I've reemerged libtool, reemerged glibc and run revdep-
rebuild.  The two packages built with no errors and revdep comes up with 
nothing required.  Emerging @preserved-rebuilds tries to rebuild webkit-gtk 
and fails.  The full build log for webkit-gtk is WAY to big to post here but 
I've included emerge --info and -pvq below.  Any help or suggestions greatly 
appreciated.




root@kushiel ~ # emerge --info '=net-libs/webkit-gtk-2.4.8::gentoo'
Portage 2.2.14 (python 2.7.9-final-0, default/linux/x86/13.0/desktop/kde, 
gcc-4.8.3, glibc-2.19-r1, 3.18.9-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.9-gentoo-i686-Intel-R-_Core-TM-
_i7-2600K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16609028 total,  12465696 free
KiB Swap:    2097148 total,   2097092 free
Timestamp of tree: Thu, 26 Mar 2015 05:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1                                                                                                                                                                                          
dev-util/cmake:           2.8.12.2-r1                                                                                                                                                                                                        
dev-util/pkgconfig:       0.28-r1                                                                                                                                                                                                            
sys-apps/baselayout:      2.2                                                                                                                                                                                                                
sys-apps/openrc:          0.13.11                                                                                                                                                                                                            
sys-apps/sandbox:         2.6-r1                                                                                                                                                                                                             
sys-devel/autoconf:       2.13, 2.69                                                                                                                                                                                                         
sys-devel/automake:       1.11.6-r1, 1.13.4                                                                                                                                                                                                  
sys-devel/binutils:       2.24-r3                                                                                                                                                                                                            
sys-devel/gcc:            4.6.4, 4.7.3-r1, 4.8.3                                                                                                                                                                                             
sys-devel/gcc-config:     1.7.3                                                                                                                                                                                                              
sys-devel/libtool:        2.4.4                                                                                                                                                                                                              
sys-devel/make:           4.1-r1                                                                                                                                                                                                             
sys-kernel/linux-headers: 3.16 (virtual/os-headers)                                                                                                                                                                                          
sys-libs/glibc:           2.19-r1                                                                                                                                                                                                            
Repositories: gentoo retroshare-overlay desktop-effects                                                                                                                                                                                      
ACCEPT_KEYWORDS="x86"                                                                                                                                                                                                                        
ACCEPT_LICENSE="*"                                                                                                                                                                                                                           
CBUILD="i686-pc-linux-gnu"                                                                                                                                                                                                                   
CFLAGS="-O2 -march=i686 -pipe"                                                                                                                                                                                                               
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/libreoffice/program/sofficerc /usr/share/config 
/usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/munin-async/.ssh"
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="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -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"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="rsync://212.219.56.132/www.ibiblio.org/gentoo/ 
ftp://ftp.klid.dk/gentoo/ rsync://128.61.111.10/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/retroshare-overlay /var/lib/layman/desktop-
effects"
USE="3dnow 3dnowext X a52 aac acl acpi additions aio alsa berkdb bluetooth 
branding bsf bzip2 cairo cdda cdr cgraph cli consolekit cracklib crypt cuda 
cups cxx dbus declarative device-mapper dri dts dvd dvdr emboss emerald encode 
exif extras fam ffmpeg firefox flac flash fontconfig fortran gd gdbm gif glamor 
gnutls gpm graphviz gstreamer gtk gtk3 gudev h323 hwdb iconv icu introspection 
ipv6 ithreads java joystick jpeg kde kdepim keymap kipi lame lcms ldap libav 
libkms libnotify mad mikmod minizip mmx mmxext mng mod modules mp3 mp4 mpeg 
mpg123 mudflap mysql ncurses nls nptl nptlonly nsplugin nss nvidia ofx ogg 
opengl openmp opus pam pango pcre pdf perl phonon plasma png policykit ppds 
pppd python qt3support qt4 readline reports samba sasl script sdl semantic-
desktop session sip sipim soprano spell sql sqlite sse sse2 ssl ssse3 startup-
notification static-libs subversion svg sysfs system-ffmpeg tcpd theora threads 
tiff tk truetype udev udisks unicode upower usb uvm vhost-net video vim-syntax 
vlc vorbis wav webkit win32codecs wxwidgets x264 x86 xcb xcomposite xinerama 
xml xmp xorg xscreensaver xulrunner xv xvid zlib" ABI_X86="32" 
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 
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="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" INPUT_DEVICES="keyboard mouse evdev wacom" 
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 
mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-
minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" 
PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" 
RUBY_TARGETS="ruby19 ruby20" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, 
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, 
PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON



root@kushiel ~ # emerge -pqv '=net-libs/webkit-gtk-2.4.8::gentoo'

[ebuild     U ] net-libs/webkit-gtk-2.4.8 [2.4.7] USE="X egl geoloc gstreamer 
introspection jit opengl spell webgl (-aqua) -coverage -debug -gles2 -
libsecret {-test} -wayland" 

-- 
"When a thing is funny, search it for a hidden truth." - George Bernard Shaw

Replies

Subject Author
[gentoo-user] Re: webkit-gtk-2.4.8 fails to compile walt <w41ter@×××××.com>