Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523004 - net-libs/webkit-gtk:3 fails to compile on MIPS and PowerPC
Summary: net-libs/webkit-gtk:3 fails to compile on MIPS and PowerPC
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-17 09:49 UTC by Vicente Olivert Riera (RETIRED)
Modified: 2014-10-07 17:22 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vicente Olivert Riera (RETIRED) gentoo-dev 2014-09-17 09:49:18 UTC
I have seen the same failure on PowerPC, so I have CC'ed the ppc arch team. If I'm wrong, please edit the bug summary and remove the ppc arch team from CC.

PowerPC bug report: https://bugs.webkit.org/show_bug.cgi?id=130837

Note: I can't attach the full build log because it's 64MB. Here is the relevant part:

---------------------------------------------------
libtool: link: mipsel-unknown-linux-gnu-g++ -O2 -march=mips32r2 -mabi=32 -mplt -pipe -pthread -std=c++11 -Wno-c++11-compat -Wl,-O1 -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -Wl,--no-demangle -o Programs/.libs/WebKitWebProcess Source/WebKit2/gtk/Programs_WebKitWebProcess-MainGtk.o -Wl,--export-dynamic -pthread -pthread  -Wl,--as-needed ./.libs/libjavascriptcoregtk-3.0.so ./.libs/libwebkit2gtk-3.0.so /var/tmp/portage/net-libs/webkit-gtk-2.4.4/work/webkitgtk-2.4.4/.libs/libjavascriptcoregtk-3.0.so -lpthread -lgstapp-1.0 -lgstaudio-1.0 -lgstfft-1.0 -lgstpbutils-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ljpeg -lxslt -lxml2 -lGL -lEGL -ldl -lpangoft2-1.0 -lpng16 -lsqlite3 -licui18n -licuuc -licudata -lwebp -lXrender -lXcomposite -lXdamage -lXfixes -lXt -lX11 -lz -lfontconfig -lfreetype -lharfbuzz-icu -lharfbuzz -lgmodule-2.0 -lgthread-2.0 -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 -lrt -pthread
./.libs/libwebkit2gtk-3.0.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
GNUmakefile:40460: recipe for target 'Programs/MiniBrowser' failed
make[1]: *** [Programs/MiniBrowser] Error 1
make[1]: *** Waiting for unfinished jobs....
./.libs/libwebkit2gtk-3.0.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
GNUmakefile:41191: recipe for target 'Programs/WebKitNetworkProcess' failed
make[1]: *** [Programs/WebKitNetworkProcess] Error 1
./.libs/libwebkit2gtk-3.0.so: undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
GNUmakefile:41406: recipe for target 'Programs/WebKitWebProcess' failed
make[1]: *** [Programs/WebKitWebProcess] Error 1
./.libs/../Source/WebKit2/Platform/IPC/.libs/libWebKit2Platform_la-Connection.o: In function `_ZN3IPC10Connection24createSyncMessageEncoderENS_15StringReferenceES1_yRy':
Connection.cpp:(.text+0x2b4): undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status
GNUmakefile:41332: recipe for target 'Programs/WebKitPluginProcess' failed
make[1]: *** [Programs/WebKitPluginProcess] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-libs/webkit-gtk-2.4.4/work/webkitgtk-2.4.4'
GNUmakefile:25561: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: net-libs/webkit-gtk-2.4.4::gentoo failed (compile phase):
 *   emake failed
---------------------------------------------------

My "emerge --info":

Portage 2.2.12 (python 3.4.0-final-0, default/linux/mips/13.0/mipsel, gcc-4.8.3, glibc-2.19-r1, 3.14.0+ mips64)
=================================================================
System uname: Linux-3.14.0+-mips64-ICT_Loongson-3_V0.5-with-gentoo-2.2
KiB Mem:     8257040 total,   1175696 free
KiB Swap:    8388592 total,   8382528 free
Timestamp of tree: Tue, 16 Sep 2014 00:45:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="mipsel-unknown-linux-gnu"
CFLAGS="-O2 -march=mips32r2 -mabi=32 -mplt -pipe"
CHOST="mipsel-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=mips32r2 -mabi=32 -mplt -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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=""
USE="acl berkdb bzip2 cli cracklib crypt cxx gdbm iconv ipv6 mips modules ncurses nls nptl pam pcre readline session ssl tcpd unicode zlib" ABI_MIPS="o32" ALSA_CARDS="au1x00" 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" 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="evdev" 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_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Pacho Ramos gentoo-dev 2014-09-17 13:17:49 UTC
Regarding PPC compilation issue, it was compiling after:
  27 Jul 2014; Pacho Ramos <pacho@gentoo.org>
  +files/webkit-gtk-2.4.4-atomic-ppc.patch, webkit-gtk-2.4.4.ebuild:
  Fix building on ppc (from OpenBSD, only needed on slot 3), bug #518288 by ago


Did you ensure you are using updated ebuild? (package wasn't revbumped for this)

Regarding mips... how many consumers of webkitgtk are keyworded on mips? (were they really working or only building?) I say this because upstream don't care much about anything different than x86/amd64, we try to keep support for other arches but it's more and more difficult (usually we rely on debian or openbsd people to fix them to at least make it buildable :S).

Maybe would be better to drop mips keywords for anything webkit-gtk related, but I am not sure how many packages are keyworded for that arch :/
Comment 2 Pacho Ramos gentoo-dev 2014-10-03 10:46:33 UTC
Also, for mips bug #523840 was opened with patches
Comment 3 Vicente Olivert Riera (RETIRED) gentoo-dev 2014-10-07 13:17:55 UTC
(In reply to Pacho Ramos from comment #1)
> Regarding PPC compilation issue, it was compiling after:
>   27 Jul 2014; Pacho Ramos <pacho@gentoo.org>
>   +files/webkit-gtk-2.4.4-atomic-ppc.patch, webkit-gtk-2.4.4.ebuild:
>   Fix building on ppc (from OpenBSD, only needed on slot 3), bug #518288 by
> ago
> 
> 
> Did you ensure you are using updated ebuild? (package wasn't revbumped for
> this)

Yes, I used the updated ebuild.

> Regarding mips... how many consumers of webkitgtk are keyworded on mips?
> (were they really working or only building?) I say this because upstream
> don't care much about anything different than x86/amd64, we try to keep
> support for other arches but it's more and more difficult (usually we rely
> on debian or openbsd people to fix them to at least make it buildable :S).

The midori web browser, for instance. It really works using webkit-gtk:2 and I could try it with webkit-gtk:3 because of this failure.

> Maybe would be better to drop mips keywords for anything webkit-gtk related,
> but I am not sure how many packages are keyworded for that arch :/

No, please, don't do that.

(In reply to Pacho Ramos from comment #2)
> Also, for mips bug #523840 was opened with patches

I will try those patches. Thanks.
Comment 4 Pacho Ramos gentoo-dev 2014-10-07 17:22:54 UTC
Please try with 2.4.6 for ppc problem (its changelog says it contains fixes for that arches). For mips, better go to the other bug report 

Thanks