# emerge -pqv '=sci-libs/vtk-9.2.6::gentoo' [ebuild N ] sci-libs/vtk-9.2.6 USE="all-modules boost cuda doc examples ffmpeg freetype gdal imaging java las logging mpi mysql odbc openmp openvdb pdal postgres python qt5 qt6 rendering sdl tbb threads tk views vtkm web (-debug) -test" PYTHON_SINGLE_TARGET="python3_11 -python3_10" VIDEO_CARDS="nvidia" # emerge --info '=sci-libs/vtk-9.2.6::gentoo' Portage 3.0.49 (python 3.12.0-beta-3, default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.4.0-gentoo-amd64 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.4.0-gentoo-amd64-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-12700-with-glibc2.37 KiB Mem: 131649260 total, 79619348 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository gentoo: Thu, 29 Jun 2023 04:00:01 +0000 Head commit of repository gentoo: 6d4c9c57df89a7b1dd9bbcddd02e39df3c52c3b1 Timestamp of repository brave-overlay: Wed, 28 Jun 2023 12:16:51 +0000 Head commit of repository brave-overlay: 4d4b57fba569ead9fb81cf720e21214341fc445d Timestamp of repository darkelf: Sat, 10 Jun 2023 10:33:49 +0000 Head commit of repository darkelf: aaeb552cd5e9a199a0adc5de24c83ae2ea5c2818 Timestamp of repository guru: Tue, 27 Jun 2023 08:31:53 +0000 Head commit of repository guru: f816a5721ef5cd93b24bb5194d6165304e5d872f sh bash 5.2_p15-r6 ld GNU ld (Gentoo 2.40 p5) 2.40.0 ccache version 4.8.2 [disabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r6::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.36.1-r2::gentoo dev-lang/python: 3.10.12::gentoo, 3.11.4::gentoo, 3.12.0_beta3::gentoo dev-lang/rust: 1.69.0-r1::gentoo dev-util/ccache: 4.8.2::gentoo dev-util/cmake: 3.26.4-r1::gentoo dev-util/meson: 1.1.1::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/sandbox: 2.32::gentoo sys-apps/systemd: 253.5::gentoo sys-devel/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/gcc: 12.3.1_p20230623::gentoo, 13.1.1_p20230527::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 15.0.7::gentoo sys-devel/llvm: 14.0.6-r4::gentoo, 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://server.kopylovs.net/gentoo-portage priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 brave-overlay location: /var/db/repos/brave-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/brave-overlay.git masters: gentoo volatile: False darkelf location: /var/db/repos/darkelf sync-type: git sync-uri: https://github.com/gentoo-mirror/darkelf.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 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA android AnyDesk-TOS geekbench google-chrome microsoft-edge Microsoft-vscode NVIDIA-CUDA OPERA-2018 PUEL-11 RAR TeamViewer Vivaldi" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" 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/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /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=native -O2 -pipe -fomit-frame-pointer" 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 -fomit-frame-pointer" 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 multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/ https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/" LANG="en_US.utf8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j10" 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 accessibility acl acpi alsa amd64 audit bash-completion berkdb bidi bluetooth branding brotli btrfs bzip2 cairo cdda cdr cgi cli colord crypt cryptsetup cuda cups curl dbus designer device-mapper doc dri drm dts dvd dvdr eds emacs encode evdev evo examples exif experimental ffmpeg flac fortran fuse gamepad gdbm gif git gmp gnome gnome-keyring gnome-online-accounts gnutls go gpg gpm gstreamer gtk gtk-doc gui heif hscolour html http ibus iconv icu idn introspection iodbc ios ipv6 jack java jemalloc joystick jpeg json kde kerberos keyring lcms ldap libnotify libtirpc lm-sensors lua lvm lz4 lzma lzo mad man mbedtls mng mp3 mp4 mpeg mpi multilib multimedia mysql nas nautilus ncurses netlink network networkmanager nfs nls nptl nss nvenc odbc offensive ogg opencl opengl openmp openssl pam pango pcap pcre pdf perl pkcs11 plasma plugins png policykit postgres ppds pulseaudio python qml qt5 qt6 readline redis samba sasl screencast sdl seccomp semantic-desktop snmp sound source speech spell sqlite ssl startup-notification svg symlink sysprof systemd tcl tcpd telemetry test-rust threads tiff tk tools tpm tracker truetype udev udisks unicode unwind upnp upower usb utils v4l vala vdpau vim-syntax vnc vorbis vulkan wayland webengine webkit webp wifi wxwidgets x264 xattr xcb xft xinerama xml xv xvid yaml zeroconf zip zlib zstd" ABI_X86="64 32" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 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 mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10 python3_12" RUBY_TARGETS="ruby30 ruby31 ruby32" VIDEO_CARDS="nvidia fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat 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, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 864830 [details] build.log
From your build.log > Please properly set the VTK_CUDA_ARCH environment variable to > one of: kepler, maxwell, pascal, volta, turing, ampere, all Could you set VTK_CUDA_ARCH and try again?
(In reply to Paul Zander from comment #2) > From your build.log > > Please properly set the VTK_CUDA_ARCH environment variable to > > one of: kepler, maxwell, pascal, volta, turing, ampere, all > > Could you set VTK_CUDA_ARCH and try again? To which value I should set it ?
If you know your graphics card architecture set it to one of `kepler, maxwell, pascal, volta, turing or ampere`. If it's an `ada` card set it to `ampere`. If you do not know set it to `all`.
(In reply to Paul Zander from comment #4) > If you know your graphics card architecture set it to one of `kepler, > maxwell, pascal, volta, turing or ampere`. If it's an `ada` card set it to > `ampere`. > > If you do not know set it to `all`. ok, after some googling, it's 'ampere' card. will update shortly on result...
Created attachment 864831 [details] build.log.xz
Still fail (with another error)
Seemingly caused by this: https://forums.developer.nvidia.com/t/including-cub-header-breakes-compilation-with-gcc-12-and-sse2-or-better/255018 https://github.com/NVIDIA/libcudacxx/issues/484 You could try to add "-mno-avx512f" to CFLAGS/CXXFLAGS for vtk as a stop gap and see if that helps. I can't reproduce this due to lack of AVX512 support.
(In reply to Paul Zander from comment #8) > Seemingly caused by this: > > https://forums.developer.nvidia.com/t/including-cub-header-breakes- > compilation-with-gcc-12-and-sse2-or-better/255018 > > https://github.com/NVIDIA/libcudacxx/issues/484 > > You could try to add "-mno-avx512f" to CFLAGS/CXXFLAGS for vtk as a stop gap > and see if that helps. I can't reproduce this due to lack of AVX512 support. # cpuid2cpuflags CPU_FLAGS_X86: aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 i don't think i have it neither
You have -march=native in your compiler flags which should enable AVX512F on your i7 12700.
Created attachment 864834 [details] build.log.xz
(In reply to Paul Zander from comment #8) > Seemingly caused by this: > > https://forums.developer.nvidia.com/t/including-cub-header-breakes- > compilation-with-gcc-12-and-sse2-or-better/255018 > > https://github.com/NVIDIA/libcudacxx/issues/484 > > You could try to add "-mno-avx512f" to CFLAGS/CXXFLAGS for vtk as a stop gap > and see if that helps. I can't reproduce this due to lack of AVX512 support. added -mno-avx512f - still fails
Don't think this is something that can be solved on the gentoo side. There is a minimal test at https://github.com/fwyzard/nvidia_bug_4139266 Maybe upgrading to dev-util/nvidia-cuda-toolkit-12.2.0 does fix it and you can use the minimal test to verify that.
(In reply to Paul Zander from comment #13) > Don't think this is something that can be solved on the gentoo side. > > There is a minimal test at https://github.com/fwyzard/nvidia_bug_4139266 > Maybe upgrading to dev-util/nvidia-cuda-toolkit-12.2.0 does fix it and you > can use the minimal test to verify that. test also works for me, so what does it mean?
Could you try disabling USE-flags? You seem to have enabled all of them. So pick the ones you really need. A likely culprit is tbb. So start with -tbb and see if that already fixes the build error.
(In reply to Paul Zander from comment #15) > Could you try disabling USE-flags? You seem to have enabled all of them. So > pick the ones you really need. > > A likely culprit is tbb. So start with -tbb and see if that already fixes > the build error. yes disabling tbb helped
Can we close this? The TBB issue deserves a separate bug I think.
seems similar to https://bugs.gentoo.org/908874
with USE="cuda tbb"
same for sci-libs/vtk-9.2.6-r1, fails with USE="cuda tbb"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0167fc77186716079471d895b32b2283ca8b7fc4 commit 0167fc77186716079471d895b32b2283ca8b7fc4 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2023-07-06 14:26:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-01-10 12:41:01 +0000 sci-libs/vtk: add 9.3.0 Closes: https://bugs.gentoo.org/918898 Closes: https://bugs.gentoo.org/909520 Closes: https://bugs.gentoo.org/909380 Closes: https://bugs.gentoo.org/908874 Closes: https://bugs.gentoo.org/906264 Closes: https://bugs.gentoo.org/906075 Closes: https://bugs.gentoo.org/887505 Closes: https://bugs.gentoo.org/840776 Closes: https://bugs.gentoo.org/835659 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34432 Signed-off-by: Sam James <sam@gentoo.org> sci-libs/vtk/Manifest | 6 + sci-libs/vtk/files/vtk-9.2.5-pegtl-3.x.patch | 136 +++ ...ix-Java-error-with-integer-enum-overloads.patch | 51 ++ sci-libs/vtk/files/vtk-9.3.0-java.patch | 11 + sci-libs/vtk/files/vtk-9.3.0-opencascade.patch | 17 + sci-libs/vtk/files/vtk-9.3.0-pdal-2.6.0.patch | 77 ++ .../vtk-9.3.0-too-many-initializer-values.patch | 20 + sci-libs/vtk/metadata.xml | 1 + sci-libs/vtk/vtk-9.3.0.ebuild | 909 +++++++++++++++++++++ 9 files changed, 1228 insertions(+)