Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 782376 - www-apps/kibana-bin-7.12.0 with >=net-libs/nodejs-15: The module '/opt/kibana/node_modules/re2/build/Release/re2.node' was compiled against a different Node.js version
Summary: www-apps/kibana-bin-7.12.0 with >=net-libs/nodejs-15: The module '/opt/kibana...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-04-12 06:11 UTC by Karl-Johan Karlsson
Modified: 2021-04-16 08:23 UTC (History)
3 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 Karl-Johan Karlsson 2021-04-12 06:11:23 UTC
www-apps/kibana-bin-7.12.0 changed the net-libs/nodejs dependency, from >=10 && < 14 to >=14.16.0. However, trying to run www-apps/kibana-bin-7.12.0 with the latest nodejs in Portage, net-libs/nodejs-15.11.0, results in this error:

Error: The module '/opt/kibana/node_modules/re2/build/Release/re2.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 88. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1151:18)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:996:19)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at Module.Hook._require.Module.require (/opt/kibana/node_modules/require-in-the-middle/index.js:80:39)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/opt/kibana/node_modules/re2/re2.js:3:13)
    at Module._compile (node:internal/modules/cjs/loader:1092:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Module.require (node:internal/modules/cjs/loader:996:19) {
  code: 'ERR_DLOPEN_FAILED'
}

According to https://nodejs.org/en/download/releases/ NODE_MODULE_VERSION=83 corresponds to node.js 14, while NODE_MODULE_VERSION=88 is node.js 15. So the message says that Kibana is compiled against node.js 14. Sure enough, downgrading to net-libs/nodejs-14.16.0 makes Kibana run.

The dependencies in www-apps/kibana-bin-7.12.0 should probably be updated from

RDEPEND="
        >=net-libs/nodejs-14.16.0
"

to

RDEPEND="
        >=net-libs/nodejs-14.16.0
        <net-libs/nodejs-15
"

Reproducible: Always




Portage 3.0.18 (python 3.8.9-final-0, default/linux/amd64/17.1/hardened, gcc-10.3.0, glibc-2.33, 5.11.9-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.11.9-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-6700K_CPU_@_4.00GHz-with-glibc2.2.5
KiB Mem:    65743252 total,  16111524 free
KiB Swap:   33521660 total,  33510140 free
Timestamp of repository gentoo: Sun, 11 Apr 2021 22:00:01 +0000
Head commit of repository gentoo: 8a8bc44c12ae69dd00a29e6695a205675b9cda87
sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          3.8.9::gentoo, 3.9.4::gentoo
dev-util/cmake:           3.20.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.43.1::gentoo
sys-apps/sandbox:         2.23::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.3.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.11::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/ossec/etc /var/ossec/etc/"
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 /var/ossec/etc/shared/"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=y --backtrack=30 --verbose-conflicts --usepkg --binpkg-respect-use=y --binpkg-changed-deps=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg compressdebug 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 qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.mdfnet.se/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10 --ipv6"
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="acl amd64 bzip2 crypt hardened iconv idn ipv6 libglvnd libtirpc multilib ncurses nls nptl openmp pam pcre pie readline seccomp split-usr ssl ssp unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-0" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

www-apps/kibana-bin-7.12.0::gentoo was built with the following:
USE="" ABI_X86="(64)"

net-libs/nodejs-14.16.0::gentoo was built with the following:
USE="-debug -doc icu -inspector npm -pax_kernel snapshot ssl -system-icu system-ssl -systemtap -test" ABI_X86="(64)" CPU_FLAGS_X86="sse2"
FEATURES="userpriv preserve-libs buildpkg unmerge-logs pid-sandbox usersandbox compressdebug sandbox binpkg-docompress userfetch config-protect-if-modified unknown-features-warn fixlafiles ipc-sandbox distlocks binpkg-dostrip merge-sync qa-unresolved-soname-deps assume-digests ebuild-locks sfperms unmerge-orphans parallel-fetch usersync protect-owned xattr multilib-strict network-sandbox news binpkg-multi-instance strict binpkg-logs"

net-libs/nodejs-15.11.0::gentoo was built with the following:
USE="-debug -doc icu -inspector npm -pax_kernel snapshot ssl -system-icu system-ssl -systemtap -test" ABI_X86="(64)" CPU_FLAGS_X86="sse2"
FEATURES="ipc-sandbox sfperms unmerge-orphans fixlafiles binpkg-logs pid-sandbox protect-owned ebuild-locks binpkg-docompress strict userpriv qa-unresolved-soname-deps config-protect-if-modified compressdebug multilib-strict unknown-features-warn news preserve-libs buildpkg merge-sync parallel-fetch sandbox distlocks userfetch binpkg-dostrip unmerge-logs xattr binpkg-multi-instance usersandbox usersync assume-digests network-sandbox"
Comment 1 Larry the Git Cow gentoo-dev 2021-04-16 05:40:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b66918a0c1187d1663f6b64f62f80cfe316e3e3

commit 6b66918a0c1187d1663f6b64f62f80cfe316e3e3
Author:     Tomáš Mózes <hydrapolic@gmail.com>
AuthorDate: 2021-04-13 13:25:27 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2021-04-16 05:39:56 +0000

    www-apps/kibana-bin: restrict nodejs version
    
    Closes: https://bugs.gentoo.org/782376
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/20365
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-apps/kibana-bin/kibana-bin-7.12.0.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 2 Tomáš Mózes 2021-04-16 08:23:49 UTC
Thanks for the report, should be fixed now.