Build crashes when trying to build C code. I`ve tried to build it with normal -O2 -pipe flags and with -O3 with lto flags and with gcc and llvm. Also tried with MAKEOPTS="-j1" just in case Reproducible: Always Steps to Reproduce: 1. emerge --oneshot --verbose =dev-python/zstandard-0.23.0 Actual Results: Build crashes Expected Results: Build does no crash Portage 3.0.67 (python 3.12.9-final-0, default/linux/amd64/23.0/llvm/systemd, gcc-14, glibc-2.41, 6.12.8-clang x86_64) ================================================================= System uname: Linux-6.12.8-clang-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.41 KiB Mem: 65764344 total, 53188784 free KiB Swap: 67108860 total, 67108860 free Head commit of repository gentoo: e808f320976441d3d9af4697a7ac9dad83d2f6ef Timestamp of repository mv: Mon, 17 Feb 2025 22:03:37 +0000 Head commit of repository mv: f19bacb18f8d8577f8af445273b34a2ad963c1e0 Timestamp of repository pf4public: Fri, 21 Feb 2025 00:33:44 +0000 Head commit of repository pf4public: dceba9a59bbb9b06d9885b84b5f2e7cfa58552a8 Timestamp of repository steam-overlay: Fri, 21 Feb 2025 11:18:26 +0000 Head commit of repository steam-overlay: 9be12cf63dfc9317b36e893c96d913f931817b86 sh bash 5.2_p37 ld GNU ld (Gentoo 2.43 p3) 2.43.1 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.31.5::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.7.0::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0-r1::gentoo dev-lang/python: 3.12.9::gentoo dev-lang/rust: 1.83.0-r1::gentoo, 1.84.1-r1::gentoo llvm-core/clang: 18.1.8-r6::gentoo, 19.1.6::gentoo llvm-core/lld: 18.1.8::gentoo, 19.1.6::gentoo llvm-core/llvm: 18.1.8-r6::gentoo, 19.1.6::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/sandbox: 2.43::gentoo sys-apps/systemd: 257.2::gentoo sys-devel/binutils: 2.43-r2::gentoo, 2.44::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.2.1_p20241221::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.13::gentoo (virtual/os-headers) sys-libs/glibc: 2.41::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/gentoo.git priority: -1000 volatile: False mv location: /var/db/repos/mv sync-type: git sync-uri: https://github.com/gentoo-mirror/mv.git masters: gentoo volatile: False pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/gentoo-mirror/pf4public.git masters: gentoo volatile: False steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False local location: /var/db/repos/localrepo masters: gentoo priority: 10 volatile: False ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" ADDR2LINE="llvm-addr2line" AR="llvm-ar" AS="clang -c" CBUILD="x86_64-pc-linux-gnu" CC="clang" CFLAGS="-march=native -pipe -O3 -fstack-protector-strong -fstack-clash-protection -fcf-protection=full -flto=thin " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d" CPP="clang-cpp" CPPFLAGS="-D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS -D_LIBCPP_HARDENING_MODE_EXTENSIVE " CXX="clang++" CXXFLAGS="-march=native -pipe -O3 -fstack-protector-strong -fstack-clash-protection -fcf-protection=full -flto=thin " DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="-a --jobs=100" 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 -pipe -O3 -fstack-protector-strong -fstack-clash-protection -fcf-protection=full -flto=thin " 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 merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install 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="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LD="ld.lld" LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,-z,relro -Wl,-z,now" LEX="flex" MAKEOPTS="-j32" NM="llvm-nm" OBJCOPY="llvm-objcopy" OBJDUMP="llvm-objdump" 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" RANLIB="llvm-ranlib" READELF="llvm-readelf" SHELL="/bin/bash" STRINGS="llvm-strings" STRIP="llvm-strip" USE="acl amd64 audit btrfs bzip2 cairo caps cet clang crypt custom-cflags dbus egl fapi flac gdbm gles gles2 gstreamer hardened harfbuzz ibus iconv icu idn introspection ipv6 jpeg kde kf6compat libcxx libnotify libproxy libtirpc llvm-libunwind lto lz4 lzma lzo mp3 mp4 multilib ncurses networkmanager nls ogg opengl openh264 openmp pam pcre phonon pic pipewire plasma png policykit pulseaudio qml qt6 readline screencast seccomp share ssl svg system-* systemd test-rust threads tpm udev unicode vaapi verify-sig vorbis vulkan wayland x264 x265 xattr xwayland zlib zstd" ABI_X86="64" ADA_TARGET="gcc_14" ALSA_CARDS="hda-intel usb-audio" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US ru uk" LLVM_SLOT="19" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="aarch64 x86_64" QEMU_USER_TARGETS="aarch64 x86_64" RUBY_TARGETS="ruby30" VIDEO_CARDS="nvidia" Unset: ARFLAGS, ASFLAGS, CCLD, CONFIG_SHELL, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RUSTFLAGS, SIZE, YACC, YFLAGS
Created attachment 919661 [details] build.log build log with -O2 and gcc
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dd749d073a6183d860e0fabc94f81169d715051 Sync again so that app-arch/zstd gets downgraded. Its breakage from app-arch/zstd-1.5.7.