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
couet
April 8, 2025, 1:41pm
3
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
couet
April 8, 2025, 2:11pm
5
We are on it. There is an issue with cmake 4.0.0
opened 12:11PM - 08 Apr 25 UTC
bug
### Check duplicate issues.
- [x] Checked for duplicates
### Description
On m… acOS (but it may well be the same on other platforms). with cmake version 4.0.0 we get get a problem with TBB. with older version of cmake it works fine.
### Reproducer
```
$ git clone https://github.com/root-project/root.git
$ mkdir build
$ cd build
$ cmake ../root
$ make
[ 0%] Creating directories for 'FREETYPE'
[ 0%] Performing download step (verify and extract) for 'FREETYPE'
-- FREETYPE download command succeeded. See also /Users/sftnight/couet/build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-download-*.log
[ 0%] No update step for 'FREETYPE'
[ 0%] No patch step for 'FREETYPE'
[ 0%] Performing configure step for 'FREETYPE'
-- FREETYPE configure command succeeded. See also /Users/sftnight/couet/build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-configure-*.log
[ 0%] Performing build step for 'FREETYPE'
-- FREETYPE build command succeeded. See also /Users/sftnight/couet/build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-build-*.log
[ 0%] No install step for 'FREETYPE'
[ 0%] Completed 'FREETYPE'
[ 0%] Built target FREETYPE
[ 0%] Creating directories for 'AFTERIMAGE'
[ 0%] Performing download step for 'AFTERIMAGE'
-- AFTERIMAGE download command succeeded. See also /Users/sftnight/couet/build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-download-*.log
[ 0%] No update step for 'AFTERIMAGE'
[ 0%] No patch step for 'AFTERIMAGE'
[ 0%] Performing configure step for 'AFTERIMAGE'
-- AFTERIMAGE configure command succeeded. See also /Users/sftnight/couet/build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-configure-*.log
[ 0%] Performing build step for 'AFTERIMAGE'
-- AFTERIMAGE build command succeeded. See also /Users/sftnight/couet/build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-build-*.log
[ 0%] Performing install step for 'AFTERIMAGE'
-- AFTERIMAGE install command succeeded. See also /Users/sftnight/couet/build/AFTERIMAGE-prefix/src/AFTERIMAGE-stamp/AFTERIMAGE-install-*.log
[ 0%] Completed 'AFTERIMAGE'
[ 0%] Built target AFTERIMAGE
[ 0%] Creating directories for 'TBB'
[ 0%] Performing download step (download, verify and extract) for 'TBB'
-- TBB download command succeeded. See also /Users/sftnight/couet/build/TBB-prefix/src/TBB-stamp/TBB-download-*.log
[ 0%] No update step for 'TBB'
[ 0%] No patch step for 'TBB'
[ 0%] Performing configure step for 'TBB'
CMake Error at /Users/sftnight/couet/build/TBB-prefix/src/TBB-stamp/TBB-configure-Release.cmake:37 (message):
Command failed: 1
'/Applications/CMake.app/Contents/bin/cmake' '-G' 'Unix Makefiles' '-DCMAKE_BUILD_TYPE=Release' '-DCMAKE_CXX_COMPILER=/usr/bin/c++' '-DCMAKE_CXX_FLAGS= -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ ' '-DCMAKE_C_COMPILER=/usr/bin/cc' '-DCMAKE_C_FLAGS= -m64 -pipe -W -Wall -fsigned-char -fno-common -Qunused-arguments -pthread' '-DCMAKE_INSTALL_INCLUDEDIR=/Users/sftnight/couet/build/include' '-DCMAKE_INSTALL_LIBDIR=/Users/sftnight/couet/build/lib' '-DCMAKE_INSTALL_PREFIX=/Users/sftnight/couet/build' '-DTBBMALLOC_BUILD=OFF' '-DTBBMALLOC_PROXY_BUILD=OFF' '-DTBB_ENABLE_IPO=OFF' '-DTBB_STRICT=OFF' '-DTBB_TEST=OFF' '-GUnix Makefiles' '-S' '/Users/sftnight/couet/build/TBB-prefix/src/TBB' '-B' '/Users/sftnight/couet/build/TBB-prefix/src/TBB-build'
See also
/Users/sftnight/couet/build/TBB-prefix/src/TBB-stamp/TBB-configure-*.log
-- stdout output is:
-- Configuring incomplete, errors occurred!
-- stderr output is:
CMake Error at CMakeLists.txt:15 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
CMake Error at /Users/sftnight/couet/build/TBB-prefix/src/TBB-stamp/TBB-configure-Release.cmake:47 (message):
Stopping after outputting logs.
make[2]: *** [TBB-prefix/src/TBB-stamp/TBB-configure] Error 1
make[1]: *** [CMakeFiles/TBB.dir/all] Error 2
make: *** [all] Error 2
```
### ROOT version
Test done on MacOS 15.4 with root master
### Installation method
build form source
### Operating system
MacOS
### Additional context
_No response_
system
Closed
April 22, 2025, 2:12pm
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.