Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685940 - net-libs/webkit-gtk-2.24.1 - /usr/bin/ruby24 .../work/webkitgtk-2.24.1/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb .../work/webkit-gtk-2.24.1_build/DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h ARM64: FAILED: ...
Summary: net-libs/webkit-gtk-2.24.1 - /usr/bin/ruby24 .../work/webkitgtk-2.24.1/Source...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-14 10:30 UTC by Dion Moult
Modified: 2019-05-16 23:03 UTC (History)
0 users

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


Attachments
build.log (build.log,556.83 KB, text/plain)
2019-05-14 10:30 UTC, Dion Moult
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dion Moult 2019-05-14 10:30:39 UTC
Created attachment 576628 [details]
build.log

Fails to build on arm64 (Samsung Galaxy S7). There is no "jit" useflag such as in other versions. Ruby is set to ruby24 with rubygems (confirmed with `eselect ruby list`). No OOM messages in `dmesg`, building with `-j1` and watching `htop` for memory usage with an extra swapfile provided to verify this. This is the end of the build log:

[ ... snip ... ]

[539/2670] cd /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/Source/JavaScriptCore && /usr/bin/ruby24 /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb -I/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/DerivedSources/JavaScriptCore/ /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/bin/LLIntSettingsExtractor /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h ARM64
FAILED: DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h 
cd /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/Source/JavaScriptCore && /usr/bin/ruby24 /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1/Source/JavaScriptCore/offlineasm/generate_offset_extractor.rb -I/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/DerivedSources/JavaScriptCore/ /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1/Source/JavaScriptCore/llint/LowLevelInterpreter.asm /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/bin/LLIntSettingsExtractor /var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build/DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h ARM64
OffsetExtractor: No magic values found. Skipping offsets extractor file generation.
ninja: build stopped: subcommand failed.
 [31;01m*[0m ERROR: net-libs/webkit-gtk-2.24.1::gentoo failed (compile phase):
 [31;01m*[0m   ninja -v -j1 -l0 failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line  124:  Called src_compile
 [31;01m*[0m   environment, line 4913:  Called cmake-utils_src_compile
 [31;01m*[0m   environment, line 1384:  Called cmake-utils_src_make
 [31;01m*[0m   environment, line 1565:  Called _cmake_ninja_src_make
 [31;01m*[0m   environment, line  516:  Called eninja
 [31;01m*[0m   environment, line 1912:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=net-libs/webkit-gtk-2.24.1::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=net-libs/webkit-gtk-2.24.1::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/net-libs/webkit-gtk-2.24.1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/net-libs/webkit-gtk-2.24.1/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkit-gtk-2.24.1_build'
 [31;01m*[0m S: '/var/tmp/portage/net-libs/webkit-gtk-2.24.1/work/webkitgtk-2.24.1'

-----

Here is emerge info.

$ emerge --info

Portage 2.3.62 (python 2.7.16-final-0, default/linux/arm/17.0/armv7a/desktop, gcc-8.2.0, glibc-2.28-r6, 3.18.14-g1b5fc11 aarch64)
=================================================================
System uname: Linux-3.18.14-g1b5fc11-aarch64-with-gentoo-2.6
KiB Mem:     3644132 total,     64768 free
KiB Swap:    2097148 total,   2017604 free
Timestamp of repository gentoo: Sun, 12 May 2019 21:30:01 +0000
Head commit of repository gentoo: 9d4dc67581ba2bb85fbea34ddc7e976688e30907
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.28-r2::gentoo, 2.30-r4::gentoo, 2.31.1-r6::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

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

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-softfp-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp"
CHOST="armv7a-softfp-linux-gnueabi"
CONFIG_PROTECT="/etc /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/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl alsa arm armv5te armv6 armv6t2 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline sdl seccomp spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mart Raudsepp gentoo-dev 2019-05-14 13:43:57 UTC
Odd, by my reading there should be magic values for ARM64 just fine.
Comment 2 Dion Moult 2019-05-14 23:01:43 UTC
I should mention that this is Gentoo running in a chroot under a Samsung Galaxy S7 android. Could the chroot have anything to do with it? I haven't heard of the concept of magic values, how can I do tests to further debug if they exist?
Comment 3 Michael 'veremitz' Everitt 2019-05-16 23:03:39 UTC
I'm slightly confused here, as your CPU is indeed 64-bit capable, but you are using a 32-bit 'march' setting, and I presume a 32-bit profile...

If you have been running 32-bit successfully for a period of time, I suggest you stick with it, unless you want to make a clean start with 64-bit, as you will get into a mess should you try to mix both.

It looks like the ninja config is getting confused with CPU types here, and you may need to force it one way or the other if it's mis-detecting something.