Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955683 - sci-ml/caffe2-2.7.0[cuda] fails to build: class "cutlass::epilogue::thread::GELU_taylor<float>" has already been defined
Summary: sci-ml/caffe2-2.7.0[cuda] fails to build: class "cutlass::epilogue::thread::G...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-09 13:38 UTC by Eugene Shalygin
Modified: 2025-05-09 19:12 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.zst,53.69 KB, application/zstd)
2025-05-09 13:39 UTC, Eugene Shalygin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2025-05-09 13:38:45 UTC
FAILED: caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/ATen/native/cuda/MixedDtypesLinear.cu.o 
/opt/cuda/bin/nvcc -forward-unknown-to-host-compiler -DAT_PER_OPERATOR_HEADERS -DGFLAGS_IS_A_DLL=0 -DGLOG_CUSTOM_PREFIX_SUPPORT -DHAVE_MALLOC_USABLE_SIZE=1 -DHAVE_MMAP=1 -DHAVE_SHM_OPEN=1 -DHAVE_SHM_UNLINK=1 -DMINIZ_DISABLE_ZIP_READER_CRC32_CHECKS -DO
NNXIFI_ENABLE_EXT=1 -DONNX_ML=1 -DONNX_NAMESPACE=onnx -DPROTOBUF_USE_DLLS -DTORCH_CUDA_BUILD_MAIN_LIB -DUSE_CUDA -DUSE_CUFILE -DUSE_EXTERNAL_MZCRC -D_FILE_OFFSET_BITS=64 -Dtorch_cuda_EXPORTS -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0_bui
ld/aten/src -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/aten/src -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0_build -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0 -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.
7.0/nlohmann -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/aten/src/THC -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/aten/src/ATen/cuda -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/aten/src/ATen/../../../third_party/
cutlass/include -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/aten/src/ATen/../../../third_party/cutlass/tools/util/include -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0_build/caffe2/aten/src -I/tmp/portage/sci-ml/caffe2-2.7.0-r1
/work/pytorch-2.7.0/aten/src/ATen/.. -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/c10/cuda/../.. -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/c10/.. -I/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/torch/csrc/api -I/tmp
/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/torch/csrc/api/include -isystem /opt/cuda/include -isystem /usr/include/eigen3 -isystem /tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/INTERFACE -isystem /tmp/portage/sci-ml/caffe2-2.7.0-r1/wo
rk/pytorch-2.7.0/third_party/nlohmann/include --compiler-bindir /usr/x86_64-pc-linux-gnu/gcc-bin/14 -DLIBCUDACXX_ENABLE_SIMPLIFIED_COMPLEX_OPERATIONS -D_GLIBCXX_USE_CXX11_ABI=1 -Xfatbin -compress-all -DONNX_NAMESPACE=onnx -gencode arch=compute_86,code
=sm_86 -gencode arch=compute_75,code=sm_75 -Xcudafe --diag_suppress=cc_clobber_ignored,--diag_suppress=field_without_dll_interface,--diag_suppress=base_class_has_different_dll_interface,--diag_suppress=dll_interface_conflict_none_assumed,--diag_suppre
ss=dll_interface_conflict_dllexport_assumed,--diag_suppress=bad_friend_decl --expt-relaxed-constexpr --expt-extended-lambda  -Wno-deprecated-gpu-targets --expt-extended-lambda -DCUB_WRAPPED_NAMESPACE=at_cuda_detail -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_O
PERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -O2 -g -DNDEBUG -std=c++17 -Xcompiler=-fPIC -Xcompiler -Wall -Wextra -Wdeprecated -Wno-unused-parameter -Wno-missing-field-initializers -Wno-arr
ay-bounds -Wno-unknown-pragmas -Wno-strict-overflow -Wno-strict-aliasing -Wunused-function -Wunused-variable -Wunused-but-set-variable -Wno-maybe-uninitialized -MD -MT caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/ATen/native/cuda/MixedDtypesLinear.cu.
o -MF caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/ATen/native/cuda/MixedDtypesLinear.cu.o.d -x cu -c /tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/aten/src/ATen/native/cuda/MixedDtypesLinear.cu -o caffe2/CMakeFiles/torch_cuda.dir/__/aten/src
/ATen/native/cuda/MixedDtypesLinear.cu.o
/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/aten/src/ATen/native/cuda/cutlass_extensions/epilogue/thread/ft_fused_activations.h(73): error: class "cutlass::epilogue::thread::GELU_taylor<float>" has already been defined (previous definition 
at line 627 of /usr/include/cutlass/epilogue/thread/activation.h)
  struct GELU_taylor<float> {
         ^

1 error detected in the compilation of "/tmp/portage/sci-ml/caffe2-2.7.0-r1/work/pytorch-2.7.0/aten/src/ATen/native/cuda/MixedDtypesLinear.cu".


Reproducible: Always




$ emerge --info sci-ml/caffe2 
Portage 3.0.68 (python 3.13.3-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-15, glibc-2.41-r1, 6.14.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.14.4-gentoo-x86_64-AMD_Ryzen_9_7950X_16-Core_Processor-with-glibc2.41
KiB Mem:   123452432 total,  69765920 free
KiB Swap:  205520892 total, 205136880 free
Timestamp of repository gentoo: Fri, 09 May 2025 08:09:01 +0000
Head commit of repository gentoo: d5f74420573c23a05f44012145ecdaf6d501ae97

Timestamp of repository 4nykey: Thu, 08 May 2025 19:24:56 +0000
Head commit of repository 4nykey: 5e63ca4b9002e4b63da34f6be80022ad272a6d8e

Timestamp of repository benzene-overlay: Fri, 09 May 2025 00:24:26 +0000
Head commit of repository benzene-overlay: daa995d03571c1bed4ebf95c9425178cb025357e

Timestamp of repository brother-overlay: Wed, 23 Apr 2025 15:38:15 +0000
Head commit of repository brother-overlay: 6b554fdcc42cbbd28221556bd517d4ba54280ed2

Timestamp of repository cg: Fri, 09 May 2025 08:24:33 +0000
Head commit of repository cg: 488a6cc0dc6e1f7e56058a2f7f75a6458270f7f8

Timestamp of repository guru: Fri, 09 May 2025 01:24:36 +0000
Head commit of repository guru: 8222e3029cc86dfa640b47bf629341f58c135960

Timestamp of repository haarp: Thu, 08 May 2025 12:57:06 +0000
Head commit of repository haarp: ab2eaeb2020a2153851856f883f5958f288704b2

Timestamp of repository kde: Thu, 08 May 2025 19:24:58 +0000
Head commit of repository kde: cf11741a5299857a8f747bb5adb1840ca61b83f3

Timestamp of repository mv: Thu, 08 May 2025 12:57:06 +0000
Head commit of repository mv: b083f3389e483b287eedeb3c685e3a03ba280a63

Timestamp of repository nest: Fri, 09 May 2025 07:09:12 +0000
Head commit of repository nest: fdcdf9c390ec2b13145dccab44a89c2231166b06

Head commit of repository pypi: 7fd1ad66225bc25558f2f41eb6c46ebd752cc01b

Timestamp of repository qt: Tue, 06 May 2025 17:57:17 +0000
Head commit of repository qt: 69fd56fc2528d78c20e9321d13fe61b90d23ac48

Timestamp of repository science: Thu, 08 May 2025 19:25:01 +0000
Head commit of repository science: b1ae1d441fde90b9a304103b98da168709ab6c81

Timestamp of repository wayland-desktop: Thu, 08 May 2025 19:25:02 +0000
Head commit of repository wayland-desktop: 6bae69f2c503ba611c82d231cc02648f44993d49

sh bash 5.2_p37-r3
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37-r3::gentoo
dev-build/autoconf:        2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r2::gentoo
dev-build/cmake:           4.0.2::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.8.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.12.10::gentoo, 3.13.3::gentoo
dev-lang/rust-bin:         1.83.0-r2::gentoo, 1.84.0-r2::gentoo, 1.84.1-r2::gentoo, 1.85.0-r1::gentoo, 1.85.1::gentoo, 1.86.0-r1::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.4::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            19.1.7::gentoo, 20.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-apps/systemd:          257.5::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20250418::gentoo, 14.2.1_p20250419::gentoo, 15.1.0::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
Repositories:

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

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

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

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

cg
    location: /var/db/repos/cg
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/cg.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

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

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

local
    location: /var/db/repos/local
    masters: gentoo
    volatile: False

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

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

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

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

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

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

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/23.0/x86-64

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /usr/share/themes/oxygen-gtk/gtk-3.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="-O2 -march=native -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build --load-average=24 --keep-going --jobs=3"
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 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks export-pms-vars 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 splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -march=native -pipe"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/     http://mirror.netcologne.de/gentoo/"
LANG="C.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j24"
PKGDIR="/var/cache/binpkgs"
PORTAGE_COMPRESS="zstd"
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="/tmp"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi activities alsa amd64 bash-completion bluetooth branding bzip2 cairo cdda cdr cet crypt cups dbus declarative dri dts dvd dvdr encode exif flac fontconfig gdbm gif gpm gtk gui heif iconv icu idn ipv6 jpeg jpegxl kde kerberos kf6 kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls numa ogg openexr opengl openmp pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 qt6 readline samba screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb v4l vaapi vorbis vulkan wayland widgets wxwidgets x264 x265 xattr xcb xft xml xv xvid zeroconf zlib zsh-completion zstd" 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="mmx mmxext sse sse2 aes avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3" 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" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en en-GB uk" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" 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="ruby34" VIDEO_CARDS="amdgpu radeon radeonsi nvidia nouveau nvk" 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, 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, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

sci-ml/caffe2-2.7.0::gentoo was built with the following:
USE="cuda fbgemm nnpack numpy opencl openmp qnnpack xnnpack -distributed -flash -gloo -memefficient -mkl -mpi -onednn -openblas -rocm" ABI_X86="(64)" AMDGPU_TARGETS="gfx1030 gfx1100 gfx906 gfx908 gfx90a gfx942 -gfx1010 -gfx1011 -gfx1012 -gfx1031 -gfx1101 -gfx1102 -gfx803 -gfx900 -gfx940 -gfx941" PYTHON_SINGLE_TARGET="python3_12 -python3_10 -python3_11 -python3_13"
Comment 1 Eugene Shalygin 2025-05-09 13:39:22 UTC
Created attachment 928215 [details]
build log
Comment 2 Andrew Udvare 2025-05-09 15:31:33 UTC
Confirming same error here.
Comment 3 Paul Zander 2025-05-09 19:12:16 UTC
It should build with cutlass-3.8.0, so mask dev-libs/cutlass-3.9.1 for now.