Closed ni4 closed 3 weeks ago
JFYI: This happens when attempting to build Botan via Github Actions for the RNP project.
P.S. How new projects could be added to the vcpkg? I think RNP is mature enough for this. Should I do a pull request/create an issue for that? Thanks!
Not sure whether it would be helpful, but here is link to the action which produces this issue: https://github.com/rnpgp/rnp/actions/runs/10216412857/job/28267833000?pr=2258
@WangWeiLin-MV hi, any progress or plans on this, as it blocks our CI. Or should I research the way to use non-latest vcpkg package (whether it is allowed at all, at first glance didn't find a good one).
Using the latest version of vcpkg for local installation does not reproduce the issue with VS 2022.
According to your log, it seems that the error is from source code or standard library.
they way to use non-latest vcpkg
Since the upstream uses the built-in vcpkg of GitHub action, it is recommended to upgrade to windows-2022, or a rough but fast method is to fall back its version by git reset --hard ef7c629803a875b2a2bb8ea6ee217a1ee644b5d3
, which commit is the last snapshot of botan
3.3.0#2.
The recommended workflow is manifest mode, see Tutorial: Install a specific version of a package
Thanks for the explanation and for the hints! It's really seems to be a good time to migrate to windows-2022 runner, given that soon we'll have 2025 abandoning the 2019 one. Closing this.
Package: botan:x64-windows@3.5.0
Host Environment
To Reproduce
vcpkg install bzip2 zlib json-c getopt dirent botan
Failure logs
C:\vcpkg\buildtrees\botan\install-x64-windows-dbg-nmake-err.log
``` NMAKE : fatal error U1077: '"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe"' : return code '0x2' Stop. ```C:\vcpkg\buildtrees\botan\install-x64-windows-dbg-nmake-out.log
``` "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe" /std:c++20 /EHs /GR /D_WIN32_WINNT=0x0600 /MDd /bigobj /Z7 /nologo /DWIN32 /D_WINDOWS /utf-8 /GR /EHsc /MP /W4 /wd4251 /wd4275 /wd5072 -DBOTAN_IS_BEING_BUILT /I build/include/public /I build/include/internal /external:W0 /external:I build/include/external /external:W0 /external:I C:/vcpkg/installed/x64-windows/include /nologo /c C:/vcpkg/buildtrees/botan/src/3.5.0-2446fa6972.clean/src/tests/test_utils_buffer.cpp /Fobuild/obj/test/test_utils_buffer.obj test_utils_buffer.cpp C:\vcpkg\buildtrees\botan\x64-windows-dbg\build\include\internal\botan/internal/stl_util.h(227): error C2131: expression did not evaluate to a constant C:\vcpkg\buildtrees\botan\x64-windows-dbg\build\include\internal\botan/internal/stl_util.h(227): note: failure was caused by a read of a variable outside its lifetime C:\vcpkg\buildtrees\botan\x64-windows-dbg\build\include\internal\botan/internal/stl_util.h(227): note: see usage of 'this' C:\vcpkg\buildtrees\botan\x64-windows-dbg\build\include\internal\botan/internal/stl_util.h(264): note: see reference to function template instantiation 'OutR Botan::detail::concatenate