bitcoin failed to build with “EXEC : error : invalid triplet: arm64ec-windows-static " with MSVC on Windows arm64ec #27059

issue YangYang129 openend this issue on February 8, 2023
  1. YangYang129 commented at 7:58 am on February 8, 2023: none

    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:

    1. Open VS2019 x64 tools command
    2. set VSCMD_SKIP_SENDTELEMETRY=1 & “C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat” -host_arch=amd64 -arch=arm64
    3. git clone https://github.com/bitcoin/bitcoin F:\gitP\bitcoin\bitcoin
    4. cd F:\gitP\bitcoin\bitcoin
    5. git -C “F:\gitP\bitcoin\bitcoin” apply f:\bitcoin_ARM64EC_sln.patch –ignore-space-change –ignore-whitespace –whitespace=nowarn
    6. cd F:\gitP\bitcoin\bitcoin\build_msvc
    7. py -3 msvc-autogen.py
    8. cd F:\gitP\bitcoin\tools\vcpkg
    9. git -C “F:\gitP\bitcoin\tools\vcpkg” clean -xdf 2>&1
    10. bootstrap-vcpkg.bat 2>&1
    11. set path=%cd%;%path%
    12. vcpkg integrate install 2>&1
    13. cd F:\gitP\bitcoin\bitcoin\build_msvc
    14. 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

  2. YangYang129 added the label Bug on Feb 8, 2023
  3. hebasto commented at 8:12 am on February 8, 2023: member
    1. Open VS2019 x64 tools command

    From https://github.com/bitcoin/bitcoin/blob/master/build_msvc/README.md:

    Visual Studio 2022 is minimum required to build Bitcoin Core.

  4. hebasto added the label Windows on Feb 8, 2023
  5. hebasto added the label Build system on Feb 8, 2023
  6. hebasto commented at 8:16 am on February 8, 2023: member

    5. git -C “F:\gitP\bitcoin\bitcoin” apply f:\bitcoin_ARM64EC_sln.patch –ignore-space-change –ignore-whitespace –whitespace=nowarn

    This step is not documented in this repo. We cannot help with third-party patches.

  7. hebasto removed the label Bug on Feb 8, 2023
  8. fanquake closed this on Feb 8, 2023

  9. fanquake locked this on Feb 19, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me