Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686984 - dev-util/electron-2.0.17-r1 - ninja: error: '.../work/electron-2.0.17/chromium/out/Release/clang_x64_v8_arm64/mksnapshot', needed by 'static_library/mksnapshot', missing and no known rule to make it
Summary: dev-util/electron-2.0.17-r1 - ninja: error: '.../work/electron-2.0.17/chromiu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Elvis Pranskevichus
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2019-05-30 08:45 UTC by Marcus Comstedt
Modified: 2019-08-02 06:24 UTC (History)
1 user (show)

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


Attachments
Patch to remove cross-compilation prefix from create-dist script (create_dist_arm.patch,953 bytes, patch)
2019-05-30 08:51 UTC, Marcus Comstedt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Comstedt 2019-05-30 08:45:47 UTC
When building dev-util/electron-2.0.17-r1 on arm64, the build stops with the following error message:

ninja: error: '/var/tmp/portage/dev-util/electron-2.0.17-r1/work/electron-2.0.17/chromium/out/Release/clang_x64_v8_arm64/mksnapshot', needed by 'static_library/mksnapshot', missing and no known rule to make it

Apparently the create-dist script in libchromiumcontent thinks we are cross-
compiling from x86_64, even though this is a native build.

Reproducible: Always

Steps to Reproduce:
1.emerge dev-util/electron-2.0.17-r1 on arm64
2.
3.
Actual Results:  
The build fails

Expected Results:  
The build succeeds

Portage 2.3.66 (python 2.7.15-final-0, default/linux/arm64/17.0/desktop, gcc-8.2.0, glibc-2.29-r2, 4.4.180 aarch64)
=================================================================
System uname: Linux-4.4.180-aarch64-with-gentoo-2.6
KiB Mem:     8036448 total,   3138332 free
KiB Swap:   16777212 total,  12495248 free
Timestamp of repository gentoo: Sun, 26 May 2019 11:30:01 +0000
Head commit of repository gentoo: 62bf0ad3fb05fe80993ef613b273bd26996143df
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.31.1 p7) 2.31.1
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.14.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::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.31.1-r6::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0-r4::gentoo, 8.2.0-r6::gentoo, 8.3.0-r1::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.29-r2::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

zeldin
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

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

unity-gentoo
    location: /var/lib/layman/unity-gentoo
    sync-type: laymansync
    sync-uri: https://github.com/shiznix/unity-gentoo
    masters: gentoo
    priority: 50

waebbl
    location: /var/lib/layman/waebbl
    sync-type: laymansync
    sync-uri: https://github.com/waebbl/waebbl-gentoo.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="@FREE"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2"
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"
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 parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="sv_SE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 acpi alsa arm64 berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit crypt css cups curl cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg flac gdbm gif glamor gmp gnutls gpm gtk iconv idn ipv6 jpeg lcms ldap libffi libnotify libtirpc lua mad mng mp3 mp4 mpeg mule multitarget ncurses nis nls nptl offensive ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 readline seamonkey seccomp smp spell ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xft xml xmpp 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 neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" 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="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="fbdev 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, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marcus Comstedt 2019-05-30 08:51:27 UTC
Created attachment 578034 [details, diff]
Patch to remove cross-compilation prefix from create-dist script

I added a patch with a proposed fix (which works for me).
Comment 2 Larry the Git Cow gentoo-dev 2019-08-02 06:24:45 UTC
The bug has been closed via the following commit(s):

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

commit 05660fa281b60ecffc61952c818d9f65768dc6b9
Author:     Elvis Pranskevichus <elvis@magic.io>
AuthorDate: 2019-08-01 15:15:20 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-08-02 06:24:33 +0000

    dev-util/electron: Fix build issues
    
    Fix libvpx build issues by pinning the dependency and adding
    system-libvpx USE-flag.
    
    Pin dev-util/gn version, as newer GN seems to be breaking the
    build.
    
    Fix build on non-x86, courtesy of Marcus Comstedt.
    
    Closes: https://bugs.gentoo.org/688426
    Closes: https://bugs.gentoo.org/679492
    Closes: https://bugs.gentoo.org/686984
    Signed-off-by: Elvis Pranskevichus <elvis@magic.io>
    Package-Manager: Portage-2.3.66, Repoman-2.3.11
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-util/electron/Manifest                  |   1 +
 dev-util/electron/electron-2.0.17-r2.ebuild | 919 ++++++++++++++++++++++++++++
 dev-util/electron/metadata.xml              |   1 +
 3 files changed, 921 insertions(+)