bitcoin failed to build with “EXEC : error : invalid triplet: arm64ec-windows-static " with MSVC on Windows arm64ec. It can reproduce on latest version on master branch. Could you please help look at this issue? Thanks in advance. Repro steps:
- Open VS2019 x64 tools command
- set VSCMD_SKIP_SENDTELEMETRY=1 & “C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat” -host_arch=amd64 -arch=arm64
- git clone https://github.com/bitcoin/bitcoin F:\gitP\bitcoin\bitcoin
- cd F:\gitP\bitcoin\bitcoin
- git -C “F:\gitP\bitcoin\bitcoin” apply f:\bitcoin_ARM64EC_sln.patch –ignore-space-change –ignore-whitespace –whitespace=nowarn
- cd F:\gitP\bitcoin\bitcoin\build_msvc
- py -3 msvc-autogen.py
- cd F:\gitP\bitcoin\tools\vcpkg
- git -C “F:\gitP\bitcoin\tools\vcpkg” clean -xdf 2>&1
- bootstrap-vcpkg.bat 2>&1
- set path=%cd%;%path%
- vcpkg integrate install 2>&1
- cd F:\gitP\bitcoin\bitcoin\build_msvc
- msbuild /m /p:Platform=ARM64EC /p:WindowsTargetPlatformVersion=10.0.22618.0 /p:Configuration=Release /p:PlatformToolset=v142 bitcoin.sln /t:Rebuild 2>&1
Error info:
0 2>EXEC : error : invalid triplet: arm64ec-windows-static [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoinconsensus\libbitcoinconsensus.vcxproj]
1 Line 224: 13>EXEC : error : invalid triplet: arm64ec-windows-static [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_zmq\libbitcoin_zmq.vcxproj]
2 Line 284: 6>EXEC : error : invalid triplet: arm64ec-windows-static [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_wallet\libbitcoin_wallet.vcxproj]
3 Line 336: 13>F:\gitP\bitcoin\tools\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets(156,5): error MSB3073: The command ""F:\gitP\bitcoin\tools\vcpkg\vcpkg.exe" install --x-wait-for-lock --triplet "ARM64EC-windows-static" --vcpkg-root "F:\gitP\bitcoin\tools\vcpkg\\" "--x-manifest-root=F:\gitP\bitcoin\bitcoin\build_msvc\\" "--x-install-root=F:\gitP\bitcoin\bitcoin\build_msvc\vcpkg_installed\ARM64EC-windows-static\\" " exited with code 1. [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_zmq\libbitcoin_zmq.vcxproj]
4 Line 348: 17>EXEC : error : invalid triplet: arm64ec-windows-static [F:\gitP\bitcoin\bitcoin\build_msvc\libsecp256k1\libsecp256k1.vcxproj]
5 Line 406: 19>EXEC : error : invalid triplet: arm64ec-windows-static [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_wallet_tool\libbitcoin_wallet_tool.vcxproj]
6 Line 469: 6>F:\gitP\bitcoin\tools\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets(156,5): error MSB3073: The command ""F:\gitP\bitcoin\tools\vcpkg\vcpkg.exe" install --x-wait-for-lock --triplet "ARM64EC-windows-static" --vcpkg-root "F:\gitP\bitcoin\tools\vcpkg\\" "--x-manifest-root=F:\gitP\bitcoin\bitcoin\build_msvc\\" "--x-install-root=F:\gitP\bitcoin\bitcoin\build_msvc\vcpkg_installed\ARM64EC-windows-static\\" " exited with code 1. [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_wallet\libbitcoin_wallet.vcxproj]
7 Line 475: 17>F:\gitP\bitcoin\tools\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets(156,5): error MSB3073: The command ""F:\gitP\bitcoin\tools\vcpkg\vcpkg.exe" install --x-wait-for-lock --triplet "ARM64EC-windows-static" --vcpkg-root "F:\gitP\bitcoin\tools\vcpkg\\" "--x-manifest-root=F:\gitP\bitcoin\bitcoin\build_msvc\\" "--x-install-root=F:\gitP\bitcoin\bitcoin\build_msvc\vcpkg_installed\ARM64EC-windows-static\\" " exited with code 1. [F:\gitP\bitcoin\bitcoin\build_msvc\libsecp256k1\libsecp256k1.vcxproj]
8 Line 479: 19>F:\gitP\bitcoin\tools\vcpkg\scripts\buildsystems\msbuild\vcpkg.targets(156,5): error MSB3073: The command ""F:\gitP\bitcoin\tools\vcpkg\vcpkg.exe" install --x-wait-for-lock --triplet "ARM64EC-windows-static" --vcpkg-root "F:\gitP\bitcoin\tools\vcpkg\\" "--x-manifest-root=F:\gitP\bitcoin\bitcoin\build_msvc\\" "--x-install-root=F:\gitP\bitcoin\bitcoin\build_msvc\vcpkg_installed\ARM64EC-windows-static\\" " exited with code 1. [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_wallet_tool\libbitcoin_wallet_tool.vcxproj]
9 Line 481: 10>EXEC : error : invalid triplet: arm64ec-windows-static [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_crypto\libbitcoin_crypto.vcxproj]
10 Line 492: 15>EXEC : error : invalid triplet: arm64ec-windows-static [F:\gitP\bitcoin\bitcoin\build_msvc\libbitcoin_util\libbitcoin_util.vcxproj]
Error Log: bitcoin_msbuild_error.log
Patch: bitcoin_ARM64EC_sln.patch