Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RESOLVED] Failed to emerge net-libs/nodejs-20.11.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Fri Feb 23, 2024 2:43 pm    Post subject: [RESOLVED] Failed to emerge net-libs/nodejs-20.11.0 Reply with quote

Hi Everyone,

I hope everyone is doing well!

My goal is to install LibreWolf on a brand new install of Gentoo.

/net-libs/nodejs is a package required for LibreWolf/Firefox.

I have an error, and I hope I am supplying to correct information.

Build Info:

Code:

shinobi@gentoo ~ $ sudo emerge --info '=net-libs/nodejs-20.11.0::gentoo'
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r10, 6.6.13-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.13-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-glibc2.38
KiB Mem:     8132768 total,   6450180 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of repository gentoo: Thu, 22 Feb 2024 23:30:01 +0000
Head commit of repository gentoo: 39157ee312b0ed9a90ea9b52d1db457c05c53e5f
Head commit of repository librewolf: ff2acece4624decc10ee90cbe70127bc38f7f940

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.3-r1::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://codeberg.org/librewolf/gentoo.git
    masters: gentoo
    priority: 50
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=haswell -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
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/sandbox.d"
CXXFLAGS="-march=haswell -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=haswell -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=haswell -O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/     https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/     http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/     rsync://mirror.csclub.uwaterloo.ca/gentoo-distfiles     https://gentoo.osuosl.org/     http://gentoo.osuosl.org/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dracut dri dts dvd dvdr eds encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm grub gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mesa mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit postproc ppds pulseaudio readline sdl seccomp sound spell ssl startup-notification svg sysprof systemd test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xa xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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="mmx mmxext sse sse2 aes avx avx2 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS


Build log:
Code:

[1646/1675] cd ../../; /var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot /var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/gen/node_snapshot.cc
FAILED: gen/node_snapshot.cc
cd ../../; /var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot /var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/gen/node_snapshot.cc

  #  /var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot[4912]: void node::Realm::CreateProperties() at ../../src/node_realm.cc:72
  #  Assertion failed: ctor->IsObject()

----- Native stack trace -----

 1: 0x557b4910d4b0 node::Abort() [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
 2: 0x557b4910d54d  [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
 3: 0x557b491909d4 node::Realm::CreateProperties() [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
 4: 0x557b492bd74d node::Environment::InitializeMainContext(v8::Local<v8::Context>, node::EnvSerializeInfo const*) [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
 5: 0x557b49263a6e node::CreateEnvironment(node::IsolateData*, v8::Local<v8::Context>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, node::EnvironmentFlags::Flags, node::ThreadId, std::unique_ptr<node::InspectorParentHandle, std::default_delete<node::InspectorParentHandle> >) [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
 6: 0x557b4925f871  [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
 7: 0x557b4926093e node::CommonEnvironmentSetup::CommonEnvironmentSetup(node::MultiIsolatePlatform*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*, node::EmbedderSnapshotData const*, unsigned int, std::function<node::Environment* (node::CommonEnvironmentSetup const*)>) [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
 8: 0x557b49260db1 node::CommonEnvironmentSetup::CreateForSnapshotting(node::MultiIsolatePlatform*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
 9: 0x557b491bdbe9 node::BuildSnapshotWithoutCodeCache(node::SnapshotData*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::optional<std::basic_string_view<char, std::char_traits<char> > >) [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
10: 0x557b491bffa3 node::SnapshotBuilder::GenerateAsSource(char const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::optional<std::basic_string_view<char, std::char_traits<char> > >, bool) [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
11: 0x557b490c8356 BuildSnapshot(int, char**) [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
12: 0x7fb853a4dc8a  [/usr/lib64/libc.so.6]
13: 0x7fb853a4dd45 __libc_start_main [/usr/lib64/libc.so.6]
14: 0x557b48f35b91 _start [/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0/out/Release/node_mksnapshot]
[1647/1675] x86_64-pc-linux-gnu-g++ -MMD -MF obj/test/cctest/cctest.test_base64.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_CERT_STORE -DICU_NO_USER_DATA_OVERRIDE -D__STDC_FORMAT_MACROS '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' -DNODE_WANT_INTERNALS=1 -DHAVE_OPENSSL=1 -DHAVE_INSPECTOR=0 -D__POSIX__ -DNODE_USE_V8_PLATFORM=1 -DNODE_V8_SHARED_RO_HEAP -DNODE_HAVE_I18N_SUPPORT=1 -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DBASE64_STATIC_DEFINE -DUNIT_TEST -I../../src -I../../tools/msvs/genfiles -I../../deps/v8/include -I../../deps/cares/include -I../../deps/uv/include -I../../deps/uvwasi/include -I../../test/cctest -I../../deps/base64/base64/include -I../../deps/googletest/include -I../../deps/histogram/src -I../../deps/histogram/include -I../../deps/simdutf -I../../deps/ada -I../../deps/llhttp/include -Wall -Wextra -Wno-unused-parameter -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fno-omit-frame-pointer -march=haswell -O2 -pipe -fno-rtti -fno-exceptions -std=gnu++17  -c ../../test/cctest/test_base64.cc -o obj/test/cctest/cctest.test_base64.o
[1648/1675] x86_64-pc-linux-gnu-g++ -MMD -MF obj/test/cctest/cctest.node_test_fixture.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_CERT_STORE -DICU_NO_USER_DATA_OVERRIDE -D__STDC_FORMAT_MACROS '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' -DNODE_WANT_INTERNALS=1 -DHAVE_OPENSSL=1 -DHAVE_INSPECTOR=0 -D__POSIX__ -DNODE_USE_V8_PLATFORM=1 -DNODE_V8_SHARED_RO_HEAP -DNODE_HAVE_I18N_SUPPORT=1 -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DBASE64_STATIC_DEFINE -DUNIT_TEST -I../../src -I../../tools/msvs/genfiles -I../../deps/v8/include -I../../deps/cares/include -I../../deps/uv/include -I../../deps/uvwasi/include -I../../test/cctest -I../../deps/base64/base64/include -I../../deps/googletest/include -I../../deps/histogram/src -I../../deps/histogram/include -I../../deps/simdutf -I../../deps/ada -I../../deps/llhttp/include -Wall -Wextra -Wno-unused-parameter -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fno-omit-frame-pointer -march=haswell -O2 -pipe -fno-rtti -fno-exceptions -std=gnu++17  -c ../../test/cctest/node_test_fixture.cc -o obj/test/cctest/cctest.node_test_fixture.o
[1649/1675] x86_64-pc-linux-gnu-g++ -MMD -MF obj/test/cctest/cctest.test_aliased_buffer.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_CERT_STORE -DICU_NO_USER_DATA_OVERRIDE -D__STDC_FORMAT_MACROS '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' -DNODE_WANT_INTERNALS=1 -DHAVE_OPENSSL=1 -DHAVE_INSPECTOR=0 -D__POSIX__ -DNODE_USE_V8_PLATFORM=1 -DNODE_V8_SHARED_RO_HEAP -DNODE_HAVE_I18N_SUPPORT=1 -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DBASE64_STATIC_DEFINE -DUNIT_TEST -I../../src -I../../tools/msvs/genfiles -I../../deps/v8/include -I../../deps/cares/include -I../../deps/uv/include -I../../deps/uvwasi/include -I../../test/cctest -I../../deps/base64/base64/include -I../../deps/googletest/include -I../../deps/histogram/src -I../../deps/histogram/include -I../../deps/simdutf -I../../deps/ada -I../../deps/llhttp/include -Wall -Wextra -Wno-unused-parameter -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fno-omit-frame-pointer -march=haswell -O2 -pipe -fno-rtti -fno-exceptions -std=gnu++17  -c ../../test/cctest/test_aliased_buffer.cc -o obj/test/cctest/cctest.test_aliased_buffer.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:149: node] Error 1
 * ERROR: net-libs/nodejs-20.11.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-libs/nodejs-20.11.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/nodejs-20.11.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/nodejs-20.11.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/nodejs-20.11.0/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0'
 * S: '/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0'


Last edited by nulltheliteralnothing on Thu Mar 14, 2024 2:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4567
Location: Germany

PostPosted: Fri Feb 23, 2024 5:49 pm    Post subject: Reply with quote

Hi, and welcome! :)

Not sure, but it is probably a out of memory issue (please check it in dmesg too)
from emerge --info:
System uname: Linux-6.6.13-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-glibc2.38
KiB Mem:     8132768 total,   6450180 free
KiB Swap:    4194300 total,   4194300 free
8GB RAM without MAKEOPTS is set, it will by default using all 12 threads.
See https://wiki.gentoo.org/wiki/MAKEOPTS

I think with
MAKEOPTS="-j3 -l3"
in /etc/portage/make.conf it should probable work.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Fri Feb 23, 2024 6:03 pm    Post subject: Reply with quote

Josef.95 wrote:
Hi, and welcome! :)

Not sure, but it is probably a out of memory issue (please check it in dmesg too)
from emerge --info:
System uname: Linux-6.6.13-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-glibc2.38
KiB Mem:     8132768 total,   6450180 free
KiB Swap:    4194300 total,   4194300 free
8GB RAM without MAKEOPTS is set, it will by default using all 12 threads.
See https://wiki.gentoo.org/wiki/MAKEOPTS

I think with
MAKEOPTS="-j3 -l3"
in /etc/portage/make.conf it should probable work.


Thank you, thank you.

Out of memory was my thinking. I was hunting for a kill signal but didn’t notice anything. I will give the make options a try.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sat Feb 24, 2024 2:28 am    Post subject: Reply with quote

nulltheliteralnothing wrote:
Josef.95 wrote:
Hi, and welcome! :)

Not sure, but it is probably a out of memory issue (please check it in dmesg too)
from emerge --info:
System uname: Linux-6.6.13-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-5820K_CPU_@_3.30GHz-with-glibc2.38
KiB Mem:     8132768 total,   6450180 free
KiB Swap:    4194300 total,   4194300 free
8GB RAM without MAKEOPTS is set, it will by default using all 12 threads.
See https://wiki.gentoo.org/wiki/MAKEOPTS

I think with
MAKEOPTS="-j3 -l3"
in /etc/portage/make.conf it should probable work.


Thank you, thank you.

Out of memory was my thinking. I was hunting for a kill signal but didn’t notice anything. I will give the make options a try.


I don't think it is memory related.

I changed:
- MAKEOPTS to -j3 -l3 [failed],
- MAKEOPTS to -j2 -l2 [failed],
- Added +8GB RAM and changed MAKEOPTS to -j4 -l5. [failed]

All the same error.

Unless mksnapshot is burning RAM beyond the GBs not utilized by the OS I am not convinced it is a memory issue based on the jobs and loads. [/list]
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1402
Location: Germany

PostPosted: Sat Feb 24, 2024 9:12 am    Post subject: Reply with quote

Quote:
sudo emerge --info '=net-libs/nodejs-20.11.0::gentoo'

If you do also use sudo for the install, it maybe the problem.

I do have to use nodejs but I "install" it manually project specificly and isolated in a directory.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sat Feb 24, 2024 1:01 pm    Post subject: Reply with quote

Banana wrote:
Quote:
sudo emerge --info '=net-libs/nodejs-20.11.0::gentoo'

If you do also use sudo for the install, it maybe the problem.

I do have to use nodejs but I "install" it manually project specificly and isolated in a directory.


I thought that might be the problem as well. However, I tried switching to root and executing the command without sudo, and the issue is still present. Unless at some point in the “make” internally the user is being switched, and thus they wouldn’t have access to %wheel then.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sat Feb 24, 2024 11:50 pm    Post subject: Reply with quote

Hummmmm! Maybe it is resource related.

Code:

Feb 24 12:27:01 gentoo systemd-coredump[7335]: Resource limits disable core dumping for process 7325 (node_mksnapshot).
Feb 24 12:27:01 gentoo systemd-coredump[7335]: Process 7325 (node_mksnapshot) of user 250 terminated abnormally without generating a coredump.


I guess I will try MAKEOPTS="--jobs 2 --load-average 3" with 16 GB RAM.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sat Feb 24, 2024 11:55 pm    Post subject: Reply with quote

Could this be a ulimits thing?

Update: Sudo disabled the core dump.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21706

PostPosted: Sun Feb 25, 2024 1:43 am    Post subject: Reply with quote

The error message says Node aborted deliberately, likely due to some unsatisfied precondition. The resource limit message is only telling you that the kernel would have generated a core dump for this abort, but the resource limit prevented the dump. The resource limit does not appear to be responsible for Node deciding to abort.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sun Feb 25, 2024 1:59 am    Post subject: Reply with quote

Hu wrote:
The error message says Node aborted deliberately, likely due to some unsatisfied precondition. The resource limit message is only telling you that the kernel would have generated a core dump for this abort, but the resource limit prevented the dump. The resource limit does not appear to be responsible for Node deciding to abort.


Where would you take this investigation at this stage?

What I know,

Code trying to make a snapshot is failing
Because, it seems an object that is expected doesn’t exist
What that object might be is seemingly unknown
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1402
Location: Germany

PostPosted: Sun Feb 25, 2024 9:15 am    Post subject: Reply with quote

Does this happen with older versions, too?
Do you have also problems with other compile hungry packages like, libreoffice, firefox or chrome?
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sun Feb 25, 2024 12:41 pm    Post subject: Reply with quote

Banana wrote:
Does this happen with older versions, too?
Do you have also problems with other compile hungry packages like, libreoffice, firefox or chrome?


I have successfully emerged gnome which contains WebKit.

I am not sure this is performance related.

The error I am getting is that the assertion ctor->IsObject() failed.

It is looking for an object.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sun Feb 25, 2024 12:46 pm    Post subject: Reply with quote

1 theory I had is that I changed the architecture from native to haswell curious to figuring out what the issue is. However, the result remained the same, but I did keep the arch as Haswell as that is the correct arch. I haven’t put much thought into what are the consequences of stability on the overall system from this decision.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sun Feb 25, 2024 9:05 pm    Post subject: Reply with quote

Here is the code:

Code:
#define V(EnvPropertyName, PrimordialsPropertyName)                            \
  {                                                                            \
    Local<Value> ctor =                                                        \
        primordials.As<Object>()                                               \
            ->Get(ctx,                                                         \
                  FIXED_ONE_BYTE_STRING(isolate(), PrimordialsPropertyName))   \
            .ToLocalChecked();                                                 \
    CHECK(ctor->IsObject());                                                   \
    Local<Value> prototype =                                                   \
        ctor.As<Object>()->Get(ctx, prototype_string).ToLocalChecked();        \
    CHECK(prototype->IsObject());                                              \
    set_##EnvPropertyName(prototype.As<Object>());                             \
  }

  V(primordials_safe_map_prototype_object, "SafeMap");
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Sun Feb 25, 2024 11:51 pm    Post subject: Reply with quote

Ok, it is the command
Code:
sudo npm safemap
that is generating the error.

in fact if I type anything after "npm" the error is displayed.
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1402
Location: Germany

PostPosted: Mon Feb 26, 2024 11:57 am    Post subject: Reply with quote

so, what happends if you remove nodejs and alls of its configs and try again?
Do you have installed nodejs and its modules directly?
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Mon Feb 26, 2024 1:19 pm    Post subject: Reply with quote

Banana wrote:
so, what happends if you remove nodejs and alls of its configs and try again?
Do you have installed nodejs and its modules directly?


My plan since I can see the 4 NPM requirements was to unemerge nodejs, re-emerge nodejs. If the snapshot error persists then unemerge nodejs and re-emerge nodejs with “-snapshots”, manually npm the 4 packages and then merge in snapshots.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Mon Feb 26, 2024 6:14 pm    Post subject: Reply with quote

nulltheliteralnothing wrote:
Banana wrote:
so, what happends if you remove nodejs and alls of its configs and try again?
Do you have installed nodejs and its modules directly?


My plan since I can see the 4 NPM requirements was to unemerge nodejs, re-emerge nodejs. If the snapshot error persists then unemerge nodejs and re-emerge nodejs with “-snapshots”, manually npm the 4 packages and then merge in snapshots.


The experitment was interesting.

I now have a different error earlier in the stack.

Scenario 1: emerge nodejs

The result iis that nodejs package fails to merge. NPM is not operational and thus the installation of SafeMaps cannot be resolved.

Scenario 2: emerge nodejs -snapshot

The result is that nodejs will emerge; however, LibreWolf needs snapshot. And, thus it will fail.

Scenario 3: emerge nodejs with package.use npm

The result is a V8 compile error with semgentation fault.

Interestingly, NPM should a auto local use flag.

Code:


FAILED: obj/deps/v8/src/compiler/v8_compiler.js-heap-broker.o
x86_64-pc-linux-gnu-g++ -MMD -MF obj/deps/v8/src/compiler/v8_compiler.js-heap-broker.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_CERT_STORE -DICU_NO_USER_DATA_OVERRIDE -DV8_GYP_BUILD -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -D__STDC_FORMAT_MACROS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX '-DV8_EMBEDDER_STRING="-node.17"' -DENABLE_DISASSEMBLER -DV8_PROMISE_INTERNAL_FIELD_COUNT=1 -DV8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION -DV8_SHORT_BUILTIN_CALLS -DOBJECT_PRINT -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_USE_SIPHASH -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_USE_ZLIB -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_JAVASCRIPT_PROMISE_HOOKS -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -I../../deps/v8 -I../../deps/v8/include -Igen/generate-bytecode-output-root -Igen -pthread -Wno-unused-parameter -Wno-return-type -fno-strict-aliasing -m64 -m64 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -march=haswell -O2 -pipe -fno-rtti -fno-exceptions -std=gnu++17  -c ../../deps/v8/src/compiler/js-heap-broker.cc -o obj/deps/v8/src/compiler/v8_compiler.js-heap-broker.o
In file included from ../../deps/v8/src/heap/pretenuring-handler.h:12,
                 from ../../deps/v8/src/heap/heap.h:34,
                 from ../../deps/v8/src/heap/factory.h:19,
                 from ../../deps/v8/src/execution/isolate.h:36,
                 from ../../deps/v8/src/logging/runtime-call-stats-scope.h:10,
                 from ../../deps/v8/src/execution/arguments.h:10,
                 from ../../deps/v8/src/builtins/builtins-utils.h:10,
                 from ../../deps/v8/src/api/api-arguments.h:9,
                 from ../../deps/v8/src/ic/call-optimization.h:8,
                 from ../../deps/v8/src/compiler/heap-refs.h:11,
                 from ../../deps/v8/src/compiler/access-info.h:8,
                 from ../../deps/v8/src/compiler/js-heap-broker.h:13,
                 from ../../deps/v8/src/compiler/js-heap-broker.cc:5:
../../deps/v8/src/objects/map.h:502:69: internal compiler error: Segmentation fault
  502 |         : mutable_count_(mutable_count), const_count_(const_count) {}
      |                                                                     ^
0x1ccd51e internal_error(char const*, ...)
   ???:0
0x10a15d8 gt_clear_caches_gt_tree_h()
   ???:0
0x6e0d17 gt_clear_caches()
   ???:0
0xb19abd ggc_mark_roots()
   ???:0
0x96c706 ggc_collect(ggc_collect)
   ???:0
0x9e6d56 cgraph_node::finalize_function(tree_node*, bool)
   ???:0
0x8a1dbe expand_or_defer_fn(tree_node*)
   ???:0
0x7fc35f maybe_clone_body(tree_node*)
   ???:0
0x8a1b88 expand_or_defer_fn_1(tree_node*)
   ???:0
0x8a1d98 expand_or_defer_fn(tree_node*)
   ???:0
0x850558 c_parse_file()
   ???:0
0x941fe1 c_common_parse_file()
   ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
[1068/1675] x86_64-pc-linux-gnu-g++ -MMD -MF obj/deps/v8/src/compiler/v8_compiler.js-generic-lowering.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_CERT_STORE -DICU_NO_USER_DATA_OVERRIDE -DV8_GYP_BUILD -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -D__STDC_FORMAT_MACROS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX '-DV8_EMBEDDER_STRING="-node.17"' -DENABLE_DISASSEMBLER -DV8_PROMISE_INTERNAL_FIELD_COUNT=1 -DV8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION -DV8_SHORT_BUILTIN_CALLS -DOBJECT_PRINT -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_USE_SIPHASH -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_USE_ZLIB -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_JAVASCRIPT_PROMISE_HOOKS -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -I../../deps/v8 -I../../deps/v8/include -Igen/generate-bytecode-output-root -Igen -pthread -Wno-unused-parameter -Wno-return-type -fno-strict-aliasing -m64 -m64 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -march=haswell -O2 -pipe -fno-rtti -fno-exceptions -std=gnu++17  -c ../../deps/v8/src/compiler/js-generic-lowering.cc -o obj/deps/v8/src/compiler/v8_compiler.js-generic-lowering.o
[1069/1675] x86_64-pc-linux-gnu-g++ -MMD -MF obj/deps/v8/src/compiler/v8_compiler.js-graph.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_CERT_STORE -DICU_NO_USER_DATA_OVERRIDE -DV8_GYP_BUILD -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -D__STDC_FORMAT_MACROS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX '-DV8_EMBEDDER_STRING="-node.17"' -DENABLE_DISASSEMBLER -DV8_PROMISE_INTERNAL_FIELD_COUNT=1 -DV8_ENABLE_PRIVATE_MAPPING_FORK_OPTIMIZATION -DV8_SHORT_BUILTIN_CALLS -DOBJECT_PRINT -DV8_INTL_SUPPORT -DV8_ATOMIC_OBJECT_FIELD_WRITES -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_USE_SIPHASH -DV8_SHARED_RO_HEAP -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_USE_ZLIB -DV8_ENABLE_TURBOFAN -DV8_ENABLE_WEBASSEMBLY -DV8_ENABLE_JAVASCRIPT_PROMISE_HOOKS -DV8_ALLOCATION_FOLDING -DV8_ALLOCATION_SITE_TRACKING -DV8_ADVANCED_BIGINT_ALGORITHMS -I../../deps/v8 -I../../deps/v8/include -Igen/generate-bytecode-output-root -Igen -pthread -Wno-unused-parameter -Wno-return-type -fno-strict-aliasing -m64 -m64 -fno-omit-frame-pointer -fdata-sections -ffunction-sections -O3 -march=haswell -O2 -pipe -fno-rtti -fno-exceptions -std=gnu++17  -c ../../deps/v8/src/compiler/js-graph.cc -o obj/deps/v8/src/compiler/v8_compiler.js-graph.o
ninja: build stopped: subcommand failed.
make: *** [Makefile:149: node] Error 1
 * ERROR: net-libs/nodejs-20.11.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=net-libs/nodejs-20.11.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/nodejs-20.11.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/nodejs-20.11.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/nodejs-20.11.0/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0'
 * S: '/var/tmp/portage/net-libs/nodejs-20.11.0/work/node-v20.11.0'

Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Tue Feb 27, 2024 5:52 pm    Post subject: Reply with quote

I am at a loss here ... not sure how to move forward.

Almost every browser from Firefox to Chromium uses NodeJs.
Back to top
View user's profile Send private message
nulltheliteralnothing
n00b
n00b


Joined: 23 Feb 2024
Posts: 68

PostPosted: Thu Mar 14, 2024 2:40 pm    Post subject: Reply with quote

Hi Everyone,

It appears that somehow running Gentoo in a VirtualMachine was having an impact. I have been told that it is possible that CPU flags being virtualized might not be fully implemented in the context of execution. I am not sure. I do know that using the same portage make.conf, package.use and package.accept_keywords resulted in a build without issues on a Micros**t Surface Pro 3, which has an inferior processor but equivalent ram etc.

Thanks to everyone for helping me debug this issue.

Marking the issue resolved.
Back to top
View user's profile Send private message
anomen
n00b
n00b


Joined: 27 Dec 2007
Posts: 7

PostPosted: Mon Apr 01, 2024 9:26 am    Post subject: Reply with quote

I have VBox machine and I had to use -march=x86-64 (instead of -march=skylake) to emerge nodejs

No matter what version of nodejs or gcc.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum