Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936899 - media-libs/oidn-2.3.0 - [icu-75.1] [gcc-15] CMake Error at CMakeLists.txt:13 (project):
Summary: media-libs/oidn-2.3.0 - [icu-75.1] [gcc-15] CMake Error at CMakeLists.txt:13 ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sebastian Parborg
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-07-29 17:35 UTC by Toralf Förster
Modified: 2025-01-30 22:48 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.44 KB, text/plain)
2024-07-29 17:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,19.42 KB, text/plain)
2024-07-29 17:35 UTC, Toralf Förster
Details
environment (environment,139.63 KB, text/plain)
2024-07-29 17:35 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.35 KB, application/x-xz)
2024-07-29 17:35 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,39.10 KB, application/x-xz)
2024-07-29 17:35 UTC, Toralf Förster
Details
media-libs:oidn-2.3.0:20240729-084153.log (media-libs:oidn-2.3.0:20240729-084153.log,81.98 KB, text/plain)
2024-07-29 17:35 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,55.32 KB, text/plain)
2024-07-29 17:35 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,31.29 KB, application/x-xz)
2024-07-29 17:35 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-07-29 17:35:04 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2024-07-29 17:35:04 UTC
Created attachment 898530 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-07-29 17:35:05 UTC
Created attachment 898531 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-07-29 17:35:07 UTC
Created attachment 898532 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-07-29 17:35:07 UTC
Created attachment 898533 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-07-29 17:35:08 UTC
Created attachment 898534 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-07-29 17:35:10 UTC
Created attachment 898535 [details]
media-libs:oidn-2.3.0:20240729-084153.log
Comment 7 Toralf Förster gentoo-dev 2024-07-29 17:35:11 UTC
Created attachment 898536 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-07-29 17:35:12 UTC
Created attachment 898537 [details]
temp.tar.xz
Comment 9 Paul Zander 2024-07-29 18:08:28 UTC
Seems like broken wiring of llvm-r1 eclass. Will fix that together with some osl related stuff I have on the agenda.
Comment 10 Eli Schwartz gentoo-dev 2024-11-13 00:24:18 UTC
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?
Comment 11 Sv. Lockal 2025-01-26 16:01:40 UTC
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.