Building ROOT on Windows 10 + last release of Visual Studio 2019

Dear experts,

I am sorry to disturb you but I do not manage to build ROOT from the sources ( on Windows 10 with Visual Studio 2019 (v16.8.4). I have installed a posteriori Visual Studio with the Python & C++ development option. The SDK kit version is : 10.0.18362.0.

I have selected “x86 Native Tools Command Prompt for VS 2019” (not the 64bits one) for typing commands line. Then I have typed the following

cd C:\BuildDir
cmake --build . --config Debug

The building failed due to a problem with the std library atomic.

"C:\buildir\ALL_BUILD.vcxproj" (cible par défaut) (1) ->
"C:\buildir\graf2d\asimage\G__ASImage.vcxproj" (cible par défaut) (160) ->
"C:\buildir\core\Core.vcxproj" (cible par défaut) (162) ->
"C:\buildir\core\G__Core.vcxproj" (cible par défaut) (163) ->
(CustomBuild cible) ->
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\\include\atomic(895,13): error G30564CF7: use of undeclared identifier '__iso_volatile_store32' [C:\buildi
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\\include\atomic(899,13): error G30564CF7: use of undeclared identifier '__iso_volatile_store32' [C:\buildi
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\\include\atomic(2217,57): error GFB12FC72: too many arguments to function call, expected single argument '
_Value', have 2 arguments [C:\buildir\core\G__Core.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\\include\atomic(676,27): error G30564CF7: use of undeclared identifier '__iso_volatile_load8' [C:\buildir\
  CUSTOMBUILD : error : Error loading the default header files. [C:\buildir\core\G__Core.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(238,5): error MSB8066: la build personnalisée de 'C:\buildir\CMakeFiles\f28596
401f6af03e6916a1a4385b9c5d\G__Core.cxx.rule' s'est arrêtée. Code 1. [C:\buildir\core\G__Core.vcxproj]

I have no clue for trying to remove this mistake. I hope you can help me.
Thanks in advance,

Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Windows 10
Compiler: Visual Studio 2019 (v16.8.4)


Yes, sorry, but ROOT doesn’t compile with the latest version of Visual Studio. The migration to LLVM 9.0 will solve the problem (plus a patch in LLVM itself)

Cheers, Bertrand.

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