microsoft / vcpkg

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

[hdf5]+Build+error+on+x64-windows #38010

Open spartajet opened 3 months ago

spartajet commented 3 months ago

Package: hdf5[core,szip,zlib]:x64-windows@1.14.2

Host Environment

To Reproduce

vcpkg install hdf5[core,szip,zlib] Failure logs

-- Downloading https://github.com/HDFGroup/hdf5/archive/hdf5-1_14_2.tar.gz -> HDFGroup-hdf5-hdf5-1_14_2.tar.gz...
-- Extracting source C:/tools/vcpkg/downloads/HDFGroup-hdf5-hdf5-1_14_2.tar.gz
-- Applying patch hdf5_config.patch
-- Applying patch szip.patch
-- Applying patch pkgconfig-requires.patch
-- Using source at C:/tools/vcpkg/buildtrees/hdf5/src/df5-1_14_2-1052155090.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows-dbg
-- Configuring x64-windows-rel
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Debug --target install -- -v -j21
    Working Directory: C:/tools/vcpkg/buildtrees/hdf5/x64-windows-dbg
    See logs for more information:
      C:\tools\vcpkg\buildtrees\hdf5\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/hdf5/portfile.cmake:77 (vcpkg_cmake_install)
  scripts/ports.cmake:175 (include)
C:\tools\vcpkg\buildtrees\hdf5\install-x64-windows-dbg-out.log ``` Change Dir: 'C:/tools/vcpkg/buildtrees/hdf5/x64-windows-dbg' Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j21 install [1/361] C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe -D_BIND_TO_CURRENT_VCLIBS_VERSION=1 -D_CONSOLE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -IC:\tools\vcpkg\installed\x64-windows\include -IC:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src -IC:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src\H5FDsubfiling -IC:\tools\vcpkg\buildtrees\hdf5\x64-windows-dbg\src /nologo /DWIN32 /D_WINDOWS /utf-8 /MP -wd5105 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -MDd /showIncludes /Fosrc\CMakeFiles\H5make_libsettings.dir\H5make_libsettings.c.obj /Fdsrc\CMakeFiles\H5make_libsettings.dir\ /FS -c C:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src\H5make_libsettings.c FAILED: src/CMakeFiles/H5make_libsettings.dir/H5make_libsettings.c.obj C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe -D_BIND_TO_CURRENT_VCLIBS_VERSION=1 -D_CONSOLE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -IC:\tools\vcpkg\installed\x64-windows\include -IC:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src -IC:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src\H5FDsubfiling -IC:\tools\vcpkg\buildtrees\hdf5\x64-windows-dbg\src /nologo /DWIN32 /D_WINDOWS /utf-8 /MP -wd5105 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -MDd /showIncludes /Fosrc\CMakeFiles\H5make_libsettings.dir\H5make_libsettings.c.obj /Fdsrc\CMakeFiles\H5make_libsettings.dir\ /FS -c C:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src\H5make_libsettings.c C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(203): error C2143: 语法错误: 缺少“{”(在“:”的前面) C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(203): error C2059: 语法错误:“:” [2/361] C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe -D_BIND_TO_CURRENT_VCLIBS_VERSION=1 -D_CONSOLE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -IC:\tools\vcpkg\installed\x64-windows\include -IC:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src -IC:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src\H5FDsubfiling -IC:\tools\vcpkg\buildtrees\hdf5\x64-windows-dbg\src /nologo /DWIN32 /D_WINDOWS /utf-8 /MP -wd5105 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -MDd /showIncludes /Fosrc\CMakeFiles\H5detect.dir\H5detect.c.obj /Fdsrc\CMakeFiles\H5detect.dir\ /FS -c C:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src\H5detect.c FAILED: src/CMakeFiles/H5detect.dir/H5detect.c.obj C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\cl.exe -D_BIND_TO_CURRENT_VCLIBS_VERSION=1 -D_CONSOLE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -IC:\tools\vcpkg\installed\x64-windows\include -IC:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src -IC:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src\H5FDsubfiling -IC:\tools\vcpkg\buildtrees\hdf5\x64-windows-dbg\src /nologo /DWIN32 /D_WINDOWS /utf-8 /MP -wd5105 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 -MDd /showIncludes /Fosrc\CMakeFiles\H5detect.dir\H5detect.c.obj /Fdsrc\CMakeFiles\H5detect.dir\ /FS -c C:\tools\vcpkg\buildtrees\hdf5\src\df5-1_14_2-1052155090.clean\src\H5detect.c C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(203): error C2143: 语法错误: 缺少“{”(在“:”的前面) C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared\rpcndr.h(203): error C2059: 语法错误:“:” ninja: build stopped: subcommand failed. ```
FrankXie05 commented 3 months ago

@spartajet Thanks for posting this issue, could you please use the english for vs and try again? :)

18930215187 commented 2 months ago

The same problem. Has it been solved now?

github-actions[bot] commented 1 month ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.