brothermechanic / cg

Computer graphics ebuilds for gentoo
Other
23 stars 12 forks source link

media-libs/oidn-2.1.0 fails, "unrecognized command-line option" #71

Closed infopcgood closed 9 months ago

infopcgood commented 9 months ago

Tested with latest version of GCC 11, 12, 13 and CUDA 11, 12 on latest kernel version (6.6.13)

error log:

[74/182] cd /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build/devices/hip/build && /usr/bin/cmake --build .
FAILED: devices/hip/stamp/OpenImageDenoise_device_hip-build /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build/devices/hip/stamp/OpenImageDenoise_device_hip-build 
cd /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build/devices/hip/build && /usr/bin/cmake --build .
[1/8] Building CXX object CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_dl.cpp.o
FAILED: CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_dl.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DOpenImageDenoise_device_hip_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/include -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/library/include -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0 -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/external -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build -O2 -pipe  -Wall -Wno-unknown-pragmas -Wno-strict-overflow -fPIC -Wformat -Wformat-security -Wmissing-field-initializers  -O3 -DNDEBUG  -fstack-protector -D_FORTIFY_SOURCE=2 -std=c++17 -fPIC -fvisibility=internal -fvisibility-inlines-hidden -Wno-unused-result --rocm-path=@ESYSROOT_ROCM_PATH@ -x hip --offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103 -MD -MT CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_dl.cpp.o -MF CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_dl.cpp.o.d -o CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_dl.cpp.o -c /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/ck_conv_dl.cpp
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--rocm-path=@ESYSROOT_ROCM_PATH@’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103’
[2/8] Building CXX object CMakeFiles/OpenImageDenoise_device_hip.dir/hip_device.cpp.o
FAILED: CMakeFiles/OpenImageDenoise_device_hip.dir/hip_device.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DOpenImageDenoise_device_hip_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/include -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/library/include -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0 -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/external -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build -O2 -pipe  -Wall -Wno-unknown-pragmas -Wno-strict-overflow -fPIC -Wformat -Wformat-security -Wmissing-field-initializers  -O3 -DNDEBUG  -fstack-protector -D_FORTIFY_SOURCE=2 -std=c++17 -fPIC -fvisibility=internal -fvisibility-inlines-hidden -Wno-unused-result --rocm-path=@ESYSROOT_ROCM_PATH@ -x hip --offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103 -MD -MT CMakeFiles/OpenImageDenoise_device_hip.dir/hip_device.cpp.o -MF CMakeFiles/OpenImageDenoise_device_hip.dir/hip_device.cpp.o.d -o CMakeFiles/OpenImageDenoise_device_hip.dir/hip_device.cpp.o -c /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/hip_device.cpp
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--rocm-path=@ESYSROOT_ROCM_PATH@’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103’
[3/8] Building CXX object CMakeFiles/OpenImageDenoise_device_hip.dir/hip_engine.cpp.o
FAILED: CMakeFiles/OpenImageDenoise_device_hip.dir/hip_engine.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DOpenImageDenoise_device_hip_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/include -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/library/include -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0 -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/external -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build -O2 -pipe  -Wall -Wno-unknown-pragmas -Wno-strict-overflow -fPIC -Wformat -Wformat-security -Wmissing-field-initializers  -O3 -DNDEBUG  -fstack-protector -D_FORTIFY_SOURCE=2 -std=c++17 -fPIC -fvisibility=internal -fvisibility-inlines-hidden -Wno-unused-result --rocm-path=@ESYSROOT_ROCM_PATH@ -x hip --offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103 -MD -MT CMakeFiles/OpenImageDenoise_device_hip.dir/hip_engine.cpp.o -MF CMakeFiles/OpenImageDenoise_device_hip.dir/hip_engine.cpp.o.d -o CMakeFiles/OpenImageDenoise_device_hip.dir/hip_engine.cpp.o -c /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/hip_engine.cpp
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--rocm-path=@ESYSROOT_ROCM_PATH@’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103’
[4/8] Building CXX object CMakeFiles/OpenImageDenoise_device_hip.dir/hip_external_buffer.cpp.o
FAILED: CMakeFiles/OpenImageDenoise_device_hip.dir/hip_external_buffer.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DOpenImageDenoise_device_hip_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/include -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/library/include -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0 -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/external -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build -O2 -pipe  -Wall -Wno-unknown-pragmas -Wno-strict-overflow -fPIC -Wformat -Wformat-security -Wmissing-field-initializers  -O3 -DNDEBUG  -fstack-protector -D_FORTIFY_SOURCE=2 -std=c++17 -fPIC -fvisibility=internal -fvisibility-inlines-hidden -Wno-unused-result --rocm-path=@ESYSROOT_ROCM_PATH@ -x hip --offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103 -MD -MT CMakeFiles/OpenImageDenoise_device_hip.dir/hip_external_buffer.cpp.o -MF CMakeFiles/OpenImageDenoise_device_hip.dir/hip_external_buffer.cpp.o.d -o CMakeFiles/OpenImageDenoise_device_hip.dir/hip_external_buffer.cpp.o -c /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/hip_external_buffer.cpp
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--rocm-path=@ESYSROOT_ROCM_PATH@’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103’
[5/8] Building CXX object CMakeFiles/OpenImageDenoise_device_hip.dir/hip_module.cpp.o
FAILED: CMakeFiles/OpenImageDenoise_device_hip.dir/hip_module.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DOpenImageDenoise_device_hip_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/include -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/library/include -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0 -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/external -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build -O2 -pipe  -Wall -Wno-unknown-pragmas -Wno-strict-overflow -fPIC -Wformat -Wformat-security -Wmissing-field-initializers  -O3 -DNDEBUG  -fstack-protector -D_FORTIFY_SOURCE=2 -std=c++17 -fPIC -fvisibility=internal -fvisibility-inlines-hidden -Wno-unused-result --rocm-path=@ESYSROOT_ROCM_PATH@ -x hip --offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103 -MD -MT CMakeFiles/OpenImageDenoise_device_hip.dir/hip_module.cpp.o -MF CMakeFiles/OpenImageDenoise_device_hip.dir/hip_module.cpp.o.d -o CMakeFiles/OpenImageDenoise_device_hip.dir/hip_module.cpp.o -c /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/hip_module.cpp
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--rocm-path=@ESYSROOT_ROCM_PATH@’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103’
[6/8] Building CXX object CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_wmma.cpp.o
FAILED: CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_wmma.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DOpenImageDenoise_device_hip_EXPORTS -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/include -I/var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/../../external/composable_kernel/library/include -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0 -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/external -isystem /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0_build -O2 -pipe  -Wall -Wno-unknown-pragmas -Wno-strict-overflow -fPIC -Wformat -Wformat-security -Wmissing-field-initializers  -O3 -DNDEBUG  -fstack-protector -D_FORTIFY_SOURCE=2 -std=c++17 -fPIC -fvisibility=internal -fvisibility-inlines-hidden -Wno-unused-result --rocm-path=@ESYSROOT_ROCM_PATH@ -x hip --offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103 -mcumode -mno-wavefrontsize64 -MD -MT CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_wmma.cpp.o -MF CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_wmma.cpp.o.d -o CMakeFiles/OpenImageDenoise_device_hip.dir/ck_conv_wmma.cpp.o -c /var/tmp/portage/media-libs/oidn-2.1.0/work/oidn-2.1.0/devices/hip/ck_conv_wmma.cpp
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--rocm-path=@ESYSROOT_ROCM_PATH@’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘--offload-arch=gfx1030,gfx1031,gfx1032,gfx1033,gfx1034,gfx1035,gfx1036,gfx1100,gfx1101,gfx1102,gfx1103’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-mcumode’
x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-mno-wavefrontsize64’
ninja: build stopped: subcommand failed.

emerge --info

info@gentoo ~ $ emerge --info '=media-libs/oidn-2.1.0::cg'
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.38-r9, 6.6.13-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.13-gentoo-x86_64-x86_64-AMD_Ryzen_7_6800H_with_Radeon_Graphics-with-glibc2.38
KiB Mem:    15612932 total,   8585792 free
KiB Swap:   33554428 total,  33448444 free
Timestamp of repository gentoo: Tue, 23 Jan 2024 14:00:01 +0000
Head commit of repository gentoo: 45796ef7aee0f205dadf173efe6578cc83a10e07
Head commit of repository audio-overlay: fec3e763a923cad41279602f1ffc532e6b3d0e69

Head commit of repository cg: 9b27b0893ca420399d9efff1bf8c4c457455abc2

Head commit of repository edgets: 827df2c6a1c34c8a4b551300ba13dcb69f25f44f

Head commit of repository guru: 1b7e3ee90e6dfc745114d9597bc618a95bb8a210

Timestamp of repository torbrowser: Tue, 16 Jan 2024 11:49:58 +0000
Head commit of repository torbrowser: 28802869c3540ca7c2e4665b49d49b9ba488f6c2

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p4) 2.41.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.0-r2::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo, 3.12.1::gentoo
dev-lang/rust-bin:         1.71.1::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             11.4.1_p20230622::gentoo, 12.3.1_p20240112::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             16.0.6::gentoo, 17.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::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-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 3

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

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

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

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://gitweb.gentoo.org/repo/proj/guru.git
    masters: gentoo
    volatile: False

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

Binary Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
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 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="rsync://ftp.iij.ad.jp/pub/linux/gentoo/     http://ftp.iij.ad.jp/pub/linux/gentoo/     ftp://ftp.iij.ad.jp/pub/linux/gentoo/     https://ftp.jaist.ac.jp/pub/Linux/Gentoo/     http://ftp.jaist.ac.jp/pub/Linux/Gentoo/     ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/     rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/     https://repo.jing.rocks/gentoo     http://repo.jing.rocks/gentoo     rsync://repo.jing.rocks/gentoo     https://ftp.riken.jp/Linux/gentoo/     http://ftp.riken.jp/Linux/gentoo/     rsync://ftp.riken.jp/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j1 -l1"
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 acl amd64 bluetooth bzip2 cli crypt dbus dri fortran gdbm hwaccel iconv ipv6 libtirpc multilib ncurses network nls openmp pam pcre pipewire pulseaudio readline seccomp split-usr ssl test-rust unicode wifi wireless xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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" 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" INPUT_DEVICES="synaptics libinput cuda" KERNEL="linux" L10N="en en-US ko" 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-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia" 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, LC_ALL, 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

emerge -pqv

info@gentoo ~ $ emerge -pqv '=media-libs/oidn-2.1.0::cg'
[ebuild  N    ] media-libs/oidn-2.1.0  USE="built-in-weights cpu cuda cuda_targets_sm_86 hip -cuda_targets_sm_30 -cuda_targets_sm_50 -cuda_targets_sm_60 -cuda_targets_sm_61 -cuda_targets_sm_70 -cuda_targets_sm_75 -cuda_targets_sm_80 -cuda_targets_sm_90 -doc -examples -static-libs -sycl" AMDGPU_TARGETS="gfx90a gfx906 gfx908 gfx1030 -gfx803 -gfx900 -gfx1010 -gfx1011 -gfx1012 -gfx1031 -gfx1032 -gfx1034 -gfx1035 -gfx1100 -gfx1101 -gfx1102" PYTHON_SINGLE_TARGET="python3_11 -python3_10"

System has RTX 3070 Ti laptop gpu, and an AMD iGPU (CPU is Ryzen 7 6800H) that has not been configured to use.

lspci

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Root Complex (rev 01)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 17h-19h IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge (rev 01)
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge (rev 10)
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge (rev 10)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation GA104 [Geforce RTX 3070 Ti Laptop GPU] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA104 High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Realtek Semiconductor Co., Ltd. RTS5765DL NVMe SSD Controller (DRAM-less) (rev 01)
03:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
05:00.0 Non-Volatile memory controller: Micron Technology Inc 2450 NVMe SSD [HendrixV] (DRAM-less) (rev 01)
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c8)
06:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] VanGogh PSP/CCP
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #3
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #4
06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 60)
06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
07:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #8
07:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #5
07:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #6
brothermechanic commented 9 months ago

Hi. Looks like we solved this issue in latest commits

Please, check it!

anex5 commented 9 months ago

For AMD users with ROCm & HIP support enabled, package should be built with clang compiler. This package is currently not tested on AMD machines, so proper work is not guarantied.

infopcgood commented 9 months ago

Thanks, closing issue as I currently ditched Gentoo.