<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
Recently, we updated the commit of bitcoin for MSVC RWC testing, it failed to build due to the error like below with option /c++latest, could you please help take a look? Thanks.
bitcoin\src\fs.h(75,39): error C2039: 'u8string': is not a member of 'std' [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_qt\libbitcoin_qt.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\filesystem(39,1): message : see declaration of 'std' [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_qt\libbitcoin_qt.vcxproj]
Expected behavior
<!--- What behavior did you expect? -->
Build successfully.
Actual behavior
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
bitcoin\src\fs.h(75,39): error C2039: 'u8string': is not a member of 'std' [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_qt\libbitcoin_qt.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include\filesystem(39,1): message : see declaration of 'std' [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_qt\libbitcoin_qt.vcxproj]
To reproduce
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
- git clone https://github.com/bitcoin/bitcoin F:\gitP\bitcoin\bitcoin
- git -C "F:\gitP\bitcoin\bitcoin" fetch --recurse-submodules=no --force
- git -C "F:\gitP\bitcoin\bitcoin" reset --hard 43e813cab266eef42e622519836f171f6a18d426
- set CL= /std:c++latest
- cd F:\gitP\bitcoin\bitcoin\build_msvc
- py -3 msvc-autogen.py
- set CL=%CL% /D_HAS_DEPRECATED_ALLOCATOR_MEMBERS /D_SILENCE_CXX20_U8PATH_DEPRECATION_WARNING /Zc:char8_t- /D_SILENCE_CXX23_ALIGNED_STORAGE_DEPRECATION_WARNING
- set the vcpkg info and run
bootstrap-vcpkg.batandvcpkg integrate install, in my environment, as follows: cd F:\gitP\bitcoin\tools\vcpkg git -C "F:\gitP\bitcoin\tools\vcpkg" clean -xdf bootstrap-vcpkg.bat set path=%cd%;%path% vcpkg integrate install - switch to the directory: cd F:\gitP\bitcoin\bitcoin\build_msvc
- msbuild /m /p:Platform=x64 /p:Configuration=Release /p:PlatformToolset=v142 bitcoin.sln /t:Rebuild
System information
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
the commit of Bitcoin: 43e813cab266eef42e622519836f171f6a18d426
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
OS: Windows Server 2022 Datacenter 21H2
<!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->
<!-- Any extra information that might be useful in the debugging process. -->
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->
Detailed log: build.log