too long lines were shrinked: [90/127] cd /var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0_build/devices && /usr/bin/cmake -E echo_append && /usr/bin/cmake -E touch /var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0_build/devices/hip/stamp/OpenImageDenoise_device_hip-patch [91/127] cd /var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0_build/devices/hip/build && /usr/bin/cmake -GNinja -C/var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0_build/devices/hip/tmp/OpenImageDenoise_device_hip-cache-RelWithDebInfo.cmake -S /var/tmp/portage/media-libs/oidn-2.3.0/work/oi FAILED: devices/hip/stamp/OpenImageDenoise_device_hip-configure /var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0_build/devices/hip/stamp/OpenImageDenoise_device_hip-configure cd /var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0_build/devices/hip/build && /usr/bin/cmake -GNinja -C/var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0_build/devices/hip/tmp/OpenImageDenoise_device_hip-cache-RelWithDebInfo.cmake -S /var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0/ loading initial cache file /var/tmp/portage/media-libs/oidn-2.3.0/work/oidn-2.3.0_build/devices/hip/tmp/OpenImageDenoise_device_hip-cache-RelWithDebInfo.cmake -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:13 (project): The CMAKE_CXX_COMPILER: ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 23.0_hardened-20240728-181002 UNMASKED: Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense. <sys-devel/gcc-15.0.9999:15 Requested by sam ~dev-libs/icu-75.1 ~dev-libs/icu-layoutex-75.1 The attached etc.portage.tar.xz has all details. ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-15 * clang/llvm (if any): clang version 18.1.8 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/18/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/18 18.1.8 Python 3.12.4 Available Rust versions: [1] rust-bin-1.79.0 * php cli (if any): HEAD of ::gentoo commit 56a9deeaa33b6e008ac915a0a9185a774ea74110 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Mon Jul 29 00:04:02 2024 +0000 2024-07-29 00:04:02 UTC emerge -qpvO media-libs/oidn [ebuild N ] media-libs/oidn-2.3.0 USE="apps hip -cuda -openimageio -test" AMDGPU_TARGETS="gfx90a gfx906 gfx908 gfx1030 -gfx803 -gfx900 -gfx1010 -gfx1011 -gfx1012 -gfx1031 -gfx1100 -gfx1101 -gfx1102" LLVM_SLOT="17 -15 -16"
Created attachment 898530 [details] emerge-info.txt
Created attachment 898531 [details] emerge-history.txt
Created attachment 898532 [details] environment
Created attachment 898533 [details] etc.clang.tar.xz
Created attachment 898534 [details] etc.portage.tar.xz
Created attachment 898535 [details] media-libs:oidn-2.3.0:20240729-084153.log
Created attachment 898536 [details] qlist-info.txt
Created attachment 898537 [details] temp.tar.xz
Seems like broken wiring of llvm-r1 eclass. Will fix that together with some osl related stuff I have on the agenda.
commit 1d77a56c1525bfadacdebfb7f36e3d44e2076bce Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: Wed Sep 4 07:03:36 2024 Commit: Sam James <sam@gentoo.org> CommitDate: Wed Sep 4 22:11:29 2024 media-libs/oidn: add clang/llvm dependency https://bugs.gentoo.org/936899 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> media-libs/oidn/oidn-2.2.2.ebuild | 9 +++++++-- media-libs/oidn/oidn-2.3.0.ebuild | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) No "Bug:" or "Closes:" tag! Is this fixed?
The title is a bit misleading, implies that gcc-15 has something to do with the issue and misses `media-libs/oidn-2.3.0[hip]`. The actual error is: ``` CMake Error at CMakeLists.txt:13 (project): The CMAKE_CXX_COMPILER: /usr/lib/llvm/17/bin/clang++ is not a full path to an existing compiler tool. ``` What exactly happens is that ebuild with USE=hip add dependency on both llvm-core/clang (some version) and dev-util/hip (some version), while not attempting to keep in sync both packages. What happens is that it pulls dev-util/hip-6.1.2 (with clang-18, as needed) and passes `-DOIDN_DEVICE_HIP_COMPILER=/usr/lib/llvm/17/bin/clang++` which can't even compile hip code due to lack of amdgcn bitcode. The best fix is to remove llvm-r1 inheritance completely and use -DOIDN_DEVICE_HIP_COMPILER=/usr/bin/hipcc. HIPCC compiler already knows exact clang version to use and depends on correct clang, amdgcn bitcode, etc. Note that removal of llvm-r1 inheritance affects blender ebuild as blender depends on: oidn? ( >=media-libs/oidn-2.1.0[${LLVM_USEDEP}] ) while after it should be: oidn? ( >=media-libs/oidn-2.1.0 ) Also blender attempts to keep llvm_slot_* and dev-util/hip in sync, which is unnecessary. There are multiple parts in Blender that provide GPU acceleration, namely, Cycles, OIDN, OSL and Mesa. These parts are independent of each other. For example, it is possible to use LLVM-18-based Mesa (as Mesa is traditionally lagging behind) with Cycles+OIDN compiled by hipcc-6.3.0 (LLVM-19-based). While testing with hipcc-6.3.0 I also notices compilation issue with rocm-6.3.0 release, I'll fix this issue in PR too.