ROOT Version: tags/v6-36-00@v6-36-00
Platform: win64
: Windows 10 22H2
Compiler: MSVC 19.33.31630.0
: Visual Studio 2022 17.3.6
I compiled ROOT 6.36 for Windows and building roottest seems to trigger LNK1181
issues.
A related issue may be: [CEA 45230] roottest v6-36-00: IoBigEventGenerator -> MathCore Dependency Issue?
Environment: CMake, Python & ROOT
In “Developer PowerShell for VS 2022” which provides CMake, I activated a Python environment & loaded ROOT:
**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.3.6
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS C:\...> py -3.10 -m venv python
PS C:\...> & .\python\Scripts\Activate.ps1
(python) PS C:\...> . .\outputs\root\bin\thisroot.ps1
(python) PS C:\...> root -q
------------------------------------------------------------------
| Welcome to ROOT 6.36.000 https://root.cern |
| (c) 1995-2025, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for win64 on Jun 12 2025, 13:50:30 |
| From tags/v6-36-00@v6-36-00 |
| With MSVC 19.33.31630.0 |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
(python) PS C:\...>
Here are some data about ROOT configuration:
(python) PS C:\...> root-config --python-version
3.10.11
(python) PS C:\...> root-config --features
cxx17 asimage builtin_clang builtin_cling builtin_freetype builtin_gif builtin_gtest builtin_jpeg builtin_llvm builtin_lz4 builtin_lzma builtin_nlohmannjson builtin_pcre builtin_png builtin_xxhash builtin_zlib builtin_zstd dataframe fftw3 pyroot roofit shared testsupport tpython xml
(python) PS C:\...>
Here is a link to download this ROOT binary package if this might be useful: FileSender
Tests: roottest
Then here is how I tried to build GitHub - root-project/roottest at v6-36-00-patches with this package:
$ git clone -b v6-36-00-patches https://github.com/root-project/roottest.git
(python) PS C:\...\roottest\build> 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
[...]
-- Configuring done
-- Generating done
-- Build files have been written to: C:/.../roottest/build
(python) PS C:\...\roottest\build> cmake --build . -j $(Get-ComputerInfo -Property CsProcessors).CsProcessors.NumberOfCores[0] --config Release
MSBuild version 17.3.1+2badb37d1 for .NET Framework
Generating G__IoBigEventGeneration.cxx, IoBigEventGeneration_rdict.pcm, IoBigEventGeneration.rootmap
Generating G__TreeFormulaReferencesGeneration.cxx, TreeFormulaReferencesGeneration_rdict.pcm, TreeFormulaReferencesGe
neration.rootmap
Creating directories for 'googletest'
Performing download step (git clone) for 'googletest'
cl : ligne de commande warning D9025: substitution de '/EHc' par '/EHc-' [C:\...\roottest\build\root\treeformula\references\TreeFormulaReferencesGeneration.vcxproj]
G__TreeFormulaReferencesGeneration.cxx
cl : ligne de commande warning D9025: substitution de '/EHc' par '/EHc-' [C:\...\roottest\build\root\io\bigevent\IoBigEventGeneration.vcxproj]
G__IoBigEventGeneration.cxx
TreeFormulaReferencesGeneration.cxx
IoBigEventGeneration.cxx
Génération de code en cours...
Auto build dll exports
C:\...\roottest\root\io\bigevent\IoBigEventGeneration.cxx(355,11): warning C447
7: 'printf' : la chaîne de format '%ld' nécessite un argument de type 'long', mais l'argument variadique 1 est de type
'unsigned __int64' [C:\...\roottest\build\root\io\bigevent\IoBigEventGeneration
.vcxproj]
C:\...\roottest\root\io\bigevent\IoBigEventGeneration.cxx(355,11): message : ut
ilisez '%zd' dans la chaîne de format [C:\...\roottest\build\root\io\bigevent\I
oBigEventGeneration.vcxproj]
Génération de code en cours...
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'Core.lib' [C:\...\roottest\build\root\treeformula\references\TreeFormulaReferencesGeneration.vcxproj]
-- googletest download command succeeded. See also C:/.../roottest/build/goo
gletest-prefix/src/googletest-stamp/googletest-download-*.log
No update step for 'googletest'
No patch step for 'googletest'
Performing configure step for 'googletest'
Auto build dll exports
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'Core.lib' [C:\...\roottest\build\root\io\bigevent\IoBigEventGeneration.vcxproj]
Have you encountered this LNK1181
issue on Windows with ROOT 6.36 and roottest: v6-36-00-patches ?
Do you know how to solve this problem?
A workaround might be to use GitHub - root-project/roottest at v6-34-00-patches
Best Regards,