Open spacelg opened 4 months ago
I confirm this is an issue with pybind11 & ARM64 currently... I was able to link and load my python module by making the following steps (VS generator): 1- change the path to python from "amd64" to "arm64" in the link input (from "C:\Program Files\Python313\libs\python313.lib" to "C:\Program Files\Python313-arm64\libs\python313.lib" 2- build & link 3- rename generated file from MyModule.cp313-win_amd64.pyd to MyModule.cp313-win_arm64.pyd
Unfortunately, I am not fluent enough in cmake to submit a PR for this issue :-(
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
19a6b9f
Problem description
Hi,
Pybind failed to build due to error LNK2019 on windows with MSVC Target ARM64. It can be reproduced on commit 19a6b9f on master branch. Could you please help look at this issue? Thanks in advance.
Steps to reproduce the behavior:
Build.log
Error Message: 17>CustomBuild: Internal cmake changing into directory: C:/gitP/pybind/pybind11/build_arm64/tests/test_cmake_build/subdirectory_target ======== CMake output ====== Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.20348. The CXX compiler identification is MSVC 19.41.34101.96 Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.40.33807/bin/Hostx64/arm64/cl.exe - skipped Detecting CXX compile features Detecting CXX compile features - done pybind11 v2.13.0 dev1 Found Python: C:\Python311\python.exe (found suitable version "3.11.4", minimum required is "3.6") found components: Interpreter Development.Module Development.Embed Performing Test HAS_MSVC_GL_LTCG Performing Test HAS_MSVC_GL_LTCG - Success Configuring done (3.6s) Generating done (0.0s) Build files have been written to: C:/gitP/pybind/pybind11/build_arm64/tests/test_cmake_build/subdirectory_target ======== End CMake output ====== Change Dir: 'C:/gitP/pybind/pybind11/build_arm64/tests/test_cmake_build/subdirectory_target'
Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
Not a regression