-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hdf5] Build error for Windows Arm64 platforms #24898
Comments
Thanks for posting this issue. Please provide the complete error log file. Because when I installing
And your error in this issue will be fixed by new version of |
Attached console and CMake log. hd5.log For reference, I am building on windows/arm64 platform |
And I tried PR #24758 but unfortunately getting some error
|
Hi @nsait-linaro, PR #24758 has been merged, and it has new change before merged, could you update your vcpkg and install version 1.2.2 of |
Thanks, @LilyWangLL. I am getting the exact same error (logs in #24898 (comment) ) even with the latest vcpkg. |
Sorry, if your error still is
This has been merged into new version 1.2.2, the related upstream issue: HDFGroup/hdf5#1558, fixed by HDFGroup/hdf5#1089. |
Ping @nsait-linaro for response. |
Unfortunately, It is still failing but with a different error this time.
install-arm64-windows-rel-out.log
|
This issue is similar with #16203, @JackBoosY could you help take a look this issue? |
IIRC there is a general issue with cross builds of hdf5. It wants to run an executable (on the host, x64) that it builds for the target (arm64). This also prevents android and (cross) mingw builds. |
To add arm support, we should do the following steps:
{
"name": "hdf5",
"default-features": false,
"host": true,
"features": [
"tool"
]
}
|
I don't think it is so easy. (And that's why I didn't add it yet.) IIRC the tool is to provide information about the target platform, and the host tool cannot provide this. You really need to run the tool at least once on the target platform, capture the required configuration information, and supply this information directly to the CMake cross build. e.g. https://forum.hdfgroup.org/t/cross-compiling-for-windows/6735 |
I will have a try when I have spare time. |
This also is a major limitation to compiling any other libraries which depend upon this one for arm64 builds. |
I have managed to hack together an hdf5 build for iOS here https://github.com/russelltg/vcpkg/tree/ios_changes_old/ports/hdf5 |
Will this also work for other arm64 builds, or only iOS ones? All of the cross-compiling is broken for arm64 builds, as far as I understand it. |
Hello, I updated my vcpkg dependencies for the first time in a long time today, and I've hit this issue trying to cross-compile HDF5 for The problem also occurs in |
PS - as @dg0yt noted above, this is a problem with cross-compilation, not with ARM support for HDF5. I can compile the same project on my M1 box targeting |
Apologies for three messages in short succession, and for perhaps confusing matters. I have rolled back my This doesn't make a great deal of sense to me because this issue was originally reported in May. |
Do you know if there has been any progress here? I have also experimented a build error using |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
Host Environment
To Reproduce
Steps to reproduce the behavior:
.\vcpkg.exe install hdf5 --triplet=arm64-windows
Failure logs
From CMake error log
** Additional Context **
Static builds seem to be working
.\vcpkg.exe install hdf5 --triplet=arm64-windows-static
The text was updated successfully, but these errors were encountered: