The core interpreter builds, but the package build for Unicode::Collate fails with: LD_LIBRARY_PATH=/var/tmp/portage/dev-lang/perl-5.40.2/work/perl-5.40.2 /var/tmp/portage/dev-lang/perl-5.40.2/work/perl-5.40.2/preload /var/tmp/portage/dev-lang/perl-5.40.2/work/perl-5.40.2/libperl.so.5.40.2 ./miniperl -Ilib make_ext.pl lib/auto/Unicode/Normalize/Normalize.so MAKE="make" LIBPERL_A=libperl.so.5.40.2 LINKTYPE=dynamic Making header files for XS... Use of uninitialized value $tab[2] in substitution (s///) at ./mkheader line 122. Use of uninitialized value $_[0] in pattern match (m//) at ./mkheader line 108. Illegal hexadecimal digit '!' ignored at ./mkheader line 124. Use of uninitialized value $tab[1] in string eq at ./mkheader line 125. Weird Canonical Decomposition of U+0000 at ./mkheader line 155. require ./mkheader called at Makefile.PL line 13 Unsuccessful Makefile.PL(dist/Unicode-Normalize): code=65280 at make_ext.pl line 532. make: *** [makefile:592: lib/auto/Unicode/Normalize/Normalize.so] Error 2 Full build log is attached. The same happens with earlier Perl versions (back to 5.40.0) Reproducible: Always Steps to Reproduce: MAKEOPTS= emerge -a -1 -v dev-lang/perl $ emerge --info Portage 3.0.67 (python 3.13.3-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-14, glibc-2.40-r8, 6.12.21-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-6.12.21-gentoo-x86_64-x86_64-AMD_Athlon-tm-_II_X3_450_Processor-with-glibc2.40 KiB Mem: 6089584 total, 208876 free KiB Swap: 16777212 total, 16776948 free Timestamp of repository gentoo: Thu, 15 May 2025 07:15:01 +0000 Head commit of repository gentoo: 9de0c8f02fe06028a5871605844292224ffd143f sh bash 5.2_p37 ld GNU ld (Gentoo 2.44 p1) 2.44.0 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::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-lang/perl: 5.40.2::gentoo dev-lang/python: 3.13.3::gentoo dev-lang/rust-bin: 1.85.1::gentoo llvm-core/clang: 19.1.7::gentoo llvm-core/llvm: 19.1.7::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/sandbox: 2.39::gentoo sys-apps/systemd: 256.10::gentoo sys-devel/binutils: 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.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r8::gentoo Repositories: gentoo location: /mnt/auto/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: True sync-rsync-verify-max-age: 3 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE fairuse freedist NVIDIA-r2 Kermit bh-luxi google-chrome AdobeFlash-11.x linux-fw-redistributable no-source-code linux-firmware all-rights-reserved unRAR WidePix Activision ChexQuest3 DOOM-COLLECTORS-EDITION ms-teams-pre PUEL PUEL-11 PUEL-10 MPEG-4 Subversion NPSL Vivaldi Avago MSttfEULA free-noncomm CMake Dell-EULA" AR="llvm-ar" CBUILD="x86_64-pc-linux-gnu" CC="clang" CFLAGS="-fno-lto -O2 -march=native -mtune=native -pipe -fno-diagnostics-show-option -fno-show-column -fno-caret-diagnostics -fno-diagnostics-fixit-info" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /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" CXX="clang++" CXXFLAGS="-fno-lto -O2 -march=native -mtune=native -pipe -fno-diagnostics-show-option -fno-show-column -fno-caret-diagnostics -fno-diagnostics-fixit-info -Wno-register" DISTDIR="/var/tmp/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="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-request-signature buildpkg-live compressdebug 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 sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_GB.utf8" LDFLAGS=" -fno-lto -Wl,-O2 -Wl,--as-needed" LEX="flex" LINGUAS="en en_GB de fr" MAKEOPTS="-j2" NM="llvm-nm" 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" SHELL="/bin/bash" USE="X a52 aac acl acpi alsa amd64 bash-completion bluetooth branding bzip2 cairo cdda cdr cet clang crypt css cups dbus dri dts dvd dvdr encode exif ffmpeg flac foomaticdb ftp gdbm gif gui iconv icu jpeg jpeg2k lcms libnotify libtirpc mad man mng mp3 mp4 mpeg multilib ncurses nls nptl offensive ogg opengl pam pango pcre pdf png policykit posix ppds pulseaudio qml qt6 readline sdl seccomp smp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vim-syntax vorbis vulkan wmf wxwidgets x264 xattr xcb xface xft xml xpm xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_14" 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="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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 pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB de fr" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AMDGPU ARM BPF NVPTX WebAssembly X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" RUBY_TARGETS="ruby32" SANE_BACKENDS="brother canon epson escl hp mustek mustek_usb test hp5400 hp4200 hp3500 qcam v4l net mustek_usb2 pnm" VIDEO_CARDS="dummy fbdev vesa vga radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS $ clang --version clang version 19.1.7 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/19/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
Created attachment 929238 [details] Complete build log
Looks like https://github.com/Perl/perl5/issues/22132. As a workaround, -fno-vectorize may help. But it's a Clang bug.