Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[glib:x64-windows-static] build failure #18557

Closed
lab313ru opened this issue Jun 20, 2021 · 5 comments
Closed

[glib:x64-windows-static] build failure #18557

lab313ru opened this issue Jun 20, 2021 · 5 comments
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist depends:upstream-changes Waiting on a change to the upstream project

Comments

@lab313ru
Copy link

lab313ru commented Jun 20, 2021

Host Environment

  • OS: Windows 10 x64

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

Failure logs

Building package glib[core]:x64-windows-static...
-- Note: glib only supports dynamic library linkage. Building dynamic library.
CMake Error at scripts/cmake/vcpkg_check_linkage.cmake:47 (message):
  Refusing to build unexpected dynamic library against the static CRT.  If
  this is desired, please configure your triplet to directly request this
  configuration.
Call Stack (most recent call first):
  ports/glib/portfile.cmake:6 (vcpkg_check_linkage)
  scripts/ports.cmake:139 (include)


Error: Building package glib:x64-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: glib:x64-windows-static
  Vcpkg version: 2021-05-05-9f849c4c43e50d1b16186ae76681c27b0c1be9d9
@JonLiu1993 JonLiu1993 self-assigned this Jun 21, 2021
@JonLiu1993 JonLiu1993 added the category:question This issue is a question label Jun 21, 2021
@JonLiu1993
Copy link
Member

@lab313ru ,Thanks for posting this issue,
gilb currentlly only suppurts DYNAMIC build:

# Glib relies on DllMain on Windows
if (VCPKG_TARGET_IS_WINDOWS)
    vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
    #remove if merged: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1655
endif()

@lab313ru
Copy link
Author

Is it possible to make it build static too?

@JonLiu1993
Copy link
Member

JonLiu1993 commented Jun 21, 2021

Is it possible to make it build static too?

Someone mentioned the issue of enable static builds on Windows using TLS callbacks in Upstream before, but it still hasn’t been successful for a long time.

@JackBoosY
Copy link
Contributor

JackBoosY commented Jul 20, 2021

See related PR: #16980 and issue #3409.
The upstream doesn't support static build.

@JackBoosY JackBoosY added category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist depends:upstream-changes Waiting on a change to the upstream project and removed category:question This issue is a question labels Jul 20, 2021
@JonLiu1993
Copy link
Member

Because the three upstream PRs supporting static have been closed, this issue is temporarily closed, and I will reopen it if there is a new status upstream.
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1399
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1454
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1655

@JonLiu1993 JonLiu1993 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist depends:upstream-changes Waiting on a change to the upstream project
Projects
None yet
Development

No branches or pull requests

3 participants