microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.41k stars 6.47k forks source link

[hdf5] Build error on x64-mingw-dynamic #42053

Open luodiweiyu opened 3 weeks ago

luodiweiyu commented 3 weeks ago

When I use mingw to install hdf5, some errors occured. Here is the output info

PS D:\vcpkg> vcpkg.exe install hdf5
Computing installation plan...
The following packages will be built and installed:
    hdf5[core,szip,zlib]:x64-mingw-dynamic@1.14.4.3#2
Detecting compiler hash for triplet x64-mingw-dynamic...
-- Automatically setting %HTTP(S)_PROXY% environment variables to "127.0.0.1:11285".
Compiler found: D:/mingw64/bin/x86_64-w64-mingw32-g++.exe
Restored 0 package(s) from C:\Users\ChenJie\AppData\Local\vcpkg\archives in 117 us. Use --debug to see more details.
Installing 1/1 hdf5[core,szip,zlib]:x64-mingw-dynamic@1.14.4.3#2...
Building hdf5[core,szip,zlib]:x64-mingw-dynamic@1.14.4.3#2...
D:\vcpkg\triplets\community\x64-mingw-dynamic.cmake: info: loaded community triplet from here. Community triplets are not built in the curated registry and are thus less likely to succeed.
-- Using cached HDFGroup-hdf5-hdf5_1.14.4.3.tar.gz.
-- Cleaning sources at D:/vcpkg/buildtrees/hdf5/src/5_1.14.4.3-d36366786e.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/downloads/HDFGroup-hdf5-hdf5_1.14.4.3.tar.gz
-- Applying patch hdf5_config.patch
-- Applying patch szip.patch
-- Applying patch add-_Float16-type-on-aarch64.patch
-- Using source at D:/vcpkg/buildtrees/hdf5/src/5_1.14.4.3-d36366786e.clean
-- Configuring x64-mingw-dynamic-dbg
-- Configuring x64-mingw-dynamic-rel
-- Building x64-mingw-dynamic-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: D:/vcpkg/downloads/tools/cmake-3.30.1-windows/cmake-3.30.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j21
    Working Directory: D:/vcpkg/buildtrees/hdf5/x64-mingw-dynamic-dbg
    See logs for more information:
      D:\vcpkg\buildtrees\hdf5\install-x64-mingw-dynamic-dbg-out.log

Call Stack (most recent call first):
  installed/x64-mingw-dynamic/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-mingw-dynamic/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/hdf5/portfile.cmake:77 (vcpkg_cmake_install)
  scripts/ports.cmake:192 (include)

error: building hdf5:x64-mingw-dynamic failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle hdf5:x64-mingw-dynamic: 1.9 min
Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
Then check for known issues at:
  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+hdf5
You can submit a new issue at:
  https://github.com/microsoft/vcpkg/issues/new?title=[hdf5]+Build+error+on+x64-mingw-dynamic&body=Copy+issue+body+from+D%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
greenozon commented 3 weeks ago

in order to understand what's going on could you please attach logs

D:\vcpkg\buildtrees\hdf5\install-x64-mingw-dynamic-dbg-out.log