FAILED: bin/torch_shm_manager ld: /var/tmp/portage/sci-libs/caffe2-2.4.1/work/pytorch-2.4.1_build/lib/libtorch_cpu.so: undefined reference to `Sleef_exp2d4_u10' and several dozen others. Reproducible: Always Portage 3.0.66.1 (python 3.12.6-final-0, default/linux/amd64/23.0/no-multilib, gcc-14, glibc-2.40-r3, 6.10.5-gentoo x86_64) ================================================================= System uname: Linux-6.10.5-gentoo-x86_64-AMD_Ryzen_9_7950X_16-Core_Processor-with-glibc2.40 KiB Mem: 131394960 total, 29465628 free KiB Swap: 268435452 total, 260573436 free Timestamp of repository gentoo: Sun, 22 Sep 2024 14:00:00 +0000 Head commit of repository gentoo: 9d2da83d54249bc68ea187a1e1f832d1e771a052 Timestamp of repository guru: Sat, 21 Sep 2024 09:23:00 +0000 Head commit of repository guru: 7297cb2cbe883f5cd0e830be0633785919f56e0e sh bash 5.2_p32-r1 ld GNU ld (Gentoo 2.43 p2) 2.43.1 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p32-r1::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo, 1.17-r1::gentoo dev-build/cmake: 3.30.3::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.5.2::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.12.6_p2::gentoo, 3.13.0_rc2_p1::gentoo dev-lang/rust: 1.81.0::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.55.1::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.42-r2::gentoo, 2.43-r1::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 17.0.6::gentoo, 18.1.8::gentoo, 19.1.0::gentoo sys-devel/gcc: 14.2.1_p20240921::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 17.0.6::gentoo, 18.1.8::gentoo, 19.1.0::gentoo sys-devel/llvm: 17.0.6-r2::gentoo, 18.1.8-r4::gentoo, 19.1.0::gentoo sys-kernel/linux-headers: 6.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r3::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: 16 sync-rsync-verify-max-age: 24 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 ACCEPT_KEYWORDS="amd64 ~*" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=znver4 -O2 -pipe -flto" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=znver4 -O2 -pipe -flto" 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="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ http://mirror.leaseweb.com/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.netcologne.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/pub/rsync.gentoo.org/gentoo/ http://mirror.init7.net/gentoo/ http://tux.rainside.sk/gentoo/ http://gentoo.mirror.web4u.cz/" LANG="en_US" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j30" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X a52 aac aacs acl alsa amd64 apps bios64 bittorrent bluray boot btrfs bzip2 cet cli color-management connection-sharing context contrib contribdnn crypt cups cxx dbus dcaenc designer dhcpcd dracut dri dts emboss exif extra fam fbcon fdk ffmpeg flac fontconfig fortran frei0r ftp gdbm geoclue geolocation gimp gles2 gps graphite grub gui hip hwaccel iconv icu iptables iso64 jpeg kde lame lapack lapacke latex lcms libass libei libglvnd libproxy libtirpc llvm lm-sensors lto mac minizip mpi ncurses no-multilib nptl nvenc ogg opengl openh264 openmp opus pam parallel-compiler pcre pgo pipewire plasma png postscript pthread pulseaudio qml qt6 quic readline resolvconf rocm rocr romio rustfmt sdl seccomp spirv ssd ssl svg syslog taglib tbb tcmalloc tensorpipe test-rust text theora threads tiff tools truetype uefi64 unicode v4l vaapi vector-icons vorbis vulkan wavpack wayland webp x264 x265 xattr xla xml zlib" ABI_X86="64" ADA_TARGET="gcc_12" AMDGPU_TARGETS="gfx1031 gfx1030" 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="stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 avx512f" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby33" VIDEO_CARDS="amdgpu fbdev amd radeon radeonsi vesa" 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, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 903586 [details] full build log
Please try to add cpu_flags_x86_avx to your USE flags and retest
Success with the following USE flags (AMD_Ryzen_9_7950X): cpu_flags_x86_avx cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx512f
(In reply to he.ousia from comment #3) > Success with the following USE flags (AMD_Ryzen_9_7950X): > cpu_flags_x86_avx cpu_flags_x86_sse3 cpu_flags_x86_ssse3 > cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx512f did you : https://wiki.gentoo.org/wiki/CPU_FLAGS_*
Thank you for the reminder. I have been totally oblivious about this.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12b92a101f21849d4cacaab245e562c6ce6e1998 commit 12b92a101f21849d4cacaab245e562c6ce6e1998 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2024-09-24 12:34:13 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2024-09-24 12:36:50 +0000 sci-libs/caffe2: Fix USE for sleef Bug: https://bugs.gentoo.org/940049 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> sci-libs/caffe2/{caffe2-2.4.1.ebuild => caffe2-2.4.1-r1.ebuild} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)