Building last github version on windows 64 bits

_ROOT Version: Last github version as of February 19th [ROOT 6.29/01]
_Platform: Windows 11 64 bits
_Compiler: MSVC 17 2022
_Cmake: 3.24

I am trying to build the last root version from the github repository in 64 bits with MSVC 17 2022.
I invoke CMAKE as follows in the x64 Native Tools Command Prompt for VS 2022:

cmake -G"Visual Studio 17 2022" -A x64 -DCMAKE_VERBOSE_MAKEFILE=ON -DPython3_ROOT_DIR="D:\Microsoft Visual Studio\Shared\Python39_64" -DCMAKE_INSTALL_PREFIX=D:\OneDrive\Libraries\ROOT\root_install_windows -DCMAKE_CXX_STANDARD=17 -Dopengl=ON -Dpyroot=ON -Dqt5web=ON -Dwebgui=ON -Droot7=ON -DQt5_DIR=D:\Qt\5.15.2\msvc2019_64\lib\cmake\Qt5 D:\OneDrive\Libraries\ROOT\root_src

and CMAKE response is:

CMake Deprecation Warning at CMakeLists.txt:16 (cmake_policy):
The OLD behavior for policy CMP0091 will be removed from a future version
of CMake.

The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.

– Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.22621.
– Detected ROOT_VERSION 6.29.01
– Checking internet connectivity
– Checking internet connectivity - found
– Looking for Python
– Found Python3: D:/Microsoft Visual Studio/Shared/Python39_64/python.exe (found version β€œ3.9.13”) found components: Interpreter Development NumPy Development.Module Development.Embed
– Could NOT find Python2 (missing: Python2_EXECUTABLE Python2_LIBRARIES Python2_INCLUDE_DIRS Python2_NumPy_INCLUDE_DIRS Interpreter Development NumPy Development.Module Development.Embed)
– ROOT Platform: win32
– ROOT Compiler: MSVC 19.34.31942.0
– ROOT Processor: AMD64
– ROOT Architecture: win64
– Build Type: β€˜β€™ (flags = β€˜β€™)
– Compiler Flags: -nologo -ID:/OneDrive/Libraries/ROOT/root_src/build/win -FIw32pragma.h -FIsehmap.h -Zc:__cplusplus -std:c++17 -MD -GR -EHsc- -W3 -wd4141 -wd4291 -wd4244 -wd4049 -wd4146 -D_WIN32 -wd4267 -D_WIN64 -D_XKEYCHECK_H -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING -D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
– ROOT default compression algorithm: zlib
– PyROOT will be built for version 3.9.13
– Building freetype version 2.12.1 included in ROOT itself
– Building LZMA version 5.2.4 included in ROOT itself
– Looking for OpenGL
– Cannot select cudnn without selecting cuda or tmva-gpu. Option is ignored
– Building LLVM in β€˜Release’ mode.
– Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
– Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
– Native target architecture is X86
– Threads disabled.
– Doxygen disabled.
– Go bindings disabled.
– OCaml bindings disabled.
– LLVM host triple: x86_64-pc-windows-msvc
– LLVM default target triple: x86_64-pc-windows-msvc
– Found Python3: D:/Microsoft Visual Studio/Shared/Python39_64/python.exe (found suitable version β€œ3.9.13”, minimum required is β€œ3.0”) found components: Interpreter
– LLVMHello ignored – Loadable modules not supported on this platform.
– Targeting X86
– Targeting NVPTX
– Clang version: 13.0.0
– Not building amdgpu-arch: hsa-runtime64 not found
– PrintFunctionNames ignored – Loadable modules not supported on this platform.
– AnnotateFunctions ignored – Loadable modules not supported on this platform.
– Attribute ignored – Loadable modules not supported on this platform.
– CallSuperAttr ignored – Loadable modules not supported on this platform.
– BugpointPasses ignored – Loadable modules not supported on this platform.
– Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
– Cling version (from VERSION file): ROOT_1.0~dev
– Distributed RDataFrame enabled
– Looking for RapidYAML (used by RooFit)
– Could NOT find ryml (missing: RYML_LIBRARY RYML_INCLUDE_DIR)
– RapidYAML not found, only compiling RooFit with nlohmann-json parser
– Performing Test found_stdstringview
– Performing Test found_stdstringview - Success
– Performing Test found_stod_stringview
– Performing Test found_stod_stringview - Failed
– Performing Test found_stdapply
– Performing Test found_stdapply - Success
– Performing Test found_stdinvoke
– Performing Test found_stdinvoke - Success
– Performing Test found_stdindexsequence
– Performing Test found_stdindexsequence - Success
– ROOT Configuration

System Windows-10.0.22621
Processor 24 core 2419 MHz GenuineIntel Pentium III (0.25 micron) (AMD64)
Build type
Install path D:/OneDrive/Libraries/ROOT/root_install_windows
Compiler MSVC 19.34.31942.0
Compiler flags:
C -nologo -ID:/OneDrive/Libraries/ROOT/root_src/build/win -FIw32pragma.h -FIsehmap.h -MD -EHsc- -W3 -D_WIN32 -wd4267 -D_WIN64 -DNOMINMAX
C++ -nologo -ID:/OneDrive/Libraries/ROOT/root_src/build/win -FIw32pragma.h -FIsehmap.h -Zc:__cplusplus -std:c++17 -MD -GR -EHsc- -W3 -wd4141 -wd4291 -wd4244 -wd4049 -wd4146 -D_WIN32 -wd4267 -D_WIN64 -D_XKEYCHECK_H -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING -D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING
Linker flags:
Executable /machine:x64
Module /machine:x64 -ignore:4049,4206,4217,4221 -incremental:no
Shared /machine:x64 -ignore:4049,4206,4217,4221 -incremental:no

– Enabled support for: asimage builtin_afterimage builtin_clang builtin_cling builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_gtest builtin_llvm builtin_lz4 builtin_lzma builtin_nlohmannjson builtin_openui5 builtin_pcre builtin_tbb builtin_xxhash builtin_zlib builtin_zstd clad dataframe exceptions gdml http imt mlp minuit2 opengl pyroot qt5web roofit webgui root7 shared tmva tmva-pymva spectrum
– Configuring done

Then I build with cmake --build . --config Release --target install -- /maxcpucount or cmake --build . --config Release --target install

I get the following errors:

         Touching "x64\Release\onepcm\onepcm.tlog\unsuccessfulbuild".
         "The build of 'D:\OneDrive\Libraries\ROOT\root_build_windows\CMakeFiles\6e21cb6d18312b60d2c75b1c8bc8ec14\onepcm.rule' depends on 'D:\ONEDRIVE\LIBRARIES\ROOT\ROOT_BUILD_WINDOWS\ET
         C\ALLDICT.CXX.PCH' which is produced by the build of 'D:\OneDrive\Libraries\ROOT\root_build_windows\CMakeFiles\d6988d7f7a85facda0e549aa2f98f9a8\allDict.cxx.pch.rule'. The items c
         annot be built in parallel."
         Generating etc/allDict.cxx.pch

         Generating PCH for bindings\tpython core core\clingutils core\imt core\rint core\thread graf2d\asimage graf2d\gpad graf2d\gpadv7 graf2d\graf graf2d\postscript graf2d\primitivesv7
          graf2d\win32gdk graf3d\g3d graf3d\gl gui\fitpanel gui\fitpanelv7 gui\gui hist\hist hist\histdrawv7 hist\histpainter hist\histv7 hist\spectrum hist\spectrumpainter io\io math\gen
         etic math\genvector math\mathcore math\matrix math\minuit math\minuit2 math\physics math\smatrix math\vecops net\net roofit\RDataFrameHelpers roofit\histfactory roofit\hs3 roofit
         \jsoninterface roofit\roofit roofit\roofitcore roofit\roostats tmva\pymva tmva\sofie tmva\tmva tmva\tmvagui tree\dataframe tree\ntuple tree\ntupleutil tree\tree tree\treeplayer t
         ree\treeviewer tree\webviewer

         <<< cling interactive line includer >>>:1:10: fatal error: 'Visual' file not found
         #include "Visual"
   155>CUSTOMBUILD : error : Parsing #pragma failed etc\dictpch\allLinkDefs.h [D:\OneDrive\Libraries\ROOT\root_build_windows\onepcm.vcxproj]
   155>D:\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: Custom build for 'D:\OneDrive\Libraries\ROOT\root_build_windo
       e\Libraries\ROOT\root_src\CMakeLists.txt' exited with code 1. [D:\OneDrive\Libraries\ROOT\root_build_windows\onepcm.vcxproj]
   155>Done Building Project "D:\OneDrive\Libraries\ROOT\root_build_windows\onepcm.vcxproj" (default targets) -- FAILED.
   188>Done Building Project "D:\OneDrive\Libraries\ROOT\root_build_windows\hsimple.vcxproj" (default targets) -- FAILED.
     3>Done Building Project "D:\OneDrive\Libraries\ROOT\root_build_windows\ALL_BUILD.vcxproj" (default targets) -- FAILED.
     1>Done Building Project "D:\OneDrive\Libraries\ROOT\root_build_windows\install.vcxproj" (default targets) -- FAILED.


Do you have any idea what this #include β€œVisual” can be ?

I think this is due to Python being installed in D:\Microsoft Visual Studio\Shared\Python39_64. Try to install Python in a locations without spaces (e.g. D:\Python39_64). I’ll see how to fix this issue.

Indeed it was this. Thanks

1 Like

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