ROOT Version: 6.32.10
Platform: win64
Compiler: 19.33.31630.0
, 19.39.33521.0
, 19.44.35209.0
Summary
I installed your root_v6.32.10.win64.vc17.zip package on Windows 10 and roottest: execHistArray failed with redefinition of '_CrtEnableIf<true, _Ty>'
error.
Hypothesis
Could it be related to Visual Studio 2022 version (MSVC)?
Windows
Here is the OS of the target:
PS C:\...> Get-ComputerInfo OsName, OsVersion
OsName OsVersion
------ ---------
Microsoft Windows 10 Entreprise 10.0.19045
MSVC 19.39 (v17.9)
The compiler of your root_v6.32.10.win64.vc17.zip
binary package is:
PS C:\Users\...\Documents\URANIE\46220\roottest\root_v6.32.10.win64.vc17> root -q -e "gSystem->GetBuildCompiler()"
------------------------------------------------------------------
| Welcome to ROOT 6.32.10 https://root.cern |
| (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win64 on Feb 10 2025, 10:01:04 |
| From tags/v6-32-10@v6-32-10 |
| With MSVC 19.39.33521.0 |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
(const char *) "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe"
I uploaded 2 ROOT binary packages I compiled on 2 different Windows 10 targets (with their own Visual Studio 2022):
root_v6.32.10.win64.vc17.3.zip
root_v6.32.10.win64.vc17.14.zip
I invite you to download them to carried out some tests if you want.
MSVC 19.33 (v17.3)
The compiler of root_v6.32.10.win64.vc17.3.zip
is:
PS C:\Users\...\Documents\URANIE\46220\downloads> .\root_v6.32.10.win64.vc17.3\outputs\root\bin\root.exe -q -e "gSystem->GetBuildCompiler()"
------------------------------------------------------------------
| Welcome to ROOT 6.32.10 https://root.cern |
| (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win64 on Jun 13 2025, 03:11:52 |
| From tags/v6-32-10@v6-32-10 |
| With MSVC 19.33.31630.0 |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
(const char *) "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.33.31629/bin/Hostx64/x64/cl.exe"
MSVC 19.44 (v17.14)
The compiler of root_v6.32.10.win64.vc17.14.zip
is:
PS C:\Users\...\Documents\URANIE\46220\downloads> .\root_v6.32.10.win64.vc17.14\outputs\root\bin\root.exe -q -e "gSystem->GetBuildCompiler()"
------------------------------------------------------------------
| Welcome to ROOT 6.32.10 https://root.cern |
| (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win64 on Jul 11 2025, 07:05:38 |
| From tags/v6-32-10@v6-32-10 |
| With MSVC 19.44.35209.0 |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
(const char *) "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe"
MSVC 19.39 (v17.9)
Installation
First I downloaded your binary package:
**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.3.6
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS C:\Users\...\source\repos> sl C:\Users\...\Documents\URANIE\46220\downloads\
PS C:\Users\...\Documents\URANIE\46220\downloads> Invoke-WebRequest -OutFile root_v6.32.10.win64.vc17.zip https://root.cern/download/root_v6.32.10.win64.vc17.zip
PS C:\Users\...\Documents\URANIE\46220\downloads> Get-FileHash .\root_v6.32.10.win64.vc17.zip
Algorithm Hash Path
--------- ---- ----
SHA256 C03F7CB756B41391AB2CB42401A40293F77A0CBF959A24C22A752DF25BD8BCD3 C:\Users\...\Documents\U...
Notice the target version of Visual Studio (v17.3) is older than yours (v17.9).
Then I loaded ROOT:
PS C:\Users\...\Documents\URANIE\46220\downloads> Expand-Archive .\root_v6.32.10.win64.vc17.zip
PS C:\Users\...\Documents\URANIE\46220\downloads> .\root_v6.32.10.win64.vc17\root\bin\thisroot.ps1
Test
I cloned GitHub - root-project/roottest at v6-32-00-patches
$ git clone -b v6-32-00-patches https://github.com/root-project/roottest.git
And I run the test without building anything (because it might not be mandatory):
PS C:\Users\...\Documents\URANIE\46220\roottest\vc17_9> cmake ..
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.33.31630.0
-- The CXX compiler identification is MSVC 19.33.31630.0
[...]
PS C:\Users\...\Documents\URANIE\46220\roottest\vc17_9> ctest -C Release -R execHistArray -V
UpdateCTestConfiguration from :C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/DartConfiguration.tcl
Parse Config file:C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/DartConfiguration.tcl
Add coverage exclude regular expressions.
UpdateCTestConfiguration from :C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/DartConfiguration.tcl
Parse Config file:C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/DartConfiguration.tcl
Test project C:/Users/.../Documents/URANIE/46220/roottest/vc17_9
Constructing a list of tests
Ignore test: roottest-cling-parsing-semicolon
Ignore test: roottest-root-rint-TabCom
Ignore test: roottest-root-rint-BackslashNewline
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 176
Start 176: roottest-root-collection-execHistArray-auto
176: Test command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" "-DCMD=C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17/root/bin/root.exe^-e^#define _CRT_SECURE_NO_WARNINGS^-e^#define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING^-e^#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING^-e^#define ClingWorkAroundMissingDynamicScope^-e^#define ClingWorkAroundUnnamedInclude^-e^#define ClingWorkAroundMissingSmartInclude^-e^#define ClingWorkAroundNoDotInclude^-e^#define ClingWorkAroundMissingAutoLoadingForTemplates^-e^#define ClingWorkAroundAutoParseUsingNamespace^-e^#define ClingWorkAroundTClassUpdateDouble32^-e^#define ClingWorkAroundAutoParseDeclaration^-e^#define ClingWorkAroundMissingUnloading^-e^#define ClingWorkAroundBrokenUnnamedReturn^-e^#define ClingWorkAroundUnnamedDetection2^-e^gSystem->SetBuildDir("C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection",true)^-e^gSystem->AddDynamicPath("C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection")^-e^gROOT->SetMacroPath("C:/Users/.../Documents/URANIE/46220/roottest/root/collection")^-e^gInterpreter->AddIncludePath("-IC:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection")^-e^gSystem->AddIncludePath("-IC:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection")^-q^-l^-b^C:/Users/.../Documents/URANIE/46220/roottest/root/collection/execHistArray.cxx" "-DOUT=C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection/roottest-root-collection-execHistArray-auto.log" "-DOUTREF=C:/Users/.../Documents/URANIE/46220/roottest/root/collection/execHistArray.ref" "-DCWD=C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection" "-DDIFFCMD=C:/Users/.../AppData/Local/Programs/Python/Python311/python.exe^C:/Users/.../Documents/URANIE/46220/roottest/scripts/custom_diff.py" "-DCHECKOUT=true" "-DCHECKERR=true" "-DSYS=C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17/root" "-DENV=ROOTSYS=C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17/root#PYTHONPATH=C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17/root/bin" "-P" "C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17/root/cmake/RootTestDriver.cmake"
176: Environment variables:
176: ROOT_HIST=0
176: Test timeout computed to be: 300
176: -- TEST COMMAND --
176: cd C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection
176: C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17/root/bin/root.exe -e '#define _CRT_SECURE_NO_WARNINGS' -e '#define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING' -e '#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING' -e '#define ClingWorkAroundMissingDynamicScope' -e '#define ClingWorkAroundUnnamedInclude' -e '#define ClingWorkAroundMissingSmartInclude' -e '#define ClingWorkAroundNoDotInclude' -e '#define ClingWorkAroundMissingAutoLoadingForTemplates' -e '#define ClingWorkAroundAutoParseUsingNamespace' -e '#define ClingWorkAroundTClassUpdateDouble32' -e '#define ClingWorkAroundAutoParseDeclaration' -e '#define ClingWorkAroundMissingUnloading' -e '#define ClingWorkAroundBrokenUnnamedReturn' -e '#define ClingWorkAroundUnnamedDetection2' -e 'gSystem->SetBuildDir("C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection",true)' -e 'gSystem->AddDynamicPath("C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection")' -e 'gROOT->SetMacroPath("C:/Users/.../Documents/URANIE/46220/roottest/root/collection")' -e 'gInterpreter->AddIncludePath("-IC:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection")' -e 'gSystem->AddIncludePath("-IC:/Users/.../Documents/URANIE/46220/roottest/vc17_9/root/collection")' -q -l -b C:/Users/.../Documents/URANIE/46220/roottest/root/collection/execHistArray.cxx
176: -- BEGIN TEST OUTPUT --
176:
176: Processing C:/Users/.../Documents/URANIE/46220/roottest/root/collection/execHistArray.cxx...
176: In file included from input_line_27:1:
176: In file included from C:\Users\...\Documents\URANIE\46220\roottest\root\collection\execHistArray.cxx:3:
176: In file included from C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\cassert:9:
176: In file included from C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\assert.h:12:
176: C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:260:12: error: redefinition of '_CrtEnableIf<true, _Ty>'
176: struct _CrtEnableIf<true, _Ty>
176: ^~~~~~~~~~~~~~~~~~~~~~~
176: C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\corecrt.h:260:12: note: previous definition is here
176: struct _CrtEnableIf<true, _Ty>
176: ^
[...]
176: -- END TEST OUTPUT --
176: CMake Error at C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17/root/cmake/RootTestDriver.cmake:186 (message):
176: got exit code 1 but expected 0
176:
176:
1/1 Test #176: roottest-root-collection-execHistArray-auto ...***Failed 0.83 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 1.56 sec
The following tests FAILED:
176 - roottest-root-collection-execHistArray-auto (Failed)
Errors while running CTest
Output from these tests are in: C:/Users/.../Documents/URANIE/46220/roottest/vc17_9/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
PS C:\Users\...\Documents\URANIE\46220\roottest\vc17_9>
Unfortunately the test failed.
MSVC 19.33 (v17.3)
Here is another test with the package built on the target machine.
Installation
I loaded the package:
**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.3.6
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS C:\Users\...\source\repos> sl C:\Users\...\Documents\URANIE\46220\downloads
PS C:\Users\...\Documents\URANIE\46220\downloads> .\root_v6.32.10.win64.vc17.3\outputs\root\bin\thisroot.ps1
Notice I added an outputs\
subfolder (sorry).
Test
And I ran the test:
PS C:\Users\...\Documents\URANIE\46220\roottest\vc17_3> cmake ..
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.33.31630.0
-- The CXX compiler identification is MSVC 19.33.31630.0
[...]
PS C:\Users\...\Documents\URANIE\46220\roottest\vc17_3> ctest -C Release -R execHistArray -V
UpdateCTestConfiguration from :C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/DartConfiguration.tcl
Parse Config file:C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/DartConfiguration.tcl
Add coverage exclude regular expressions.
UpdateCTestConfiguration from :C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/DartConfiguration.tcl
Parse Config file:C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/DartConfiguration.tcl
Test project C:/Users/.../Documents/URANIE/46220/roottest/vc17_3
Constructing a list of tests
Ignore test: roottest-cling-parsing-semicolon
Ignore test: roottest-root-rint-TabCom
Ignore test: roottest-root-rint-BackslashNewline
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 176
Start 176: roottest-root-collection-execHistArray-auto
176: Test command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" "-DCMD=C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17.3/outputs/root/bin/root.exe^-e^#define _CRT_SECURE_NO_WARNINGS^-e^#define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING^-e^#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING^-e^#define ClingWorkAroundMissingDynamicScope^-e^#define ClingWorkAroundUnnamedInclude^-e^#define ClingWorkAroundMissingSmartInclude^-e^#define ClingWorkAroundNoDotInclude^-e^#define ClingWorkAroundMissingAutoLoadingForTemplates^-e^#define ClingWorkAroundAutoParseUsingNamespace^-e^#define ClingWorkAroundTClassUpdateDouble32^-e^#define ClingWorkAroundAutoParseDeclaration^-e^#define ClingWorkAroundMissingUnloading^-e^#define ClingWorkAroundBrokenUnnamedReturn^-e^#define ClingWorkAroundUnnamedDetection2^-e^gSystem->SetBuildDir("C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection",true)^-e^gSystem->AddDynamicPath("C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection")^-e^gROOT->SetMacroPath("C:/Users/.../Documents/URANIE/46220/roottest/root/collection")^-e^gInterpreter->AddIncludePath("-IC:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection")^-e^gSystem->AddIncludePath("-IC:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection")^-q^-l^-b^C:/Users/.../Documents/URANIE/46220/roottest/root/collection/execHistArray.cxx" "-DOUT=C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection/roottest-root-collection-execHistArray-auto.log" "-DOUTREF=C:/Users/.../Documents/URANIE/46220/roottest/root/collection/execHistArray.ref" "-DCWD=C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection" "-DDIFFCMD=C:/Users/.../AppData/Local/Programs/Python/Python311/python.exe^C:/Users/.../Documents/URANIE/46220/roottest/scripts/custom_diff.py" "-DCHECKOUT=true" "-DCHECKERR=true" "-DSYS=C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17.3/outputs/root" "-DENV=ROOTSYS=C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17.3/outputs/root#PYTHONPATH=C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17.3/outputs/root/bin" "-P" "C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17.3/outputs/root/cmake/RootTestDriver.cmake"
176: Environment variables:
176: ROOT_HIST=0
176: Test timeout computed to be: 300
176: -- TEST COMMAND --
176: cd C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection
176: C:/Users/.../Documents/URANIE/46220/downloads/root_v6.32.10.win64.vc17.3/outputs/root/bin/root.exe -e '#define _CRT_SECURE_NO_WARNINGS' -e '#define _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING' -e '#define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING' -e '#define ClingWorkAroundMissingDynamicScope' -e '#define ClingWorkAroundUnnamedInclude' -e '#define ClingWorkAroundMissingSmartInclude' -e '#define ClingWorkAroundNoDotInclude' -e '#define ClingWorkAroundMissingAutoLoadingForTemplates' -e '#define ClingWorkAroundAutoParseUsingNamespace' -e '#define ClingWorkAroundTClassUpdateDouble32' -e '#define ClingWorkAroundAutoParseDeclaration' -e '#define ClingWorkAroundMissingUnloading' -e '#define ClingWorkAroundBrokenUnnamedReturn' -e '#define ClingWorkAroundUnnamedDetection2' -e 'gSystem->SetBuildDir("C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection",true)' -e 'gSystem->AddDynamicPath("C:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection")' -e 'gROOT->SetMacroPath("C:/Users/.../Documents/URANIE/46220/roottest/root/collection")' -e 'gInterpreter->AddIncludePath("-IC:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection")' -e 'gSystem->AddIncludePath("-IC:/Users/.../Documents/URANIE/46220/roottest/vc17_3/root/collection")' -q -l -b C:/Users/.../Documents/URANIE/46220/roottest/root/collection/execHistArray.cxx
176: -- BEGIN TEST OUTPUT --
176:
176: Processing C:/Users/.../Documents/URANIE/46220/roottest/root/collection/execHistArray.cxx...
176: (int) 0
176:
176: -- END TEST OUTPUT --
1/1 Test #176: roottest-root-collection-execHistArray-auto ... Passed 4.36 sec
The following tests passed:
roottest-root-collection-execHistArray-auto
100% tests passed, 0 tests failed out of 1
Total Test time (real) = 4.91 sec
PS C:\Users\...\Documents\URANIE\46220\roottest\vc17_3>
The test succeeded.
Request
Could you test root_v6.32.10.win64.vc17.3.zip
or root_v6.32.10.win64.vc17.14.zip
and see if you can reproduce this error?
Best regards,