Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] Unable to build nodejs and webkit

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
16 posts • Page 1 of 1
Author
Message
sonofnet
n00b
n00b
Posts: 25
Joined: Fri Jan 05, 2007 11:53 pm

[SOLVED] Unable to build nodejs and webkit

  • Quote

Post by sonofnet » Sun Feb 01, 2026 9:59 pm

Hi, guys,

I'd appreciate some help. I'm not able to build nodejs and webkit on my Beelink GTR9 pro (AMD strix halo or zen 5 architecture).

Here are the files:
emerge-info for nodejs

Code: Select all

Portage 3.0.77 (python 3.13.11-final-0, default/linux/amd64/23.0/desktop, gcc-15, glibc-2.42-r5, 6.18.7-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.18.7-gentoo-dist-x86_64-AMD_RYZEN_AI_MAX+_395_w-_Radeon_8060S-with-glibc2.42
KiB Mem:    32473084 total,  30740400 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 29 Jan 2026 10:15:00 +0000
Head commit of repository gentoo: 0d0425c66aa3ecbb5ac3bb00e6661a095f8459ed
Timestamp of repository guru: Thu, 29 Jan 2026 10:31:04 +0000
Head commit of repository guru: f25fe730ce5f580a5d43832dfa3f8304e0c1e3e6

Head commit of repository librewolf: fcd75de8fecc257b0d697c671571e2b457722df6

sh bash 5.3_p9
ld GNU ld (Gentoo 2.45.1 p1) 2.45.1
app-misc/pax-utils:        1.3.10::gentoo
app-shells/bash:           5.3_p9::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r6::gentoo
dev-build/automake:        1.18.1::gentoo
dev-build/cmake:           4.2.1-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r102::gentoo
dev-build/meson:           1.10.1::gentoo
dev-lang/perl:             5.42.0-r1::gentoo
dev-lang/python:           3.13.11::gentoo, 3.14.2::gentoo
dev-lang/rust-bin:         1.86.0-r1::gentoo, 1.92.0::gentoo
llvm-core/clang:           21.1.8::gentoo
llvm-core/llvm:            21.1.8::gentoo
sys-apps/baselayout:       2.18-r1::gentoo
sys-apps/openrc:           0.63::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.45.1::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc:             15.2.1_p20251122::gentoo
sys-devel/gcc-config:      2.12.2::gentoo
sys-kernel/linux-headers:  6.18::gentoo (virtual/os-headers)
sys-libs/glibc:            2.42-r5::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-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

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

Binary Repositories:

gentoobinhost
    location: /var/cache/binhost/gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
    verify-signature: None

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
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"
CXXFLAGS="-march=native -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=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-index config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="rsync://mirror.mephi.ru/gentoo-distfiles/ 		https://mirror.yandex.ru/gentoo-distfiles/ 		rsync://ftp.byfly.by/gentoo/ 		rsync://mirrors.kernel.org/mirrors/gentoo/"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j32 -l32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="bzip2"
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"
RUSTFLAGS=" -C target-cpu=native"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 amdgpu avif bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel djvu dracut dri dts dvd dvdr echo-cancel elgind elogind encode exif ffmpeg flac fontconfig gdbm gif gpm grub gtk gui iconv icu imagemagick ipv6 jpeg jpeg2k jpegxl kvazaar lcms libnotify libtirpc lm-sensors lzma mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg openal opencl opengl openmp osmesa pam pango pcre pdf pipewire png policykit ppds qml qt6 radeonsi raw readline rocm samba savedconfig screencast sdl seccomp sound spell ssl startup-notification svg test-rust thunderbolt tiff truetype udev udisks unicode upower usb v4l vorbis wayland webp wifi wxwidgets x264 x265 xattr xcb xft xml xv xvid zeroconf zip zlib znver1" ABI_X86="64" ADA_TARGET="gcc_15" 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 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl avx_vnni bmi1 bmi2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="amdgpu radeonsi" 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, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
emerge-pqv

Code: Select all

[ebuild  N    ] net-libs/nodejs-24.11.1-r1  USE="icu inspector npm snapshot ssl system-icu system-ssl -corepack -debug -doc (-lto) -pax-kernel -test" CPU_FLAGS_X86="sse2"
nodejs-env
https://codeberg.org/sonofnet/gentoo/sr ... dejs-error

And webkit errors:

emerge-info for webkit

Code: Select all

Portage 3.0.77 (python 3.13.11-final-0, default/linux/amd64/23.0/desktop, gcc-15, glibc-2.42-r5, 6.18.7-gentoo-dist x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.18.7-gentoo-dist-x86_64-AMD_RYZEN_AI_MAX+_395_w-_Radeon_8060S-with-glibc2.42
KiB Mem:    32473084 total,  30393880 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 29 Jan 2026 10:15:00 +0000
Head commit of repository gentoo: 0d0425c66aa3ecbb5ac3bb00e6661a095f8459ed
Timestamp of repository guru: Thu, 29 Jan 2026 10:31:04 +0000
Head commit of repository guru: f25fe730ce5f580a5d43832dfa3f8304e0c1e3e6

Head commit of repository librewolf: fcd75de8fecc257b0d697c671571e2b457722df6

sh bash 5.3_p9
ld GNU ld (Gentoo 2.45.1 p1) 2.45.1
app-misc/pax-utils:        1.3.10::gentoo
app-shells/bash:           5.3_p9::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r6::gentoo
dev-build/automake:        1.18.1::gentoo
dev-build/cmake:           4.2.1-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r102::gentoo
dev-build/meson:           1.10.1::gentoo
dev-lang/perl:             5.42.0-r1::gentoo
dev-lang/python:           3.13.11::gentoo, 3.14.2::gentoo
dev-lang/rust-bin:         1.86.0-r1::gentoo, 1.92.0::gentoo
llvm-core/clang:           21.1.8::gentoo
llvm-core/llvm:            21.1.8::gentoo
sys-apps/baselayout:       2.18-r1::gentoo
sys-apps/openrc:           0.63::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.45.1::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc:             15.2.1_p20251122::gentoo
sys-devel/gcc-config:      2.12.2::gentoo
sys-kernel/linux-headers:  6.18::gentoo (virtual/os-headers)
sys-libs/glibc:            2.42-r5::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-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3
    sync-rsync-extra-opts:

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

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

Binary Repositories:

gentoobinhost
    location: /var/cache/binhost/gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
    verify-signature: None

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
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"
CXXFLAGS="-march=native -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=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live compress-index config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="rsync://mirror.mephi.ru/gentoo-distfiles/ 		https://mirror.yandex.ru/gentoo-distfiles/ 		rsync://ftp.byfly.by/gentoo/ 		rsync://mirrors.kernel.org/mirrors/gentoo/"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j32 -l32"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="bzip2"
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"
RUSTFLAGS=" -C target-cpu=native"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 amdgpu avif bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus dist-kernel djvu dracut dri dts dvd dvdr echo-cancel elgind elogind encode exif ffmpeg flac fontconfig gdbm gif gpm grub gtk gui iconv icu imagemagick ipv6 jpeg jpeg2k jpegxl kvazaar lcms libnotify libtirpc lm-sensors lzma mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg openal opencl opengl openmp osmesa pam pango pcre pdf pipewire png policykit ppds qml qt6 radeonsi raw readline rocm samba savedconfig screencast sdl seccomp sound spell ssl startup-notification svg test-rust thunderbolt tiff truetype udev udisks unicode upower usb v4l vorbis wayland webp wifi wxwidgets x264 x265 xattr xcb xft xml xv xvid zeroconf zip zlib znver1" ABI_X86="64" ADA_TARGET="gcc_15" 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 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl avx_vnni bmi1 bmi2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-3" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32 ruby33" VIDEO_CARDS="amdgpu radeonsi" 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, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
emerge-pqv for webkit

Code: Select all

[ebuild  N    ] net-libs/webkit-gtk-2.50.4-r600  USE="X avif gstreamer introspection jpegxl (jumbo-build) lcms pdf (seccomp) spell wayland (-aqua) -examples -gamepad -keyring -systemd"
emerge webkit build log
https://codeberg.org/sonofnet/gentoo/sr ... -build-log

[Administrator edit: broke long whitespace-free lines in code tags to fix thread layout. -Hu]
Last edited by sonofnet on Mon Feb 02, 2026 12:25 pm, edited 3 times in total.
Top
flexibeast
l33t
l33t
Posts: 679
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Sun Feb 01, 2026 11:11 pm

Code: Select all

>>> Compiling source in /var/tmp/portage/net-libs/webkit-gtk-2.50.4-r600/work/webkitgtk-2.50.4 ...

// removed a bunch of code, tell me if I need to post the whole 4.5Mb of it.

ninja: build stopped: subcommand failed.
Yes, you need to share a link to a paste of the full log; the bit you snipped out will probably show the actual error, which might point to the underlying issue. The bit at the end you retained is just showing that the build system (Ninja) attempted to execute a command, which failed ("subcommand failed'), but unfortunately Ninja doesn't feel like giving us the details. (Here's a comment by me on a longstanding open issue about this.)
https://wiki.gentoo.org/wiki/User:Flexibeast
My most recent wiki contributions
Top
sonofnet
n00b
n00b
Posts: 25
Joined: Fri Jan 05, 2007 11:53 pm

  • Quote

Post by sonofnet » Mon Feb 02, 2026 2:20 am

flexibeast wrote:

Code: Select all

>>> Compiling source in /var/tmp/portage/net-libs/webkit-gtk-2.50.4-r600/work/webkitgtk-2.50.4 ...

// removed a bunch of code, tell me if I need to post the whole 4.5Mb of it.

ninja: build stopped: subcommand failed.
Yes, you need to share a link to a paste of the full log; the bit you snipped out will probably show the actual error, which might point to the underlying issue. The bit at the end you retained is just showing that the build system (Ninja) attempted to execute a command, which failed ("subcommand failed'), but unfortunately Ninja doesn't feel like giving us the details. (Here's a comment by me on a longstanding open issue about this.)
I've uploaded two full build reports:
https://codeberg.org/sonofnet/gentoo/sr ... dejs-error
https://codeberg.org/sonofnet/gentoo/sr ... -build-log
Top
jburns
Veteran
Veteran
Posts: 1255
Joined: Thu Jan 18, 2007 4:44 am
Location: Massachusetts USA

  • Quote

Post by jburns » Mon Feb 02, 2026 5:03 am

Code: Select all

MAKEOPTS="-j32 -l32" 
-j32 is too big. Try -j16 or add swap space. With -j32 you should have 64G of memory available.

You should also have EMERGE_DEFAULT_OPTS defined with a job limit unless you define a job limit with the emerge command.
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Mon Feb 02, 2026 7:18 am

Yes, this is the out of memory error from build.log

Code: Select all

x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
See in dmesg too.
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Mon Feb 02, 2026 10:24 am

1st error was this

Code: Select all

FAILED: [code=1] obj/deps/v8/src/maglev/v8_base_without_compiler.maglev-code-generator.o

Jburns is right, -j32 is probably too much given you have 32g memory.
I would also set load to 16, in other words -j16 -l16
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
sonofnet
n00b
n00b
Posts: 25
Joined: Fri Jan 05, 2007 11:53 pm

  • Quote

Post by sonofnet » Mon Feb 02, 2026 12:27 pm

Josef.95 wrote:Yes, this is the out of memory error from build.log

Code: Select all

x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
See in dmesg too.
Thanks, guys, that worked! Couldn't figure it out myself.
Top
sonofnet
n00b
n00b
Posts: 25
Joined: Fri Jan 05, 2007 11:53 pm

  • Quote

Post by sonofnet » Mon Feb 02, 2026 12:39 pm

jburns wrote:

Code: Select all

MAKEOPTS="-j32 -l32" 
-j32 is too big. Try -j16 or add swap space. With -j32 you should have 64G of memory available.

You should also have EMERGE_DEFAULT_OPTS defined with a job limit unless you define a job limit with the emerge command.
I'm trying to figure out the right settings for my setup.
I've got 16 cores, 32 threads, 32Gb of RAM.

MAKEOPTS="-jN -lM" <<<<<<<< that gives me number of simultanious compiling jobs?
EMERGE_DEFAULT_OPTS="-jX -lY" <<<<<<<< that gives me a total parallel number of downloading, configuring, compiling and installing/copying jobs, right?
PORTAGE_NICENESS="Z" <<<<<<<< that one decides the priority of the portage process, otherwise kills processes that are less valuable, right?

My guess would be smth like this:

MAKEOPTS="-j4 -lM" <<<<<<<< what does load mean? How much of the resources do a leave out for comfortable work?
EMERGE_DEFAULT_OPTS="-j4 -lY" <<<<<<<< does this load mean the same thing?
PORTAGE_NICENESS="1"

So load should be N*0.7 if I want portage to take 70% of the resources? Is that right?
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Mon Feb 02, 2026 8:59 pm

-j is the number of jobs to run, ie number of cpu processors to use
-l says stay below the system load average

man emerge and look for --load-average

I personally don't use the load average flag, I adjust the # of jobs instead.
But if I were going to use the -l flag, I'd set it no higher than the -j flag.
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
Banana
Moderator
Moderator
User avatar
Posts: 2371
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Tue Feb 03, 2026 7:23 am

There is also a wikipage about MAKEOPTS. It may help to clarify things.
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
sonofnet
n00b
n00b
Posts: 25
Joined: Fri Jan 05, 2007 11:53 pm

  • Quote

Post by sonofnet » Tue Feb 03, 2026 7:57 am

Anon-E-moose wrote:-j is the number of jobs to run, ie number of cpu processors to use
-l says stay below the system load average

man emerge and look for --load-average

I personally don't use the load average flag, I adjust the # of jobs instead.
But if I were going to use the -l flag, I'd set it no higher than the -j flag.
Thanks, that's helps a little!
Top
sonofnet
n00b
n00b
Posts: 25
Joined: Fri Jan 05, 2007 11:53 pm

  • Quote

Post by sonofnet » Tue Feb 03, 2026 8:05 am

Banana wrote:There is also a wikipage about MAKEOPTS. It may help to clarify things.
Thank you, I did read it, but when you're not a developer, it is hard to grasp the difference between different stages of a build.

Like MAKEOPTS limits how many parallel make jobs when invoked.
And EMERGE_DEFAULT_OPTS allows for parallel emerge operations. Make is a part of emerge operations is it?

So I'm trying to figure out the difference. I'm guessing that DEFAULT_OPTS is a bigger thing, that contains make operations. So MAKEOPTS is how many make spawn inside one emerge. Is that correct? That's not very clear for me from the wiki.


BTW, this might be helpful in the handbook with emerge steps added.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56076
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Feb 03, 2026 9:28 am

sonofnet,

There are two levels of parrallism going on here.
MAKEOPS sets the number of concurrent make threads that any one package can use.
Emerge --jobs sets the number of packages that portage will build concurrently.

This means that it's possible to have MAKEOPTS processes running for each portage job.
They may all want 2G RAM too.

It gets worse loadaverage is a laggy measure. I don't use it.

It's possible to set MAKEOPTS per package too.
Then there is steve, see the Wiki.
Steve is a global job control system. It may still be in ~arch, so it may be marked for you.
Again, there is a wiki page.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Banana
Moderator
Moderator
User avatar
Posts: 2371
Joined: Fri May 21, 2004 12:02 pm
Location: Germany
Contact:
Contact Banana
Website

  • Quote

Post by Banana » Tue Feb 03, 2026 11:35 am

sonofnet wrote:...
BTW, this might be helpful in the handbook with emerge steps added.
Important note: The mentioned resource is NOT an offical gentoo documentation, but rather some AI-generated text. Use only at own risk.
DeepWiki started as a closed-source project by DevinAI, aiming to solve this universal developer pain point. The idea was simple but powerful: automatically generate comprehensive documentation for any GitHub repository using AI.
There is already a part about it in the official gentoo documentation: https://wiki.gentoo.org/wiki/Handbook:A ... e#MAKEOPTS
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Top
sonofnet
n00b
n00b
Posts: 25
Joined: Fri Jan 05, 2007 11:53 pm

  • Quote

Post by sonofnet » Wed Feb 04, 2026 11:56 am

NeddySeagoon wrote:sonofnet,

There are two levels of parrallism going on here.
MAKEOPS sets the number of concurrent make threads that any one package can use.
Emerge --jobs sets the number of packages that portage will build concurrently.

This means that it's possible to have MAKEOPTS processes running for each portage job.
They may all want 2G RAM too.

It gets worse loadaverage is a laggy measure. I don't use it.

It's possible to set MAKEOPTS per package too.
Then there is steve, see the Wiki.
Steve is a global job control system. It may still be in ~arch, so it may be marked for you.
Again, there is a wiki page.
Thanks, for clarification! It is helpful. Didn't know about steve.
Top
sonofnet
n00b
n00b
Posts: 25
Joined: Fri Jan 05, 2007 11:53 pm

  • Quote

Post by sonofnet » Wed Feb 04, 2026 11:57 am

Banana wrote:
sonofnet wrote:...
BTW, this might be helpful in the handbook with emerge steps added.
Important note: The mentioned resource is NOT an offical gentoo documentation, but rather some AI-generated text. Use only at own risk.
DeepWiki started as a closed-source project by DevinAI, aiming to solve this universal developer pain point. The idea was simple but powerful: automatically generate comprehensive documentation for any GitHub repository using AI.
There is already a part about it in the official gentoo documentation: https://wiki.gentoo.org/wiki/Handbook:A ... e#MAKEOPTS
Thanks!

I have no more questions on this topic here. Thank you all for your answers!
Top
Post Reply

16 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy