Forums

Skip to content

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

Emerge of zig-0.15.1 failing

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
gjy0724
Apprentice
Apprentice
User avatar
Posts: 186
Joined: Sat Jun 11, 2005 2:20 pm
Location: Lock Haven, Pennsylvania

Emerge of zig-0.15.1 failing

  • Quote

Post by gjy0724 » Sun Mar 29, 2026 7:24 pm

I am trying to install Zig 0.15.1 on one of my laptops. I have already installed in on 3 other gentoo systems without issue but this last one keeps failing on me. Any ideas would be greatly appreciated.

Code: Select all

Portage 3.0.77 (python 3.13.11-final-0, default/linux/amd64/23.0, gcc-15, glibc-2.42-r5, 6.12.74-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.74-gentoo-x86_64-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-1165G7_@_2.80GHz-with-glibc2.42
KiB Mem:    32608864 total,  14052904 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sun, 29 Mar 2026 15:46:02 +0000
Head commit of repository gentoo: 7fa3d4a77498d179c72218ae0b9dccc17b3c0a2d

Head commit of repository brave-overlay: 3a86dc94b4d869280db509576801f1434498a805

Timestamp of repository guru: Sat, 28 Mar 2026 18:02:08 +0000
Head commit of repository guru: 966b3375ebb50240701b6dff21c8ae49dbddf166

Head commit of repository pf4public: 7dc25150354ce593df3cfcdaac9b43c8730f71da

Head commit of repository xlibre: 2c4eb3a8577dd7efbc149ee01bb48a56c7b3b0f2

sh bash 5.3_p9
ld GNU ld (Gentoo 2.46.0 p1) 2.46.0
app-misc/pax-utils:        1.3.10::gentoo
app-shells/bash:           5.3_p9::gentoo
dev-build/autoconf:        2.72-r6::gentoo
dev-build/automake:        1.18.1::gentoo
dev-build/cmake:           4.1.4::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r102::gentoo
dev-build/meson:           1.9.2::gentoo
dev-java/java-config:      2.3.4::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.92.0::gentoo
llvm-core/clang:           20.1.8::gentoo, 21.1.8::gentoo
llvm-core/lld:             20.1.8::gentoo
llvm-core/llvm:            20.1.8::gentoo, 21.1.8::gentoo
sys-apps/baselayout:       2.18::gentoo
sys-apps/openrc:           0.63-r1::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-devel/binutils:        2.46.0::gentoo
sys-devel/binutils-config: 5.6::gentoo
sys-devel/gcc:             15.2.1_p20260214::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: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: true

brave-overlay
    location: /var/db/repos/brave-overlay
    sync-type: git
    sync-uri: https://gitlab.com/jason.oliveira/brave-overlay.git
    masters: gentoo
    volatile: False

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

n8hth
    location: /home/gjy5069/git-GJY/n8hth
    masters: gentoo
    volatile: True

pf4public
    location: /var/db/repos/pf4public
    sync-type: git
    sync-uri: https://github.com/PF4Public/gentoo-overlay.git
    masters: gentoo
    volatile: False

xlibre
    location: /var/db/repos/xlibre
    sync-type: git
    sync-uri: https://github.com/X11Libre/ports-gentoo.git
    masters: gentoo
    priority: 100
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc"
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="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j8"
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"
SHELL="/bin/bash"
USE="X acl alsa amd64 bash-completion bluetooth branding bzip2 cet cleartype corefonts crypt cups dbus elogind ffmpeg gdbm gnome-keyring gui iconv ipv6 jpeg jpg libtirpc multilib ncurses nls nvidia ogg openmp pam pcre png pulseaudio readline seccomp ssl test-rust tk truetype type1 unicode vim-syntax vorbis vulkan xattr xvmc zlib" 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="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oncore skytraq superstar2 tsip tripmate tnt" 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" QEMU_SOFTMMU_TARGETS="arm x86_64 sparc" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby32 ruby33" SANE_BACKENDS="hp" VIDEO_CARDS="nvidia" 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, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
It keeps failing at the same point with the same error.

Code: Select all

[18/18] : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs  -Wl,-z,stack-size=0x10000000  -Wl,--dependency-file=CMakeFiles/zig2.dir/link.d CMakeFiles/zig2.dir/zig2.c.o CMakeFiles/zig2.dir/compiler_rt.c.o -o zig2 -L/usr/lib/llvm/20/lib64 -Wl,-rpath,/usr/lib/llvm/20/lib64  zigcpp/libzigcpp.a  /usr/lib/llvm/20/lib64/libclang-cpp.so.20.1  /usr/lib/llvm/20/lib64/liblldMinGW.so  /usr/lib/llvm/20/lib64/liblldELF.so  /usr/lib/llvm/20/lib64/liblldCOFF.so  /usr/lib/llvm/20/lib64/liblldWasm.so  /usr/lib/llvm/20/lib64/liblldMachO.so  /usr/lib/llvm/20/lib64/liblldCommon.so  /usr/lib/llvm/20/lib64/libLLVM-20.so && :
 * ZBS: compiling with: -j8 -Dtarget=native -Dcpu=native --release=safe --prefix /usr/ --prefix-exe-dir bin/ --prefix-lib-dir lib64/ --prefix-include-dir include/ --libc /var/tmp/portage/dev-lang/zig-0.15.1/temp/zig_libc.txt --summary all --verbose --build-file /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/build.zig --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/ --prefix //usr/lib64/zig/0.15.1/ --prefix-lib-dir lib/ -Dno-langref=true -Dstd-docs=false -Ddebug-extensions=false --release=fast -Denable-llvm=true -Dstatic-llvm=false -Dconfig_h=/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.h --prefix stage3/
/var/tmp/portage/dev-lang/zig-0.15.1/temp/environment: line 1803:    99 Segmentation fault         "${ZIG_EXE}" "${@}"
 * Failed to run command: ./zig2 build -j8 -Dtarget=native -Dcpu=native --release=safe --prefix /usr/ --prefix-exe-dir bin/ --prefix-lib-dir lib64/ --prefix-include-dir include/ --libc /var/tmp/portage/dev-lang/zig-0.15.1/temp/zig_libc.txt --summary all --verbose --build-file /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/build.zig --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/ --prefix //usr/lib64/zig/0.15.1/ --prefix-lib-dir lib/ -Dno-langref=true -Dstd-docs=false -Ddebug-extensions=false --release=fast -Denable-llvm=true -Dstatic-llvm=false -Dconfig_h=/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.h --prefix stage3/
 * ERROR: dev-lang/zig-0.15.1::gentoo failed (compile phase):
 *   ZBS: compilation failed
 * 
 * Call stack:
 *     ebuild.sh, line  143:  Called src_compile
 *   environment, line 3367:  Called zig_src_compile '--prefix' 'stage3/'
 *   environment, line 5223:  Called die
 * The specific snippet of code:
 *       DESTDIR="${BUILD_DIR}" nonfatal ezig build "${args[@]}" || die "ZBS: compilation failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/zig-0.15.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/zig-0.15.1::gentoo'`.
 * The complete build log is located at '/var/log/portage/dev-lang:zig-0.15.1:20260329-175415.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/zig-0.15.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/zig-0.15.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build'
 * S: '/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1'
Here is the log file...

Code: Select all

 * 39;49;00mPackage:    dev-lang/zig-0.15.1:0.15
 * 39;49;00mRepository: gentoo
 * 39;49;00mMaintainer: bratishkaerik@landless-city.net proxy-maint@gentoo.org
 * 39;49;00mUpstream:   https://codeberg.org/ziglang/zig/issues
 * 39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux llvm llvm_slot_20
 * 39;49;00mFEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * ZIG_EXE:    "not-applicable"
 * ZIG_VER:     0.15.1
 * ZIG_TARGET:  native
 * ZIG_CPU:     native
 * Using /usr/lib/llvm/20 for CBUILD LLVM 20
 * Checking for at least 4 GiB RAM ...
 34;01m[ 32;01mok34;01m ]
>>> Unpacking source...
>>> Unpacking 'zig-0.15.1.tar.xz' to /var/tmp/portage/dev-lang/zig-0.15.1/work
>>> Source unpacked in /var/tmp/portage/dev-lang/zig-0.15.1/work
>>> Preparing source in /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 ...
 * Applying zig-0.15.1-reduce-command-new-writer.patch ...
 34;01m[ 32;01mok34;01m ]
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build"
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 ...
 * ZBS: configured with:
 * -j8 -Dtarget=native -Dcpu=native --release=safe --prefix /usr/ --prefix-exe-dir bin/ --prefix-lib-dir lib64/ --prefix-include-dir include/ --libc /var/tmp/portage/dev-lang/zig-0.15.1/temp/zig_libc.txt --summary all --verb
ose --build-file /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/build.zig --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/ --prefix //usr/lib64/zig/0.15.1/ --prefix-lib-dir lib/ -Dno-langref=true
 -Dstd-docs=false -Ddebug-extensions=false --release=fast -Denable-llvm=true -Dstatic-llvm=false -Dconfig_h=/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.h
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build"
cmake -C /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DZIG_SHARED_LLVM=ON -DZIG_USE_LLVM_CONFIG=ON -DZIG_HOST_TARGET_TRIPLE=x86_64-linux-gnu -DCM
AKE_FIND_USE_PACKAGE_ROOT_PATH=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/gentoo_toolchain.cmake /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15
.1
loading initial cache file /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring zig version 0.15.1
-- Found llvm: /usr/lib/llvm/20/lib64/libLLVM-20.so (Required is at least version "20")
-- Found clang: /usr/lib/llvm/20/lib64/libclang-cpp.so.20.1 (Required is at least version "20")
-- Found lld: /usr/lib/llvm/20/lib64/liblldMinGW.so;/usr/lib/llvm/20/lib64/liblldELF.so;/usr/lib/llvm/20/lib64/liblldCOFF.so;/usr/lib/llvm/20/lib64/liblldWasm.so;/usr/lib/llvm/20/lib64/liblldMachO.so;/usr/lib/llvm/20/lib64/l
iblldCommon.so (Required is at least version "20")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe
C++             -march=native -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Module          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Shared          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs

-- Configuring done (0.6s)
-- Generating done (0.0s)
-- Build files have been written to: /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build"
ninja -v -l0 -j8 zig2
[1/18] /usr/bin/x86_64-pc-linux-gnu-gcc    -march=native -O2 -pipe -std=c99 -O2 -MD -MT CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o -MF CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o.d -o CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1/wasm2c.c
[2/18] : && /usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--dependency-file=CMakeFiles/zig-wasm2c.dir/link.d CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o -o zig-wasm2c -L/usr/lib/llvm/20/lib64  && :
[3/18] cd /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 && /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig-wasm2c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1/zig1.wasm /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig1.c
[4/18] /usr/bin/x86_64-pc-linux-gnu-gcc    -march=native -O2 -pipe -std=c99 -Os -MD -MT CMakeFiles/zig1.dir/stage1/wasi.c.o -MF CMakeFiles/zig1.dir/stage1/wasi.c.o.d -o CMakeFiles/zig1.dir/stage1/wasi.c.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1/wasi.c
[5/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=native -O2 -pipe -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_llvm-ar.cpp
[6/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=native -O2 -pipe -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_clang_cc1as_main.cpp
[7/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=native -O2 -pipe -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_clang_driver.cpp
[8/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=native -O2 -pipe -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_clang.cpp
[9/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=native -O2 -pipe -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_clang_cc1_main.cpp
[10/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=native -O2 -pipe -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_llvm.cpp
[11/18] : && /usr/bin/cmake -E rm -f zigcpp/libzigcpp.a && /usr/bin/x86_64-pc-linux-gnu-ar qc zigcpp/libzigcpp.a  CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o && /usr/bin/x86_64-pc-linux-gnu-ranlib zigcpp/libzigcpp.a && :
[12/18] /usr/bin/x86_64-pc-linux-gnu-gcc    -march=native -O2 -pipe -std=c99 -Os -MD -MT CMakeFiles/zig1.dir/zig1.c.o -MF CMakeFiles/zig1.dir/zig1.c.o.d -o CMakeFiles/zig1.dir/zig1.c.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig1.c
[13/18] : && /usr/bin/x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--dependency-file=CMakeFiles/zig1.dir/link.d CMakeFiles/zig1.dir/zig1.c.o CMakeFiles/zig1.dir/stage1/wasi.c.o -o zig1 -L/usr/lib/llvm/20/lib64 -Wl,-rpath,/usr/lib/llvm/20/lib64  -lm && :
[14/18] cd /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 && /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig1 /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib build-obj -ofmt=c -OReleaseSmall --name compiler_rt -femit-bin="/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/compiler_rt.c" -target x86_64-linux-gnu -Mroot=lib/compiler_rt.zig
[15/18] cd /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 && /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig1 /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib build-exe -ofmt=c -lc -OReleaseSmall --name zig2 -femit-bin="/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig2.c" -target x86_64-linux-gnu --dep build_options --dep aro -Mroot=src/main.zig -Mbuild_options=/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.zig -Maro=lib/compiler/aro/aro.zig
[16/18] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1 -I/usr/lib/llvm/20/include  -march=native -O2 -pipe -std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/compiler_rt.c.o -MF CMakeFiles/zig2.dir/compiler_rt.c.o.d -o CMakeFiles/zig2.dir/compiler_rt.c.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/compiler_rt.c
[17/18] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1 -I/usr/lib/llvm/20/include  -march=native -O2 -pipe -std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/zig2.c.o -MF CMakeFiles/zig2.dir/zig2.c.o.d -o CMakeFiles/zig2.dir/zig2.c.o -c /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig2.c
[18/18] : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs  -Wl,-z,stack-size=0x10000000  -Wl,--dependency-file=CMakeFiles/zig2.dir/link.d CMakeFiles/zig2.dir/zig2.c.o CMakeFiles/zig2.dir/compiler_rt.c.o -o zig2 -L/usr/lib/llvm/20/lib64 -Wl,-rpath,/usr/lib/llvm/20/lib64  zigcpp/libzigcpp.a  /usr/lib/llvm/20/lib64/libclang-cpp.so.20.1  /usr/lib/llvm/20/lib64/liblldMinGW.so  /usr/lib/llvm/20/lib64/liblldELF.so  /usr/lib/llvm/20/lib64/liblldCOFF.so  /usr/lib/llvm/20/lib64/liblldWasm.so  /usr/lib/llvm/20/lib64/liblldMachO.so  /usr/lib/llvm/20/lib64/liblldCommon.so  /usr/lib/llvm/20/lib64/libLLVM-20.so && :
 * ZBS: compiling with: -j8 -Dtarget=native -Dcpu=native --release=safe --prefix /usr/ --prefix-exe-dir bin/ --prefix-lib-dir lib64/ --prefix-include-dir include/ --libc /var/tmp/portage/dev-lang/zig-0.15.1/temp/zig_libc.txt --summary all --verbose --build-file /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/build.zig --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/ --prefix //usr/lib64/zig/0.15.1/ --prefix-lib-dir lib/ -Dno-langref=true -Dstd-docs=false -Ddebug-extensions=false --release=fast -Denable-llvm=true -Dstatic-llvm=false -Dconfig_h=/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.h --prefix stage3/
/var/tmp/portage/dev-lang/zig-0.15.1/temp/environment: line 1803:    99 Segmentation fault         "${ZIG_EXE}" "${@}"
 31;01m* Failed to run command: ./zig2 build -j8 -Dtarget=native -Dcpu=native --release=safe --prefix /usr/ --prefix-exe-dir bin/ --prefix-lib-dir lib64/ --prefix-include-dir include/ --libc /var/tmp/portage/dev-lang/zig-0.15.1/temp/zig_libc.txt --summary all --verbose --build-file /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/build.zig --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/ --prefix //usr/lib64/zig/0.15.1/ --prefix-lib-dir lib/ -Dno-langref=true -Dstd-docs=false -Ddebug-extensions=false --release=fast -Denable-llvm=true -Dstatic-llvm=false -Dconfig_h=/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.h --prefix stage3/
 31;01m* ERROR: dev-lang/zig-0.15.1::gentoo failed (compile phase):
 31;01m*   ZBS: compilation failed
 31;01m* 
 31;01m* Call stack:
 31;01m*     ebuild.sh, line  143:  Called src_compile
 31;01m*   environment, line 3367:  Called zig_src_compile '--prefix' 'stage3/'
 31;01m*   environment, line 5223:  Called die
 31;01m* The specific snippet of code:
 31;01m*       DESTDIR="${BUILD_DIR}" nonfatal ezig build "${args[@]}" || die "ZBS: compilation failed";
 31;01m* 
 31;01m* If you need support, post the output of `emerge --info '=dev-lang/zig-0.15.1::gentoo'`,
 31;01m* the complete build log and the output of `emerge -pqv '=dev-lang/zig-0.15.1::gentoo'`.
 31;01m* The complete build log is located at '/var/log/portage/dev-lang:zig-0.15.1:20260329-175415.log'.
 31;01m* For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-lang/zig-0.15.1/temp/build.log'.
 31;01m* The ebuild environment file is located at '/var/tmp/portage/dev-lang/zig-0.15.1/temp/environment'.
 31;01m* Working directory: '/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build'
 31;01m* S: '/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1'
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun Mar 29, 2026 8:27 pm

Here's

Code: Select all

[U] dev-lang/zig
     Available versions:  
     (0.13) 0.13.0-r3
     (0.14) (~)0.14.0^t[2] 0.14.1^t
     (0.15) 0.15.1^t (~)0.15.2^t
     (9999) (**)9999*l^t **9999*l^t[2] **9999-r0*l^t[2] **9999-r1*l^t[2]
       {debug doc +llvm verify-sig LLVM_SLOT="+18 +19 +20 +21"}
     Installed versions:  0.13.0-r3(0.13)(01:15:33 27/02/2025)(doc llvm verify-sig -debug LLVM_SLOT="18") 0.14.1(0.14)(09:56:36 17/07/2025)(doc llvm verify-sig -debug LLVM_SLOT="19") 0.15.2(0.15)(05:18:11 18/11/2025)(doc llvm verify-sig -debug LLVM_SLOT="20")
     Homepage:            https://ziglang.org/
     Description:         A robust, optimal, and maintainable programming language
log snippet from previously installed dev-lang/zig:0.15:

Code: Select all

 * Package:    dev-lang/zig-0.15.1:0.15
 * Repository: gentoo
 * Maintainer: bratishkaerik@landless-city.net proxy-maint@gentoo.org
 * Upstream:   https://github.com/ziglang/zig/issues
 * USE:        abi_x86_64 amd64 doc elibc_glibc kernel_linux llvm llvm_slot_20 verify-sig
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * ZIG_EXE:    "not-applicable"
 * ZIG_VER:     0.15.1
 * ZIG_TARGET:  native
 * ZIG_CPU:     core2
 * Using /usr/lib/llvm/20 for CBUILD LLVM 20
 * Checking for at least 4 GiB RAM ...
 * Amount of main memory is insufficient, but amount
 * of main memory combined with swap is sufficient.
 * Build process may make computer very slow!
 [ ok ]
>>> Unpacking source...
 * Verifying zig-0.15.1.tar.xz ...
Signature and comment signature verified
Trusted comment: timestamp:1755645925	file:zig-0.15.1.tar.xz	hashed
>>> Unpacking 'zig-0.15.1.tar.xz' to /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work
=== Skipping unpack of 'zig-0.15.1.tar.xz.minisig'
>>> Source unpacked in /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work
>>> Preparing source in /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 ...
 * Applying zig-0.15.1-reduce-command-new-writer.patch ...
 [ ok ]
 * Source directory (CMAKE_USE_DIR): "/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1"
 * Build directory  (BUILD_DIR):     "/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build"
>>> Source prepared.
>>> Configuring source in /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 ...
 * ZBS: configured with:
 * -j2 -Dtarget=native -Dcpu=core2 --release=safe --prefix /usr/ --prefix-exe-dir bin/ --prefix-lib-dir lib64/ --prefix-include-dir include/ --libc /var/no-tmpfs/portage/dev-lang/zig-0.15.1/temp/zig_libc.txt --summary all --verbose --build-file /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/build.zig --zig-lib-dir /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/ --prefix //usr/lib64/zig/0.15.1/ --prefix-lib-dir lib/ -Dno-langref=true -Dstd-docs=false -Ddebug-extensions=false --release=fast -Denable-llvm=true -Dstatic-llvm=false -Dconfig_h=/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.h
 * Source directory (CMAKE_USE_DIR): "/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1"
 * Build directory  (BUILD_DIR):     "/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build"
cmake -C /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DZIG_SHARED_LLVM=ON -DZIG_USE_LLVM_CONFIG=ON -DZIG_HOST_TARGET_TRIPLE=x86_64-linux-gnu -DCMAKE_FIND_USE_PACKAGE_ROOT_PATH=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/gentoo_toolchain.cmake /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1
loading initial cache file /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 14.3.1
-- The CXX compiler identification is GNU 14.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring zig version 0.15.1
-- Found llvm: /usr/lib/llvm/20/lib64/libLLVM-20.so (Required is at least version "20")
-- Found clang: /usr/lib/llvm/20/lib64/libclang-cpp.so.20.1 (Required is at least version "20")
-- Found lld: /usr/lib/llvm/20/lib64/liblldMinGW.so;/usr/lib/llvm/20/lib64/liblldELF.so;/usr/lib/llvm/20/lib64/liblldCOFF.so;/usr/lib/llvm/20/lib64/liblldWasm.so;/usr/lib/llvm/20/lib64/liblldMachO.so;/usr/lib/llvm/20/lib64/liblldCommon.so (Required is at least version "20")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries
C++             -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries
Linker flags:
Executable      -Wl,-O1 -Wl,-fuse-ld=ld.lld
Module          -Wl,-O1 -Wl,-fuse-ld=ld.lld
Shared          -Wl,-O1 -Wl,-fuse-ld=ld.lld

-- Configuring done (4.0s)
-- Generating done (0.5s)
-- Build files have been written to: /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build
>>> Source configured.
>>> Compiling source in /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 ...
 * Source directory (CMAKE_USE_DIR): "/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1"
 * Build directory  (BUILD_DIR):     "/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build"
ninja -v -j2 -l2 zig2
[1/18] /usr/bin/x86_64-pc-linux-gnu-gcc    -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -std=c99 -O2 -MD -MT CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o -MF CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o.d -o CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1/wasm2c.c
[2/18] : && /usr/bin/x86_64-pc-linux-gnu-gcc -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -Wl,-O1 -Wl,-fuse-ld=ld.lld -Wl,--dependency-file=CMakeFiles/zig-wasm2c.dir/link.d CMakeFiles/zig-wasm2c.dir/stage1/wasm2c.c.o -o zig-wasm2c -L/usr/lib/llvm/20/lib64  && :
[3/18] cd /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 && /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig-wasm2c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1/zig1.wasm /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig1.c
[4/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_llvm.cpp
[5/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_llvm-ar.cpp
[6/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_clang.cpp
[7/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_clang_driver.cpp
[8/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_clang_cc1_main.cpp
[9/18] /usr/bin/x86_64-pc-linux-gnu-g++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm/20/include  -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -fno-exceptions -fno-rtti -fno-stack-protector -fvisibility-inlines-hidden -Wno-type-limits -Wno-missing-braces -Wno-comment -MD -MT CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o -MF CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o.d -o CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/src/zig_clang_cc1as_main.cpp
[10/18] /usr/bin/x86_64-pc-linux-gnu-gcc    -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -std=c99 -Os -MD -MT CMakeFiles/zig1.dir/zig1.c.o -MF CMakeFiles/zig1.dir/zig1.c.o.d -o CMakeFiles/zig1.dir/zig1.c.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig1.c
[11/18] /usr/bin/x86_64-pc-linux-gnu-gcc    -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -std=c99 -Os -MD -MT CMakeFiles/zig1.dir/stage1/wasi.c.o -MF CMakeFiles/zig1.dir/stage1/wasi.c.o.d -o CMakeFiles/zig1.dir/stage1/wasi.c.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1/wasi.c
[12/18] : && /usr/bin/cmake -E rm -f zigcpp/libzigcpp.a && /usr/bin/x86_64-pc-linux-gnu-ar qc zigcpp/libzigcpp.a  CMakeFiles/zigcpp.dir/src/zig_llvm.cpp.o CMakeFiles/zigcpp.dir/src/zig_llvm-ar.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_driver.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_cc1_main.cpp.o CMakeFiles/zigcpp.dir/src/zig_clang_cc1as_main.cpp.o && /usr/bin/x86_64-pc-linux-gnu-ranlib zigcpp/libzigcpp.a && :
[13/18] : && /usr/bin/x86_64-pc-linux-gnu-gcc -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -Wl,-O1 -Wl,-fuse-ld=ld.lld -Wl,--dependency-file=CMakeFiles/zig1.dir/link.d CMakeFiles/zig1.dir/zig1.c.o CMakeFiles/zig1.dir/stage1/wasi.c.o -o zig1 -L/usr/lib/llvm/20/lib64 -Wl,-rpath,/usr/lib/llvm/20/lib64  -lm && :
[14/18] cd /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 && /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig1 /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib build-exe -ofmt=c -lc -OReleaseSmall --name zig2 -femit-bin="/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig2.c" -target x86_64-linux-gnu --dep build_options --dep aro -Mroot=src/main.zig -Mbuild_options=/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.zig -Maro=lib/compiler/aro/aro.zig
[15/18] cd /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 && /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig1 /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib build-obj -ofmt=c -OReleaseSmall --name compiler_rt -femit-bin="/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/compiler_rt.c" -target x86_64-linux-gnu -Mroot=lib/compiler_rt.zig
[16/18] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1 -I/usr/lib/llvm/20/include  -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/zig2.c.o -MF CMakeFiles/zig2.dir/zig2.c.o.d -o CMakeFiles/zig2.dir/zig2.c.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/zig2.c
[17/18] /usr/bin/x86_64-pc-linux-gnu-gcc -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/stage1 -I/usr/lib/llvm/20/include  -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -std=c99 -O0 -fno-sanitize=undefined -fno-stack-protector -MD -MT CMakeFiles/zig2.dir/compiler_rt.c.o -MF CMakeFiles/zig2.dir/compiler_rt.c.o.d -o CMakeFiles/zig2.dir/compiler_rt.c.o -c /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/compiler_rt.c
[18/18] : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=core2 -mtune=native -O2 -pipe -Wa,-mbranches-within-32B-boundaries -Wl,-O1 -Wl,-fuse-ld=ld.lld  -Wl,-z,stack-size=0x10000000  -Wl,--dependency-file=CMakeFiles/zig2.dir/link.d CMakeFiles/zig2.dir/zig2.c.o CMakeFiles/zig2.dir/compiler_rt.c.o -o zig2 -L/usr/lib/llvm/20/lib64 -Wl,-rpath,/usr/lib/llvm/20/lib64  zigcpp/libzigcpp.a  /usr/lib/llvm/20/lib64/libclang-cpp.so.20.1  /usr/lib/llvm/20/lib64/liblldMinGW.so  /usr/lib/llvm/20/lib64/liblldELF.so  /usr/lib/llvm/20/lib64/liblldCOFF.so  /usr/lib/llvm/20/lib64/liblldWasm.so  /usr/lib/llvm/20/lib64/liblldMachO.so  /usr/lib/llvm/20/lib64/liblldCommon.so  /usr/lib/llvm/20/lib64/libLLVM-20.so && :
 * ZBS: compiling with: -j2 -Dtarget=native -Dcpu=core2 --release=safe --prefix /usr/ --prefix-exe-dir bin/ --prefix-lib-dir lib64/ --prefix-include-dir include/ --libc /var/no-tmpfs/portage/dev-lang/zig-0.15.1/temp/zig_libc.txt --summary all --verbose --build-file /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/build.zig --zig-lib-dir /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/ --prefix //usr/lib64/zig/0.15.1/ --prefix-lib-dir lib/ -Dno-langref=true -Dstd-docs=false -Ddebug-extensions=false --release=fast -Denable-llvm=true -Dstatic-llvm=false -Dconfig_h=/var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.h --prefix stage3/
git -C /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1 --git-dir .git describe --match "*.*.*" --tags --abbrev=9
/usr/bin/x86_64-pc-linux-gnu-g++ -print-file-name=libstdc++.so
install -d /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/stage3/lib/zig/libcxxabi
x86_64-pc-linux-gnu-pkg-config --list-all
install -C /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/libcxxabi/LICENSE.TXT /var/no-tmpfs/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/stage3/lib/zig/libcxxabi/LICENSE.TXT
Hoping this can help...

Thks 4 ur attention, interest & support.
Last edited by CaptainBlood on Sun Mar 29, 2026 8:42 pm, edited 1 time in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Sun Mar 29, 2026 8:37 pm

Don't forget

Code: Select all

[I] dev-lang/zig-bin
     Available versions:  
     (0.10) ~0.10.1-r3 ~0.10.1-r3[2]
     (0.13) 0.13.0 0.13.0[2]
     (0.14) 0.14.1 0.14.1[2]
     (0.15) 0.15.1 0.15.1[2] (~)0.15.2 (~)0.15.2[2]
     (9999) (~)9999[2] ~9999-r0[2] ~9999-r1[2] ~9999-r2[2] ~9999-r3[2] ~9999-r4[2] ~9999-r5[2] ~9999-r6[2] ~9999-r7[2] ~9999-r8[2] ~9999-r9[2] ~9999-r10[2] ~9999-r11[2] ~9999-r12[2] ~9999-r13[2] ~9999-r14[2] ~9999-r15[2] ~9999-r16[2] ~9999-r17[2] ~9999-r18[2] ~9999-r19[2] ~9999-r20[2] ~9999-r21[2] ~9999-r22[2] ~9999-r23[2] ~9999-r24[2] ~9999-r25[2] ~9999-r26[2] ~9999-r27[2] ~9999-r28[2] ~9999-r29[2] ~9999-r30[2] ~9999-r31[2]
       {doc verify-sig}
     Installed versions:  0.14.1(0.14)(00:27:01 03/06/2025)(verify-sig) 0.15.2(0.15)(01:19:50 17/10/2025)(verify-sig) 9999(9999)[2](06:26:05 29/03/2026)(verify-sig)
     Homepage:            https://ziglang.org/
     Description:         A robust, optimal, and maintainable programming language
can be a workaround while fixing compiled version.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
gjy0724
Apprentice
Apprentice
User avatar
Posts: 186
Joined: Sat Jun 11, 2005 2:20 pm
Location: Lock Haven, Pennsylvania

  • Quote

Post by gjy0724 » Sun Mar 29, 2026 8:59 pm

CaptainBlood,

Unfortunately your initial response did not help. I've been comparing the install between the failing laptop and a desktop that it worked on and don't see anything either. I installed the bin package as a temp measure to build the oxwm window manager then removed it after I got oxwm up and running. I prefer to use source built packages where feasible so I will keep plugging at it. I just don't understand why its not working. The one clue I thought I saw:

Code: Select all

/var/tmp/portage/dev-lang/zig-0.15.1/temp/environment: line 1803:    99 Segmentation fault         "${ZIG_EXE}" "${@}"
didn't help either. It points to this function:

Code: Select all

1803   │ { 
1804   │     debug-print-function "${FUNCNAME[0]}" "${@}";
1805   │     if [[ -z "${ZIG_EXE}" ]]; then
1806   │         die "${FUNCNAME[0]}: ZIG_EXE is not set. Was 'zig-utils_setup' called before using ezig?";
1807   │     fi;
1808   │     local -x TERM=dumb;
1809   │     local -x CLICOLOR_FORCE=1;
1810   │     "${ZIG_EXE}" "${@}" || die -n "Failed to run command: ${ZIG_EXE} ${@}"
1811   │ }
Your successful build of zig and my failed build of zig have the same value.

Code: Select all

 * ZIG_EXE:    "not-applicable"
so I am not sure where else to look.

I hope to also create an ebuild for oxwm at some point as well, but that will also be a learning process as I haven't created an ebuild from scratch yet.
Top
gjy0724
Apprentice
Apprentice
User avatar
Posts: 186
Joined: Sat Jun 11, 2005 2:20 pm
Location: Lock Haven, Pennsylvania

  • Quote

Post by gjy0724 » Mon Mar 30, 2026 11:13 am

For now I have opted just to use the binary package on that system. I don't understand why 3 of 4 would compile he package fine yet this one won't. If anyone has any ideas please let me know.

Thanks in advance.
Top
grknight
Retired Dev
Retired Dev
Posts: 2564
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Mon Mar 30, 2026 12:18 pm

I don't know how to fix it, but the zig binary produced in the build is having a catastrophic failure.

Code: Select all

 31;01m* Failed to run command: ./zig2 build -j8 -Dtarget=native -Dcpu=native --release=safe --prefix /usr/ --prefix-exe-dir bin/ --prefix-lib-dir lib64/ --prefix-include-dir include/ --libc /var/tmp/portage/dev-lang/zig-0.15.1/temp/zig_libc.txt --summary all --verbose --build-file /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/build.zig --zig-lib-dir /var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1/lib/ --prefix //usr/lib64/zig/0.15.1/ --prefix-lib-dir lib/ -Dno-langref=true -Dstd-docs=false -Ddebug-extensions=false --release=fast -Denable-llvm=true -Dstatic-llvm=false -Dconfig_h=/var/tmp/portage/dev-lang/zig-0.15.1/work/zig-0.15.1_build/config.h --prefix stage3/
dmesg would spit out some information, but a full debug of the binary, like with gdb, would likely be necessary to trace the issue.
Top
gjy0724
Apprentice
Apprentice
User avatar
Posts: 186
Joined: Sat Jun 11, 2005 2:20 pm
Location: Lock Haven, Pennsylvania

  • Quote

Post by gjy0724 » Mon Mar 30, 2026 4:06 pm

grknight,

I attempted another source install of zig, checked dmesg and saw this.

Code: Select all

[66447.756355] zig2[202955]: segfault at 96d5c ip 000055853e2d49f8 sp 00007ffdfe5c9c50 error 4 in zig2[2e49f8,55853e010000+2aa3000] likely on CPU 7 (core 3, socket 0)
[66447.756364] Code: 48 89 45 f8 48 8b 45 e0 48 8b 00 48 89 45 c0 48 8b 55 c0 48 8b 45 f8 48 01 d0 48 89 45 c0 48 8b 45 c0 48 89 45 b0 48 8b 45 b0 <48> 8b 50 08 48 8b 00 48 89 45 90 48 89 55 98 48 8b 45 90 48 8b 55
[66465.562851] ------------[ cut here ]------------
[66465.562855] WARNING: CPU: 3 PID: 2044 at drivers/net/wireless/ath/ath10k/mac.c:5204 ath10k_start+0x40/0x880 [ath10k_core]
[66465.562881] Modules linked in: uinput rfcomm nvidia_uvm(POE) algif_skcipher uvcvideo uvc videobuf2_vmalloc videobuf2_memops snd_usb_audio videobuf2_v4l2 snd_usbmidi_lib videobuf2_common snd_rawmidi btusb btrtl videodev snd_seq_device btintel btbcm mc nf_conntrack_netlink ip6table_mangle ip6table_nat ip6table_filter ip6_tables xt_set ip_set nfnetlink bluetooth ipt_REJECT nf_reject_ipv4 iptable_mangle iptable_raw vfat fat hid_sensor_hub intel_ishtp_hid x86_pkg_temp_thermal intel_powerclamp coretemp snd_sof_pci_intel_tgl snd_sof_pci_intel_cnl snd_sof_intel_hda_generic soundwire_intel soundwire_generic_allocation soundwire_cadence kvm_intel snd_sof_intel_hda_common snd_soc_hdac_hda snd_ctl_led snd_sof_intel_hda_mlink snd_sof_intel_hda snd_hda_codec_hdmi kvm snd_hda_ext_core snd_sof_pci snd_sof_xtensa_dsp ath10k_pci irqbypass snd_sof snd_hda_codec_realtek crct10dif_pclmul ghash_clmulni_intel ath10k_core snd_sof_utils sha512_ssse3 snd_soc_acpi_intel_match snd_hda_codec_generic snd_soc_acpi nvidia_drm(POE)
[66465.562919]  snd_hda_scodec_component sha256_ssse3 nvidia_modeset(POE) sha1_ssse3 mac80211 snd_soc_core snd_compress snd_pcm_dmaengine ac97_bus soundwire_bus snd_hda_intel rapl snd_intel_dspcfg ath rtsx_pci_sdmmc iTCO_wdt intel_cstate snd_intel_sdw_acpi i2c_designware_platform mmc_core mei_hdcp nvidia(POE) intel_rapl_msr i2c_designware_core ee1004 iTCO_vendor_support intel_uncore snd_hda_codec cfg80211 dell_smm_hwmon efi_pstore pcspkr serio_raw snd_hda_core processor_thermal_device_pci_legacy wmi_bmof snd_hwdep processor_thermal_device processor_thermal_wt_hint processor_thermal_rfim ucsi_acpi snd_pcm processor_thermal_rapl libarc4 typec_ucsi rtsx_pci roles snd_timer intel_rapl_common drm_ttm_helper typec intel_lpss_pci snd processor_thermal_wt_req mei_me intel_lpss processor_thermal_power_floor intel_ish_ipc processor_thermal_mbox int3403_thermal mac_hid soundcore idma64 int340x_thermal_zone pinctrl_tigerlake intel_hid mei intel_soc_dts_iosf pinctrl_intel i2c_i801 intel_ishtp int3400_thermal mfd_core igen6_edac
[66465.562958]  acpi_thermal_rel acpi_pad pwm_lpss i2c_smbus sparse_keymap acpi_tad efivarfs ext4 mbcache jbd2 xhci_pci crc32_pclmul nvme crc32c_intel e1000e xhci_hcd nvme_core aesni_intel crypto_simd cryptd
[66465.562972] CPU: 3 UID: 0 PID: 2044 Comm: NetworkManager Tainted: P        W  OE      6.12.74-gentoo-x86_64 #1
[66465.562976] Tainted: [P]=PROPRIETARY_MODULE, [W]=WARN, [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
[66465.562977] Hardware name: Dell Inc. Precision 3560/07VVYD, BIOS 1.13.0 09/30/2021
[66465.562979] RIP: 0010:ath10k_start+0x40/0x880 [ath10k_core]
[66465.562990] Code: e8 55 ff ff ff 48 8d bb 90 15 00 00 e8 59 d0 a4 de 8b 83 00 57 00 00 83 f8 02 0f 84 3c 02 00 00 77 2c 85 c0 0f 84 23 02 00 00 <0f> 0b bd ea ff ff ff 48 8d bb 90 15 00 00 e8 fd bb a4 de 48 83 c4
[66465.562992] RSP: 0018:ffffce6bc2f136d8 EFLAGS: 00010246
[66465.562994] RAX: 0000000000000004 RBX: ffff8de949f12000 RCX: 0000000000000000
[66465.562996] RDX: ffff8de949f02f00 RSI: 0000000000000000 RDI: ffff8de949f13590
[66465.562997] RBP: ffffffffc73916c0 R08: ffff8de949f02f00 R09: 0000000000000282
[66465.562998] R10: ffffffffa6f3ee18 R11: 0000000000000000 R12: ffff8de949f10900
[66465.562999] R13: ffff8de9ef468000 R14: ffff8de9ef468a00 R15: 0000000000000001
[66465.563000] FS:  00007ff597179300(0000) GS:ffff8df0af580000(0000) knlGS:0000000000000000
[66465.563002] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[66465.563004] CR2: 00003b2402087000 CR3: 000000019eade006 CR4: 0000000000772ef0
[66465.563005] PKRU: 55555554
[66465.563006] Call Trace:
[66465.563009]  <TASK>
[66465.563010]  ? ieee80211_check_combinations+0xf9/0x160 [mac80211]
[66465.563060]  drv_start+0x44/0x110 [mac80211]
[66465.563081]  ieee80211_do_open+0x2f6/0x800 [mac80211]
[66465.563110]  ieee80211_open+0x8c/0x90 [mac80211]
[66465.563136]  __dev_open+0xff/0x1c0
[66465.563140]  __dev_change_flags+0x1f8/0x240
[66465.563142]  ? rtnl_getlink+0x334/0x3c0
[66465.563145]  dev_change_flags+0x23/0x70
[66465.563147]  do_setlink+0x305/0x10a0
[66465.563149]  ? selinux_parse_skb.constprop.0+0xd2/0x4b0
[66465.563152]  ? __nla_validate_parse+0x5d/0xcd0
[66465.563156]  __rtnl_newlink+0x669/0xa90
[66465.563158]  ? avc_has_perm_noaudit+0x60/0xe0
[66465.563160]  ? cred_has_capability.isra.0+0x67/0x110
[66465.563161]  ? __kmalloc_cache_noprof+0x150/0x2c0
[66465.563164]  ? rtnl_newlink+0x2a/0x70
[66465.563166]  rtnl_newlink+0x43/0x70
[66465.563168]  rtnetlink_rcv_msg+0x137/0x3e0
[66465.563171]  ? __pfx_rtnetlink_rcv_msg+0x10/0x10
[66465.563173]  netlink_rcv_skb+0x49/0x100
[66465.563175]  netlink_unicast+0x26d/0x3a0
[66465.563177]  netlink_sendmsg+0x205/0x430
[66465.563179]  ____sys_sendmsg+0x3a5/0x3e0
[66465.563181]  ? copy_msghdr_from_user+0xeb/0x180
[66465.563184]  ___sys_sendmsg+0x7e/0xd0
[66465.563186]  ? unix_stream_sendmsg+0x5e6/0x690
[66465.563188]  ? __sys_sendto+0x127/0x1c0
[66465.563190]  ? fdget+0xbf/0x110
[66465.563192]  __sys_sendmsg+0x55/0xa0
[66465.563194]  do_syscall_64+0x61/0x180
[66465.563197]  ? clear_bhb_loop+0x60/0xb0
[66465.563199]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[66465.563202] RIP: 0033:0x7ff59755e8c2
[66465.563203] Code: 08 0f 85 b1 46 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 48 83 ec 08
[66465.563204] RSP: 002b:00007ffe03bb3308 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[66465.563205] RAX: ffffffffffffffda RBX: 0000558439902fe0 RCX: 00007ff59755e8c2
[66465.563206] RDX: 0000000000000000 RSI: 00007ffe03bb33a0 RDI: 000000000000000c
[66465.563207] RBP: 00007ffe03bb33a0 R08: 0000000000000000 R09: 0000000000000000
[66465.563208] R10: 0000000000000000 R11: 0000000000000246 R12: 0000558439902fe0
[66465.563208] R13: 0000000000000000 R14: 0000000000005c07 R15: 0000000000000000
[66465.563210]  </TASK>
[66465.563210] ---[ end trace 0000000000000000 ]---
Hopefully it helps. I looked through it but I don't see anything of value.
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Tue Mar 31, 2026 12:03 pm

If system allows it, the following changes all together could be tested:
MAKEOPTS="-j1"
Set march & friends to a value<native
Change gcc:15 to e.g. gcc:14
Test dev-lang/zig-0.15.2 instead.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
Post Reply

8 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

 

 

magic