VDT Configuration Errors (Mac OS 15.4)

Hello,

I am trying to build the new tag v6-34-08 on Mac OS 15.4 with the latest Xcode and the compile step fails at the VDT configuration:

[196/10604] Performing configure step for ‘VDT’

FAILED: VDT-prefix/src/VDT-stamp/VDT-configure /Users/markhodgkinson/root_src_April2025/buildDir/VDT-prefix/src/VDT-stamp/VDT-configure

cd /Users/markhodgkinson/root_src_April2025/buildDir/VDT-prefix/src/VDT-build && /opt/homebrew/bin/cmake -P /Users/markhodgkinson/root_src_April2025/buildDir/VDT-prefix/src/VDT-stamp/VDT-configure-Release.cmake && /opt/homebrew/bin/cmake -E touch /Users/markhodgkinson/root_src_April2025/buildDir/VDT-prefix/src/VDT-stamp/VDT-configure

Checking the VDT error file I can see:

CMake Error at CMakeLists.txt:2 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the … syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

I tried the latter, but it did not help - such that my commands to build (with a new buildDir) are:

sudo cmake -DCMAKE_INSTALL_PREFIX=/opt/hep/root/v6-34-08 /Users/markhodgkinson/root_src_April2025 -GNinja
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CXX_STANDARD=17
-Dfail-on-missing=ON
-Dgdml=ON
-Dx11=ON
-Dpyroot=ON
-Ddataframe=ON
-Dmysql=OFF
-Doracle=OFF
-Dpgsql=OFF
-Dsqlite=OFF
-Dpythia6=OFF
-Dpythia8=OFF
-Dfftw3=OFF
-Dbuiltin_cfitsio=ON
-Dbuiltin_xxhash=ON
-Dbuiltin_afterimage=OFF
-Dbuiltin_openssl=OFF
-Dbuiltin_ftgl=ON
-Dbuiltin_glew=ON
-Dbuiltin_gsl=ON
-Dbuiltin_gl2ps=ON
-Dbuiltin_xrootd=ON
-Dgfal=OFF
-Ddavix=ON
-Dbuiltin_vdt=ON
-Dxrootd=OFF
-Dtmva=ON
-DCMAKE_POLICY_VERSION_MINIMUM=3.5

which works without errors and then:

sudo cmake --build . --target install

which produce the VDT config errors.

I was able to build with the v6 34 patches branch yesterday without this issue using the same commands.

Cheers,

Mark

I was able to solve this issue with the following change:

Blockquote
git diff
diff --git a/cmake/modules/SearchInstalledSoftware.cmake b/cmake/modules/SearchInstalledSoftware.cmake
index 00360ecbae..a568cc40ca 100644
— a/cmake/modules/SearchInstalledSoftware.cmake
+++ b/cmake/modules/SearchInstalledSoftware.cmake
@@ -1549,6 +1549,7 @@ if(vdt OR builtin_vdt)
-DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
-DCMAKE_CXX_FLAGS=${ROOT_EXTERNAL_CXX_FLAGS}
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
LOG_DOWNLOAD 1 LOG_CONFIGURE 1 LOG_BUILD 1 LOG_INSTALL 1
BUILD_BYPRODUCTS ${VDT_LIBRARIES}
TIMEOUT 600

Are you using cmake 4.0.0 ?

Yes I have cmake 4.0.0.

Previously I had quite an old version which could not be used with another software package…so I ran brew upgrade (now I am unsure whether I upgraded this after or before I built from the v6 34 patch branch yesterday).

Would downgrading cmake solve this issue for ROOT?

Despite solving the VDT issue, I then hit the same issue with CFITSIO which I could not find a way to solve (because I can’t figure out when in ROOT the cmake options for this are set).

Cheers,

Mark

We are on it. There is an issue with cmake 4.0.0

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.