microsoft / vcpkg

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

[protobuf-c] Build error on arm64-windows #39585

Open sumirjha opened 4 months ago

sumirjha commented 4 months ago

Package: protobuf-c[core,tools]:arm64-windows@1.4.1#1

Host Environment

To Reproduce

vcpkg install --recurse protobuf:arm64-windows protobuf-c:arm64-windows protobuf-c[tools]:arm64-windows

Failure logs

-- Using cached protobuf-c-protobuf-c-v1.4.1.tar.gz.
-- Cleaning sources at C:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/downloads/protobuf-c-protobuf-c-v1.4.1.tar.gz
-- Applying patch fix-crt-linkage.patch
-- Using source at C:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean
-- Found external ninja('1.11.0').
-- Configuring arm64-windows-dbg
-- Configuring arm64-windows-rel
-- Building arm64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: C:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/downloads/tools/cmake-3.29.2-windows/cmake-3.29.2-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j7
    Working Directory: C:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/buildtrees/protobuf-c/arm64-windows-dbg
    See logs for more information:
      C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\install-arm64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/arm64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/arm64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/protobuf-c/portfile.cmake:25 (vcpkg_cmake_install)
  scripts/ports.cmake:191 (include)
C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\install-arm64-windows-dbg-out.log ``` Change Dir: 'C:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/buildtrees/protobuf-c/arm64-windows-dbg' Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j7 install [1/20] C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_EXPORT -DPROTOBUF_C_USE_SHARED_LIB -Dprotobuf_c_EXPORTS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protobuf-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c\protobuf-c.c.obj /Fdprotobuf-c.pdb /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c\protobuf-c.c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c\protobuf-c.c(320): warning C4146: unary minus operator applied to unsigned type, result still unsigned C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c\protobuf-c.c(383): warning C4146: unary minus operator applied to unsigned type, result still unsigned C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c\protobuf-c.c(2427): warning C4146: unary minus operator applied to unsigned type, result still unsigned C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c\protobuf-c.c(2469): warning C4146: unary minus operator applied to unsigned type, result still unsigned [2/20] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg && C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\installed\arm64-windows\tools\protobuf\protoc.exe --cpp_out C:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/buildtrees/protobuf-c/arm64-windows-dbg -IC:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean C:/Users/sumir.jha/Code/adder-remote-desktop/thirdparty/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean/protobuf-c/protobuf-c.proto" [3/20] C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_enum.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_enum.cc FAILED: CMakeFiles/protoc-gen-c.dir/41f9541c81aa50f16708a2ddc538030a/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean/protoc-c/c_enum.cc.obj C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_enum.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_enum.cc C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c/c_enum.h(67): fatal error C1083: Cannot open include file: 'google/protobuf/descriptor.h': No such file or directory [4/20] C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_enum_field.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_enum_field.cc FAILED: CMakeFiles/protoc-gen-c.dir/41f9541c81aa50f16708a2ddc538030a/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean/protoc-c/c_enum_field.cc.obj C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_enum_field.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_enum_field.cc C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c/c_field.h(67): fatal error C1083: Cannot open include file: 'google/protobuf/stubs/common.h': No such file or directory [5/20] C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_extension.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_extension.cc FAILED: CMakeFiles/protoc-gen-c.dir/41f9541c81aa50f16708a2ddc538030a/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean/protoc-c/c_extension.cc.obj C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_extension.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_extension.cc C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c/c_extension.h(67): fatal error C1083: Cannot open include file: 'google/protobuf/stubs/common.h': No such file or directory [6/20] C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_field.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_field.cc FAILED: CMakeFiles/protoc-gen-c.dir/41f9541c81aa50f16708a2ddc538030a/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean/protoc-c/c_field.cc.obj C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_field.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_field.cc C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c/c_field.h(67): fatal error C1083: Cannot open include file: 'google/protobuf/stubs/common.h': No such file or directory [7/20] C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_bytes_field.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_bytes_field.cc FAILED: CMakeFiles/protoc-gen-c.dir/41f9541c81aa50f16708a2ddc538030a/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean/protoc-c/c_bytes_field.cc.obj C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_bytes_field.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_bytes_field.cc C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c/c_field.h(67): fatal error C1083: Cannot open include file: 'google/protobuf/stubs/common.h': No such file or directory [8/20] C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_file.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_file.cc FAILED: CMakeFiles/protoc-gen-c.dir/41f9541c81aa50f16708a2ddc538030a/vcpkg/buildtrees/protobuf-c/src/v1.4.1-d0ea40a369.clean/protoc-c/c_file.cc.obj C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\cl.exe /TP -DHAVE_PROTO3 -DPACKAGE_STRING="\"protobuf-c 1.4.1\"" -DPACKAGE_VERSION=\"1.4.1\" -DPROTOBUF_C_USE_SHARED_LIB -DPROTOBUF_USE_DLLS -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c -IC:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\arm64-windows-dbg /nologo /DWIN32 /D_WINDOWS /W3 /utf-8 /GR /EHsc /MP /wd4267 /wd4244 /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\protoc-gen-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_file.cc.obj /FdCMakeFiles\protoc-gen-c.dir\ /FS -c C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c\c_file.cc C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protoc-c/c_file.h(69): fatal error C1083: Cannot open include file: 'google/protobuf/stubs/common.h': No such file or directory [9/20] C:\Windows\system32\cmd.exe /C "cd . && C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\downloads\tools\cmake-3.29.2-windows\cmake-3.29.2-windows-i386\bin\cmake.exe -E vs_link_dll --intdir=CMakeFiles\protobuf-c.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\arm64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\arm64\mt.exe --manifests -- C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\HOSTAR~1\arm64\link.exe CMakeFiles\protobuf-c.dir\41f9541c81aa50f16708a2ddc538030a\vcpkg\buildtrees\protobuf-c\src\v1.4.1-d0ea40a369.clean\protobuf-c\protobuf-c.c.obj /out:protobuf-c.dll /implib:protobuf-c.lib /pdb:protobuf-c.pdb /dll /version:0.0 /machine:ARM64 /nologo /debug /INCREMENTAL kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." ninja: build stopped: subcommand failed. ```
FrankXie05 commented 4 months ago

No repro on arm64-windows.

PS G:\vcpkg> ./vcpkg install protobuf-c:arm64-windows
Computing installation plan...
The following packages will be built and installed:
  * abseil:arm64-windows@20240116.2#2
  * abseil:x64-windows@20240116.2#2
  * protobuf:x64-windows@4.25.1
  * protobuf:arm64-windows@4.25.1
    protobuf-c:arm64-windows@1.4.1#1
  * utf8-range:x64-windows@4.25.1
  * utf8-range:arm64-windows@4.25.1
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet arm64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/arm64/cl.exe
Detecting compiler hash for triplet x64-windows...
Compiler found: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bin/Hostx64/x64/cl.exe
A suitable version of 7zip was not found (required v24.6.0) Downloading portable 7zip 24.6.0...
Downloading 7zip...
...
...
...

-- Installing: G:/vcpkg/packages/protobuf-c_arm64-windows/share/protobuf-c/copyright
-- Performing post-build validation
Stored binaries in 1 destinations in 112 ms.
Elapsed time to handle protobuf-c:arm64-windows: 4.8 s
protobuf-c:arm64-windows package ABI: 1f2137f5339b3e0a0bdd01720a555dcb17ccd2befb6d397a7449fbfd19553e6c
Total install time: 7.2 min
protobuf-c provides pkg-config modules:

  # Protocol Buffers implementation in C
  libprotobuf-c

PS G:\vcpkg>
FrankXie05 commented 4 months ago

@iamsumir Please do not use paths with special characters.

C:\Users\sumir.jha\Code\adder-remote-desktop\thirdparty\vcpkg\build
github-actions[bot] commented 3 months 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.