Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 952090

Summary: dev-libs/rocm-device-libs-6.3.2 - [gcc-15] [cmake-4] -- CMake Error at cmake/OCL.cmake:12 (cmake_policy): Policy CMP0053 may not be set to OLD behavior because this version of CMake no longer supports it.
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Craig Andrews <candrews>
Status: RESOLVED FIXED    
Severity: normal CC: lockalsash, pitwuu
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/42608
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 951350    
Attachments: emerge-info.txt
dev-libs:rocm-device-libs-6.3.2:20250326-051715.log
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt

Description Toralf Förster gentoo-dev 2025-03-26 08:24:44 UTC
C++             -O3 -pipe -march=native -fno-diagnostics-color
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0
Module          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0
Shared          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0

-- Configuring incomplete, errors occurred!
 * ERROR: dev-libs/rocm-device-libs-6.3.2::gentoo failed (configure phase):
 *   cmake failed

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_systemd-20250324-010013

  KEYWORDED/UNMASKED

  [cmake-4] Requested by sam
  =dev-build/cmake-4*

  [gcc-15] Requested by sam
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang version 20.1.1
llvm-config: 20.1.1
Python 3.12.9
go version go1.24.1 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems)
  [2]   ruby34 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.84.1
  [2]   rust-bin-1.85.1 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.6_p7 [openjdk-bin-21]
2)	Eclipse Temurin JDK 8.442_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit d0af3641bedbfbf9b60f4a7c225f0f28f6dd2c3e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Mar 26 04:50:38 2025 +0000

    2025-03-26 04:50:38 UTC

emerge -qpvO =dev-libs/rocm-device-libs-6.3.2
[ebuild  N    ] dev-libs/rocm-device-libs-6.3.2  USE="-test" LLVM_SLOT="19"
Comment 1 Toralf Förster gentoo-dev 2025-03-26 08:24:45 UTC
Created attachment 922875 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-26 08:24:46 UTC
Created attachment 922876 [details]
dev-libs:rocm-device-libs-6.3.2:20250326-051715.log
Comment 3 Toralf Förster gentoo-dev 2025-03-26 08:24:47 UTC
Created attachment 922877 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2025-03-26 08:24:48 UTC
Created attachment 922878 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2025-03-26 08:24:49 UTC
Created attachment 922879 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-26 08:24:50 UTC
Created attachment 922880 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2025-03-26 08:24:51 UTC
Created attachment 922881 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-03-26 08:24:52 UTC
Created attachment 922882 [details]
qlist-info.txt
Comment 9 Philippe Michaud-Boudreault 2025-06-14 06:34:46 UTC
Also happens with  media-sound/clementine.
It would be helpful to collate these issues somewhere, as I'm sure many packages are affected by the update to cmake 4.

Here's a patch, working at least for clementine.

```patch
--- a/CMakeLists.txt    2025-06-14 13:28:37.478054885 +0700
+++ b/CMakeLists.txt    2025-06-14 13:28:43.882055080 +0700
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.13.0)
 project(clementine)

-cmake_policy(SET CMP0053 OLD)
+cmake_policy(SET CMP0053 NEW)

 include(CheckCXXCompilerFlag)
 include(FindPkgConfig)
```
Comment 10 Larry the Git Cow gentoo-dev 2025-06-15 16:12:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88f4649184e9eecf843f435e0815b8d290bbccf3

commit 88f4649184e9eecf843f435e0815b8d290bbccf3
Author:     Sv. Lockal <lockalsash@gmail.com>
AuthorDate: 2025-06-15 15:25:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-06-15 16:10:48 +0000

    dev-libs/rocm-device-libs: fix CMake 4 compatibility
    
    Closes: https://bugs.gentoo.org/952090
    Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
    Part-of: https://github.com/gentoo/gentoo/pull/42608
    Closes: https://github.com/gentoo/gentoo/pull/42608
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/rocm-device-libs/rocm-device-libs-6.3.3.ebuild | 1 +
 1 file changed, 1 insertion(+)
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-06-15 16:14:04 UTC
(In reply to Philippe Michaud-Boudreault from comment #9)
> Also happens with  media-sound/clementine.
> It would be helpful to collate these issues somewhere, as I'm sure many
> packages are affected by the update to cmake 4.
> 

That's exactly what bug 951350 is for (which this bug already blocks).