microsoft / vcpkg

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

[libgnutls] build failure #18395

Open Brooklyn2001 opened 3 years ago

Brooklyn2001 commented 3 years ago

Host Environment

To Reproduce Steps to reproduce the behavior: ./vcpkg install libgnutls:x64-windows

Failure logs -Cut and past the appropriate build messages from the console output. -Please attach any additional failure logs mentioned in the console output. config-x64-windows-rel-err.log config-x64-windows-rel-out.log

Additional context Add any other context about the problem here, such as what you have already tried to resolve the issue.

NancyLi1013 commented 3 years ago

Hi @Brooklyn2001

Thanks for posting this issue.

Since libgnutlsdoesn't support Windows platform. the current behavior is intended.

https://github.com/microsoft/vcpkg/blob/14418e1e48ff563382fbe970637425c52d109b16/ports/libgnutls/vcpkg.json#L7

configure: WARNING: Compiler does not support C99. It may not be able to compile the project.
configure: error: 
  ***
  *** Libhogweed (nettle's companion library) 3.4.1 was not found. Note that you must compile nettle with gmp support.
Brooklyn2001 commented 3 years ago

It's strange. This is the same port from here https://github.com/ShiftMediaProject/gnutls?

NancyLi1013 commented 3 years ago

It's strange. This is the same port from here https://github.com/ShiftMediaProject/gnutls?

It should be the same port. But currently, they are from different repositories.

There is also a PR #18029 that supports Windows.

xbotuk commented 3 years ago

It's strange. This is the same port from here https://github.com/ShiftMediaProject/gnutls?

Nice. Have you tried that successfully?

I don't see why vcpkg should have trouble getting this to work, but this ticket has been open for 2 months without much progress.

wrobelda commented 3 years ago

@sfhacker out of curiosity, the upstream gnutls that you built on Windows, was it with MSVC?

FrankXie05 commented 2 years ago

@Brooklyn2001 Is still working for ths issue? Does the problem still exist?

wrobelda commented 2 years ago

Anyway, what is the status of this (unnecessary) PR #18029?

https://github.com/microsoft/vcpkg/pull/18029#discussion_r727396322