Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523400 - net-libs/webkit-gtk fails to build on armv5 (Source/JavaScriptCore/llint/libjavascriptcoregtk_1_0_la-LowLevelInterpreter.lo)
Summary: net-libs/webkit-gtk fails to build on armv5 (Source/JavaScriptCore/llint/libj...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugs.webkit.org/show_bug.cgi?...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2014-09-21 20:05 UTC by Markus Meier
Modified: 2015-01-25 11:54 UTC (History)
1 user (show)

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


Attachments
webkit-gtk-2.4.4-r200.tar.bz2 (webkit-gtk-2.4.4-r200.tar.bz2,381.40 KB, application/x-bzip2)
2014-09-21 20:05 UTC, Markus Meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2014-09-21 20:05:07 UTC
Created attachment 385268 [details]
webkit-gtk-2.4.4-r200.tar.bz2

I'm getting this failure on my armv5 boxes with stable and testing versions.

 * Package:    net-libs/webkit-gtk-2.4.4-r200
 * Repository: gentoo
 * Maintainer: gnome@gentoo.org
 * USE:        X arm egl elibc_glibc geoloc gstreamer introspection jit kernel_linux opengl spell test userland_GNU webgl

mv -f Source/JavaScriptCore/llint/.deps/libjavascriptcoregtk_1_0_la-LLIntThunks.Tpo Source/JavaScriptCore/llint/.deps/libjavascriptcoregtk_1_0_la-LLIntThunks.Plo
/bin/sh ./libtool  --tag=CXX   --mode=compile armv5tel-softfloat-linux-gnueabi-g++ -DHAVE_CONFIG_H -I.  -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno
-unused-parameter -Wno-parentheses -fno-exceptions -DBUILDING_CAIRO__ -DBUILDING_GTK__   -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bindings -
I./Source/JavaScriptCore/bytecode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/disassembler -I./Source/JavaScriptCore/ftl -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/inspecto
r -I./Source/JavaScriptCore/inspector/agents -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/llint -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore
/tools -I./Source/JavaScriptCore/yarr -I./DerivedSources/JavaScriptCore -I./Source/WTF  -fno-omit-frame-pointer -fno-tree-dce  -fno-rtti  -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include  -O2 -march=armv5te -pipe -pthread -std=c++11 -Wno-c++11
-compat   -MT Source/JavaScriptCore/llint/libjavascriptcoregtk_1_0_la-LowLevelInterpreter.lo -MD -MP -MF Source/JavaScriptCore/llint/.deps/libjavascriptcoregtk_1_0_la-LowLevelInterpreter.Tpo -c -o Source/JavaScriptCore/llint/libjavascriptcoregtk_1_0_la-LowLevelInterpreter
.lo `test -f 'Source/JavaScriptCore/llint/LowLevelInterpreter.cpp' || echo './'`Source/JavaScriptCore/llint/LowLevelInterpreter.cpp
libtool: compile:  armv5tel-softfloat-linux-gnueabi-g++ -DHAVE_CONFIG_H -I. -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type -Wformat -Wformat-security -Wno-format-y2k -Wundef -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-unused-parameter -Wno-paren
theses -fno-exceptions -DBUILDING_CAIRO__ -DBUILDING_GTK__ -I./Source -I./Source/JavaScriptCore -I./Source/JavaScriptCore/API -I./Source/JavaScriptCore/ForwardingHeaders -I./Source/JavaScriptCore/assembler -I./Source/JavaScriptCore/bindings -I./Source/JavaScriptCore/bytec
ode -I./Source/JavaScriptCore/bytecompiler -I./Source/JavaScriptCore/debugger -I./Source/JavaScriptCore/dfg -I./Source/JavaScriptCore/disassembler -I./Source/JavaScriptCore/ftl -I./Source/JavaScriptCore/heap -I./Source/JavaScriptCore/inspector -I./Source/JavaScriptCore/in
spector/agents -I./Source/JavaScriptCore/interpreter -I./Source/JavaScriptCore/jit -I./Source/JavaScriptCore/llint -I./Source/JavaScriptCore/parser -I./Source/JavaScriptCore/profiler -I./Source/JavaScriptCore/runtime -I./Source/JavaScriptCore/tools -I./Source/JavaScriptCo
re/yarr -I./DerivedSources/JavaScriptCore -I./Source/WTF -fno-omit-frame-pointer -fno-tree-dce -fno-rtti -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -O2 -march=armv5te -pipe -pthread -std=c++11 -Wno-c++11-compat -MT Source/JavaScriptCore/ll
int/libjavascriptcoregtk_1_0_la-LowLevelInterpreter.lo -MD -MP -MF Source/JavaScriptCore/llint/.deps/libjavascriptcoregtk_1_0_la-LowLevelInterpreter.Tpo -c Source/JavaScriptCore/llint/LowLevelInterpreter.cpp  -fPIC -DPIC -o Source/JavaScriptCore/llint/.libs/libjavascriptc
oregtk_1_0_la-LowLevelInterpreter.o
{standard input}: Assembler messages:
{standard input}:1533: Error: selected processor does not support ARM mode `vmov s2,r1'
{standard input}:1534: Error: selected processor does not support ARM mode `vcvt.f64.s32 d1,s2'
{standard input}:1538: Error: selected processor does not support ARM mode `vmov d1,r1,r4'
{standard input}:1541: Error: selected processor does not support ARM mode `vmov d0,r0,r2'
{standard input}:1542: Error: selected processor does not support ARM mode `vadd.f64 d0,d0,d1'

...

make[1]: *** [Source/JavaScriptCore/llint/libjavascriptcoregtk_1_0_la-LowLevelInterpreter.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f Source/JavaScriptCore/llint/.deps/libjavascriptcoregtk_1_0_la-LLIntSlowPaths.Tpo Source/JavaScriptCore/llint/.deps/libjavascriptcoregtk_1_0_la-LLIntSlowPaths.Plo
make[1]: Leaving directory `/var/tmp/portage/net-libs/webkit-gtk-2.4.4-r200/work/webkitgtk-2.4.4'
make: *** [all] Error 2
 * ERROR: net-libs/webkit-gtk-2.4.4-r200::gentoo failed (compile phase):
 *   emake failed

Portage 2.2.8-r1 (default/linux/arm/13.0/armv5te/desktop, gcc-4.7.3, glibc-2.19-r1, 3.10.25-gentoo armv5tel)
=================================================================
System uname: Linux-3.10.25-gentoo-armv5tel-with-gentoo-2.2
KiB Mem:      513244 total,    104840 free
KiB Swap:    1535996 total,   1518144 free
Timestamp of tree: Fri, 19 Sep 2014 17:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
distcc 3.1 armv5tel-softfloat-linux-gnueabi [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7, 3.2.5-r6, 3.3.5-r1
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.4, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/lib/python2.7/site-packages/buildbot/status/web /usr/share/gnupg/qualified.txt /var/bind /var/vpopmail/etc"
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.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/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="-O2 -march=armv5te -pipe"
DISTDIR="/mnt/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=2 --keep-going --with-bdeps=y"
FCFLAGS="-O2 -pipe -march=armv5te"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv5te"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://192.168.1.100/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv jpeg kpathsea lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd test tiff truetype udev udisks unicode upower usb vorbis wxwidgets xcb xml xv xvid zlib" 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="keyboard mouse evdev" 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-2 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Pacho Ramos gentoo-dev 2014-09-22 12:47:55 UTC
(In reply to Markus Meier from comment #0)
> Created attachment 385268 [details]
> webkit-gtk-2.4.4-r200.tar.bz2
> 
> I'm getting this failure on my armv5 boxes with stable and testing versions.

Since it's also failing in stable, shouldn't be a blocker. Will google a bit to see if upstream really supports armv5 :/
Comment 2 Pacho Ramos gentoo-dev 2014-09-22 13:19:45 UTC
Looks similar to:
https://bugs.webkit.org/show_bug.cgi?id=125581

But not for the same instructions, I would then open a new bug on upstream side as looks like they are only testing on arm7
Comment 3 Pacho Ramos gentoo-dev 2015-01-23 17:31:01 UTC
@arm, is there any way for us to detect if we are running on arm5/6/7? In summary, we would need to disable jit USE for arm5
Comment 4 Markus Meier gentoo-dev 2015-01-24 07:44:03 UTC
(In reply to Pacho Ramos from comment #3)
> @arm, is there any way for us to detect if we are running on arm5/6/7? In
> summary, we would need to disable jit USE for arm5

sure, have a look at the chromium ebuild to compare ${CTARGET} against armv5* - I guess this should work.
Comment 5 Pacho Ramos gentoo-dev 2015-01-24 10:33:50 UTC
But that would still expose a "jit" USE flag that will behave differently depending on the "subarch" that is being used: using using arm5 it will silently always disable jit, on arm67 not (well... I think jit is only really working on arm7 but I cannot confirm it).

Don't you have any kind of subprofiles or similar to allow to mask some USEs on one kind of arm? Other option would be to simply warn people when jit is enabled and arm != 7 is detected at build time... but it's a bit ugly :S
Comment 6 Pacho Ramos gentoo-dev 2015-01-24 10:35:32 UTC
Maybe that armv5te subprofile?
Comment 7 Markus Meier gentoo-dev 2015-01-24 13:48:59 UTC
(In reply to Pacho Ramos from comment #6)
> Maybe that armv5te subprofile?

Yes. Maybe it's best to use.mask it for arm profile and unmask it just for armv7 profile where it's known to work (I guess).
Comment 8 Pacho Ramos gentoo-dev 2015-01-24 13:57:33 UTC
Fine for me... free to do if you want (if not, I will try to do it when I am able to ;))
Comment 9 Pacho Ramos gentoo-dev 2015-01-25 11:54:28 UTC
+  25 Jan 2015; Pacho Ramos <pacho@gentoo.org>
+  +arch/arm/armv7a/package.use.mask, arch/arm/package.use.mask:
+  Unmask webkit-gtk[jit] only on arm7 profiles (#523400)
+