microsoft / vcpkg

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

[zeromq] Build failure #35059

Closed meclondrej closed 4 months ago

meclondrej commented 10 months ago

Package: zeromq:x64-mingw-static -> 2023-06-20#1

Host Environment

To Reproduce

vcpkg install zeromq Failure logs

-- Using cached zeromq-libzmq-ecc63d0d3b0e1a62c90b58b1ccdb5ac16cb2400a.tar.gz.
-- Cleaning sources at C:/vcpkg/buildtrees/zeromq/src/c16cb2400a-3885a99186.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/vcpkg/downloads/zeromq-libzmq-ecc63d0d3b0e1a62c90b58b1ccdb5ac16cb2400a.tar.gz
-- Applying patch fix-arm.patch
-- Using source at C:/vcpkg/buildtrees/zeromq/src/c16cb2400a-3885a99186.clean
-- Configuring x64-mingw-static
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: C:/vcpkg/downloads/tools/ninja/1.10.2-windows/ninja.exe -v
    Working Directory: C:/vcpkg/buildtrees/zeromq/x64-mingw-static-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\vcpkg\buildtrees\zeromq\config-x64-mingw-static-dbg-CMakeCache.txt.log
      C:\vcpkg\buildtrees\zeromq\config-x64-mingw-static-rel-CMakeCache.txt.log
      C:\vcpkg\buildtrees\zeromq\config-x64-mingw-static-out.log

Call Stack (most recent call first):
  installed/x64-mingw-static/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
  ports/zeromq/portfile.cmake:28 (vcpkg_cmake_configure)
  scripts/ports.cmake:168 (include)

details at https://pastebin.com/qA9LScTz

meclondrej commented 10 months ago

I have VS2022 installed, not using it though, if it helps.

MonicaLiu0311 commented 10 months ago

The code where the error occurred is as follows: ip_resolver.cpp#L637-L640:

          GetAdaptersAddresses (AF_UNSPEC,
                                GAA_FLAG_SKIP_ANYCAST | GAA_FLAG_SKIP_MULTICAST
                                  | GAA_FLAG_SKIP_DNS_SERVER,
                                NULL, addresses, &out_buf_len);

CMakeLists.txt#L559:

  check_cxx_symbol_exists(GetAdaptersAddresses "winsock2.h;iphlpapi.h" HAVE_IPHLAPI)

CMakeLists.txt#L590-L592:

  if(NOT HAVE_IPHLAPI)
    message(FATAL_ERROR "Cannot link to iphlapi")
  endif()

Could you please turn off your local anti-virus software and try again? https://github.com/microsoft/vcpkg/issues/18582#issuecomment-866104333

dg0yt commented 10 months ago
  • Compiler: GNU 6.3.0

This indicates an outdated mingw toolchain.

meclondrej commented 10 months ago

@MonicaLiu0311 no local antivirus present, switching windows defender realtime virus protection off does not change anything

@dg0yt i will try updating mingw

github-actions[bot] commented 4 months ago

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.

MonicaLiu0311 commented 4 months ago

This issue hasn’t been updated in 3 month, if it is still an issue, please reopen this issue.