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] Build error #28722

Closed
oleg-derevenetz opened this issue Jan 4, 2023 · 8 comments · Fixed by #32785
Closed

[glib] Build error #28722

oleg-derevenetz opened this issue Jan 4, 2023 · 8 comments · Fixed by #32785
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@oleg-derevenetz
Copy link
Contributor

Package: glib[core]:x86-windows -> 2.75.1

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.29.30147.0
  • vcpkg-tool version: 2022-12-14-7ae0d8527fb488fde10a89c2813802dc9b03b6f9
    vcpkg-scripts version: 0f719b3 2023-01-03 (21 hours ago)

To Reproduce

vcpkg install glib

Failure logs

-- Downloading https://download.gnome.org/sources/glib/2.75/glib-2.75.1.tar.xz -> glib-2.75.1.tar.xz...
-- Extracting source D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/downloads/glib-2.75.1.tar.xz
-- Applying patch use-libiconv-on-windows.patch
-- Applying patch libintl.patch
-- Using source at D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/buildtrees/glib/src/glib-2-cc73e48deb.clean
-- Found external ninja('1.10.2').
-- Getting CMake variables for x86-windows
-- Downloading https://www.python.org/ftp/python/3.10.7/python-3.10.7-embed-win32.zip -> python-3.10.7-embed-win32.zip...
-- Configuring x86-windows-dbg
-- Using cached msys-mingw-w64-i686-pkg-config-0.29.2-3-any.pkg.tar.zst.
-- Using cached msys-mingw-w64-i686-libwinpthread-git-9.0.0.6373.5be8fcd83-1-any.pkg.tar.zst.
-- Using msys root at D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/downloads/tools/msys2/9a1ec3f33446b195
-- Configuring x86-windows-dbg done
-- Configuring x86-windows-rel
-- Configuring x86-windows-rel done
-- Package x86-windows-dbg
-- Package x86-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:96 (message):
    Command failed: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" install -v
    Working Directory: D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/buildtrees/glib/x86-windows-rel
    Error code: 1
    See logs for more information:
      D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\buildtrees\glib\package-x86-windows-rel-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_install_meson.cmake:33 (vcpkg_execute_required_process)
  ports/glib/portfile.cmake:44 (vcpkg_install_meson)
  scripts/ports.cmake:147 (include)



D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\buildtrees\glib\package-x86-windows-rel-out.log
[1/479] "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/downloads/tools/python/python-3.10.7-x86/python.exe" "../src/glib-2-cc73e48deb.clean/gio/data-to-c.py" "../src/glib-2-cc73e48deb.clean/gio/../glib/gconstructor.h" "gconstructor_code" "gio/gconstructor_as_data.h"
[2/479] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "/nologo" "/foglib/glib_glib.rc_glib.res" "glib/glib.rc"
[3/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/buildtrees/glib/src/glib-2-cc73e48deb.clean/tools/gen-visibility-macros.py" "2.75.1" "visibility-macros" "GLIB" "glib/glib-visibility.h"
[4/479] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "/nologo" "/fogobject/gobject_gobject.rc_gobject.res" "gobject/gobject.rc"
[5/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/buildtrees/glib/src/glib-2-cc73e48deb.clean/tools/gen-visibility-macros.py" "2.75.1" "visibility-macros" "GOBJECT" "gobject/gobject-visibility.h"
[6/479] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "/nologo" "/fogmodule/gmodule_gmodule.rc_gmodule.res" "gmodule/gmodule.rc"
[7/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/buildtrees/glib/src/glib-2-cc73e48deb.clean/tools/gen-visibility-macros.py" "2.75.1" "visibility-macros" "GMODULE" "gmodule/gmodule-visibility.h"
[8/479] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "/nologo" "/fogthread/gthread_gthread.rc_gthread.res" "gthread/gthread.rc"
[9/479] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "/nologo" "/fogio/gio_gio.rc_gio.res" "gio/gio.rc"
[10/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\installed\x64-windows\tools\meson\meson.py" "--internal" "exe" "--capture" "gobject\glib-enumtypes.h" "--" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/downloads/tools/python/python-3.10.7-x86/python.exe" "gobject/glib-mkenums" "--template" "../src/glib-2-cc73e48deb.clean/gobject/glib-enumtypes.h.template" "../src/glib-2-cc73e48deb.clean/gobject/../glib/gunicode.h"
[11/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\installed\x64-windows\tools\meson\meson.py" "--internal" "exe" "--capture" "gio\gioenumtypes.h" "--" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/downloads/tools/python/python-3.10.7-x86/python.exe" "gobject/glib-mkenums" "--template" "../src/glib-2-cc73e48deb.clean/gio/
...
Skipped 8 lines
...

"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x86/cl.exe" "-Igio\win32\libgiowin32.a.p" "-Igio\win32" "-I..\src\glib-2-cc73e48deb.clean\gio\win32" "-I." "-I..\src\glib-2-cc73e48deb.clean" "-Iglib" "-I..\src\glib-2-cc73e48deb.clean\glib" "-Igio" "-I..\src\glib-2-cc73e48deb.clean\gio" "-Igmodule" "-I..\src\glib-2-cc73e48deb.clean\gmodule" "-Igobject" "-ID:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/installed/x86-windows/include" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W4" "/Od" "/FImsvc_recommended_pragmas.h" "/utf-8" "-D_GNU_SOURCE" "-DG_DISABLE_CAST_CHECKS" "/wo4057" "/wd4068" "/wo4090" "/wd4100" "/wd4116" "/wo4125" "/wd4127" "/wd4146" "/wd4152" "/wd4201" "/wd4232" "/wo4245" "/wo4267" "/wd4334" "/wo4389" "/wo4702" "/wd4706" "-nologo" "-DWIN32" "-D_WINDOWS" "-W3" "-utf-8" "-MP" "-MD" "-O2" "-Oi" "-Gy" "-DNDEBUG" "-Z7" "-DG_LOG_DOMAIN=\"GLib-GIO\"" "-DGIO_LAUNCH_DESKTOP=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/libexec/gio-launch-desktop\"" "-DGIO_MODULE_DIR=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/lib/gio/modules\"" "-DLOCALSTATEDIR=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/var\"" "-DGIO_COMPILATION" "/Fdgio\win32\libgiowin32.a.p\gwin32filemonitor.c.pdb" /Fogio/win32/libgiowin32.a.p/gwin32filemonitor.c.obj "/c" ../src/glib-2-cc73e48deb.clean/gio/win32/gwin32filemonitor.c
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Od' with '/O2'
D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\buildtrees\glib\src\glib-2-cc73e48deb.clean\glib/gtypes.h(36): fatal error C1083: Cannot open include file: 'glib/gversionmacros.h': No such file or directory
[17/479] "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x86/cl.exe" "-Igio\win32\libgiowin32.a.p" "-Igio\win32" "-I..\src\glib-2-cc73e48deb.clean\gio\win32" "-I." "-I..\src\glib-2-cc73e48deb.clean" "-Iglib" "-I..\src\glib-2-cc73e48deb.clean\glib" "-Igio" "-I..\src\glib-2-cc73e48deb.clean\gio" "-Igmodule" "-I..\src\glib-2-cc73e48deb.clean\gmodule" "-Igobject" "-ID:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/installed/x86-windows/include" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W4" "/Od" "/FImsvc_recommended_pragmas.h" "/utf-8" "-D_GNU_SOURCE" "-DG_DISABLE_CAST_CHECKS" "/wo4057" "/wd4068" "/wo4090" "/wd4100" "/wd4116" "/wo4125" "/wd4127" "/wd4146" "/wd4152" "/wd4201" "/wd4232" "/wo4245" "/wo4267" "/wd4334" "/wo4389" "/wo4702" "/wd4706" "-nologo" "-DWIN32" "-D_WINDOWS" "-W3" "-utf-8" "-MP" "-MD" "-O2" "-Oi" "-Gy" "-DNDEBUG" "-Z7" "-DG_LOG_DOMAIN=\"GLib-GIO\"" "-DGIO_LAUNCH_DESKTOP=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/libexec/gio-launch-desktop\"" "-DGIO_MODULE_DIR=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/lib/gio/modules\"" "-DLOCALSTATEDIR=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/var\"" "-DGIO_COMPILATION" "/Fdgio\win32\libgiowin32.a.p\gwinhttpfile.c.pdb" /Fogio/win32/libgiowin32.a.p/gwinhttpfile.c.obj "/c" ../src/glib-2-cc73e48deb.clean/gio/win32/gwinhttpfile.c
FAILED: gio/win32/libgiowin32.a.p/gwinhttpfile.c.obj 
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x86/cl.exe" "-Igio\win32\libgiowin32.a.p" "-Igio\win32" "-I..\src\glib-2-cc73e48deb.clean\gio\win32" "-I." "-I..\src\glib-2-cc73e48deb.clean" "-Iglib" "-I..\src\glib-2-cc73e48deb.clean\glib" "-Igio" "-I..\src\glib-2-cc73e48deb.clean\gio" "-Igmodule" "-I..\src\glib-2-cc73e48deb.clean\gmodule" "-Igobject" "-ID:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/installed/x86-windows/include" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W4" "/Od" "/FImsvc_recommended_pragmas.h" "/utf-8" "-D_GNU_SOURCE" "-DG_DISABLE_CAST_CHECKS" "/wo4057" "/wd4068" "/wo4090" "/wd4100" "/wd4116" "/wo4125" "/wd4127" "/wd4146" "/wd4152" "/wd4201" "/wd4232" "/wo4245" "/wo4267" "/wd4334" "/wo4389" "/wo4702" "/wd4706" "-nologo" "-DWIN32" "-D_WINDOWS" "-W3" "-utf-8" "-MP" "-MD" "-O2" "-Oi" "-Gy" "-DNDEBUG" "-Z7" "-DG_LOG_DOMAIN=\"GLib-GIO\"" "-DGIO_LAUNCH_DESKTOP=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/libexec/gio-launch-desktop\"" "-DGIO_MODULE_DIR=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/lib/gio/modules\"" "-DLOCALSTATEDIR=\"D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/packages/glib_x86-windows/var\"" "-DGIO_COMPILATION" "/Fdgio\win32\libgiowin32.a.p\gwinhttpfile.c.pdb" /Fogio/win32/libgiowin32.a.p/gwinhttpfile.c.obj "/c" ../src/glib-2-cc73e48deb.clean/gio/win32/gwinhttpfile.c
cl : Command line warning D9025 : overriding '/W4' with '/W3'
cl : Command line warning D9025 : overriding '/Od' with '/O2'
D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\buildtrees\glib\src\glib-2-cc73e48deb.clean\glib/gtypes.h(36): fatal error C1083: Cannot open include file: 'glib/gversionmacros.h': No such file or directory
[18/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\installed\x64-windows\tools\meson\meson.py" "--internal" "exe" "--capture" "gio\gioenumtypes.c" "--" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/downloads/tools/python/python-3.10.7-x86/python.exe" "gobject/glib-mkenums" "--template" "../src/glib-2-cc73e48deb.clean/gio/gioenumtypes.c.template" "../src/glib-2-cc73e48deb.clean/gio/gappinfo.h" "../src/glib-2-cc73e48deb.clean/gio/gasyncinitable.h" "../src/glib-2-cc73e48deb.clean/gio/gasyncresult.h" "../src/glib-2-cc73e48deb.clean/gio/gbufferedinputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gbufferedoutputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gbytesicon.h" "../src/glib-2-cc73e48deb.clean/gio/gcancellable.h" "../src/glib-2-cc73e48deb.clean/gio/gcontenttype.h" "../src/glib-2-cc73e48deb.clean/gio/gcharsetconverter.h" "../src/glib-2-cc73e48deb.clean/gio/gconverter.h" "../src/glib-2-cc73e48deb.clean/gio/gconverterinputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gconverteroutputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gdatagrambased.h" "../src/glib-2-cc73e48deb.clean/gio/gdatainputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gdataoutputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gdebugcontroller.h" "../src/glib-2-cc73e48deb.clean/gio/gdebugcontrollerdbus.h" "../src/glib-2-cc73e48deb.clean/gio/gdrive.h" "../src/glib-2-cc73e48deb.clean/gio/gemblem.h" "../src/glib-2-cc73e48deb.clean/gio/gemblemedicon.h" "../src/glib-2-cc73e48deb.clean/gio/gfile.h" "../src/glib-2-cc73e48deb.clean/gio/gfileattribute.h" "../src/glib-2-cc73e48deb.clean/gio/gfileenumerator.h" "../src/glib-2-cc73e48deb.clean/gio/gfileicon.h" "../src/glib-2-cc73e48deb.clean/gio/gfileinfo.h" "../src/glib-2-cc73e48deb.clean/gio/gfileinputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gfilemonitor.h" "../src/glib-2-cc73e48deb.clean/gio/gfilenamecompleter.h" "../src/glib-2-cc73e48deb.clean/gio/gfileoutputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gfileiostream.h" "../src/glib-2-cc73e48deb.clean/gio/gfilterinputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gfilteroutputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gicon.h" "../src/glib-2-cc73e48deb.clean/gio/ginetaddress.h" "../src/glib-2-cc73e48deb.clean/gio/ginetaddressmask.h" "../src/glib-2-cc73e48deb.clean/gio/ginetsocketaddress.h" "../src/glib-2-cc73e48deb.clean/gio/ginitable.h" "../src/glib-2-cc73e48deb.clean/gio/ginputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gio.h" "../src/glib-2-cc73e48deb.clean/gio/gio-autocleanups.h" "../src/glib-2-cc73e48deb.clean/gio/gioenums.h" "../src/glib-2-cc73e48deb.clean/gio/gioerror.h" "../src/glib-2-cc73e48deb.clean/gio/giomodule.h" "../src/glib-2-cc73e48deb.clean/gio/gioscheduler.h" "../src/glib-2-cc73e48deb.clean/gio/giostream.h" "../src/glib-2-cc73e48deb.clean/gio/giotypes.h" "../src/glib-2-cc73e48deb.clean/gio/gloadableicon.h" "../src/glib-2-cc73e48deb.clean/gio/gmount.h" "../src/glib-2-cc73e48deb.clean/gio/gmemoryinputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gmemorymonitor.h" "../src/glib-2-cc73e48deb.clean/gio/gmemoryoutputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gmountoperation.h" "../src/glib-2-cc73e48deb.clean/gio/gnativesocketaddress.h" "../src/glib-2-cc73e48deb.clean/gio/gnativevolumemonitor.h" "../src/glib-2-cc73e48deb.clean/gio/gnetworkaddress.h" "../src/glib-2-cc73e48deb.clean/gio/gnetworkmonitor.h" "../src/glib-2-cc73e48deb.clean/gio/gnetworkservice.h" "../src/glib-2-cc73e48deb.clean/gio/goutputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gpermission.h" "../src/glib-2-cc73e48deb.clean/gio/gpollableinputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gpollableoutputstream.h" "../src/glib-2-cc73e48deb.clean/gio/gpollableutils.h" "../src/glib-2-cc73e48deb.clean/gio/gpowerprofilemonitor.h" "../src/glib-2-cc73e48deb.clean/gio/gproxy.h" "../src/glib-2-cc73e48deb.clean/gio/gproxyaddress.h" "../src/glib-2-cc73e48deb.clean/gio/gproxyaddressenumerator.h" "../src/glib-2-cc73e48deb.clean/gio/gproxyresolver.h" "../src/glib-2-cc73e48deb.clean/gio/gresolver.h" "../src/glib-2-cc73e48deb.clean/gio/gresource.h" "../src/glib-2-cc73e48deb.clean/gio/gseekable.h" "../src/glib-2-cc73e48deb.clean/gio/gsimpleasyncresult.h" "../src/glib-2-cc73e48deb.clean/gio/gsimpleiostream.h" "../src/glib-2-cc73e48deb.clean/gio/gsimplepermission.h" "../src/glib-2-cc73e48deb.clean/gio/gsimpleproxyresolver.h" "../src/glib-2-cc73e48deb.clean/gio/gsocket.h" "../src/glib-2-cc73e48deb.clean/gio/gsocketaddress.h" "../src/glib-2-cc73e48deb.clean/gio/gsocketaddressenumerator.h" "../src/glib-2-cc73e48deb.clean/gio/gsocketclient.h" "../src/glib-2-cc73e48deb.clean/gio/gsocketconnectable.h" "../src/glib-2-cc73e48deb.clean/gio/gsocketconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gsocketcontrolmessage.h" "../src/glib-2-cc73e48deb.clean/gio/gsocketlistener.h" "../src/glib-2-cc73e48deb.clean/gio/gsocketservice.h" "../src/glib-2-cc73e48deb.clean/gio/gsrvtarget.h" "../src/glib-2-cc73e48deb.clean/gio/gsubprocess.h" "../src/glib-2-cc73e48deb.clean/gio/gsubprocesslauncher.h" "../src/glib-2-cc73e48deb.clean/gio/gtask.h" "../src/glib-2-cc73e48deb.clean/gio/gtcpconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gtcpwrapperconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gthemedicon.h" "../src/glib-2-cc73e48deb.clean/gio/gthreadedsocketservice.h" "../src/glib-2-cc73e48deb.clean/gio/gtlsbackend.h" "../src/glib-2-cc73e48deb.clean/gio/gtlscertificate.h" "../src/glib-2-cc73e48deb.clean/gio/gtlsclientconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gtlsconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gtlsdatabase.h" "../src/glib-2-cc73e48deb.clean/gio/gtlsfiledatabase.h" "../src/glib-2-cc73e48deb.clean/gio/gtlsinteraction.h" "../src/glib-2-cc73e48deb.clean/gio/gtlspassword.h" "../src/glib-2-cc73e48deb.clean/gio/gtlsserverconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gdtlsconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gdtlsclientconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gdtlsserverconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gunixconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gunixcredentialsmessage.h" "../src/glib-2-cc73e48deb.clean/gio/gunixfdlist.h" "../src/glib-2-cc73e48deb.clean/gio/gunixsocketaddress.h" "../src/glib-2-cc73e48deb.clean/gio/gvfs.h" "../src/glib-2-cc73e48deb.clean/gio/gvolume.h" "../src/glib-2-cc73e48deb.clean/gio/gvolumemonitor.h" "../src/glib-2-cc73e48deb.clean/gio/gzlibcompressor.h" "../src/glib-2-cc73e48deb.clean/gio/gzlibdecompressor.h" "../src/glib-2-cc73e48deb.clean/gio/glistmodel.h" "../src/glib-2-cc73e48deb.clean/gio/gliststore.h" "../src/glib-2-cc73e48deb.clean/gio/gapplication.h" "../src/glib-2-cc73e48deb.clean/gio/gapplicationcommandline.h" "../src/glib-2-cc73e48deb.clean/gio/gactiongroup.h" "../src/glib-2-cc73e48deb.clean/gio/gactionmap.h" "../src/glib-2-cc73e48deb.clean/gio/gsimpleactiongroup.h" "../src/glib-2-cc73e48deb.clean/gio/gremoteactiongroup.h" "../src/glib-2-cc73e48deb.clean/gio/gactiongroupexporter.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusactiongroup.h" "../src/glib-2-cc73e48deb.clean/gio/gaction.h" "../src/glib-2-cc73e48deb.clean/gio/gpropertyaction.h" "../src/glib-2-cc73e48deb.clean/gio/gsimpleaction.h" "../src/glib-2-cc73e48deb.clean/gio/gmenumodel.h" "../src/glib-2-cc73e48deb.clean/gio/gmenu.h" "../src/glib-2-cc73e48deb.clean/gio/gmenuexporter.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusmenumodel.h" "../src/glib-2-cc73e48deb.clean/gio/gnotification.h" "../src/glib-2-cc73e48deb.clean/gio/gsettingsbackend.h" "../src/glib-2-cc73e48deb.clean/gio/gsettingsschema.h" "../src/glib-2-cc73e48deb.clean/gio/gsettings.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusauthobserver.h" "../src/glib-2-cc73e48deb.clean/gio/gcredentials.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusutils.h" "../src/glib-2-cc73e48deb.clean/gio/gdbuserror.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusaddress.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusconnection.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusmessage.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusnameowning.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusnamewatching.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusproxy.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusintrospection.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusmethodinvocation.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusserver.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusinterface.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusinterfaceskeleton.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusobject.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusobjectskeleton.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusobjectproxy.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusobjectmanager.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusobjectmanagerclient.h" "../src/glib-2-cc73e48deb.clean/gio/gdbusobjectmanagerserver.h" "../src/glib-2-cc73e48deb.clean/gio/gtestdbus.h" "gio/gnetworking.h"
ninja: build stopped: subcommand failed.

Additional context

gversionmacros.h presents in the buildtrees/glib/x86-windows-dbg/glib, but not in the buildtrees/glib/x86-windows-rel/glib.

@oleg-derevenetz oleg-derevenetz added the category:port-bug The issue is with a library, which is something the port should already support label Jan 4, 2023
@LilyWangLL LilyWangLL added requires:repro The issue is not currently repro-able and removed category:port-bug The issue is with a library, which is something the port should already support labels Jan 5, 2023
@LilyWangLL
Copy link
Contributor

This file create by the following codes in [GLIB_SOURCE]/glib/meson.build:

gversionmacros_h = custom_target(
  input: 'gversionmacros.h.in',
  output: 'gversionmacros.h',
  command: [gen_visibility_macros, meson.project_version(), 'versions-macros', '@INPUT@', '@OUTPUT@'],
  install: true,
  install_dir: glib_sub_includedir,
  # FIXME: Not needed with Meson >= 0.64.0
  install_tag: 'devel',
)

I saw these files create successfully in log.

[3/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/buildtrees/glib/src/glib-2-cc73e48deb.clean/tools/gen-visibility-macros.py" "2.75.1" "visibility-macros" "GLIB" "glib/glib-visibility.h"
[4/479] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "/nologo" "/fogobject/gobject_gobject.rc_gobject.res" "gobject/gobject.rc"
[5/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/buildtrees/glib/src/glib-2-cc73e48deb.clean/tools/gen-visibility-macros.py" "2.75.1" "visibility-macros" "GOBJECT" "gobject/gobject-visibility.h"
[6/479] "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/rc.exe" "/nologo" "/fogmodule/gmodule_gmodule.rc_gmodule.res" "gmodule/gmodule.rc"
[7/479] "D:\a\fheroes2-prebuilt-deps\fheroes2-prebuilt-deps\.vcpkg\downloads\tools\python\python-3.10.7-x86\python.exe" "D:/a/fheroes2-prebuilt-deps/fheroes2-prebuilt-deps/.vcpkg/buildtrees/glib/src/glib-2-cc73e48deb.clean/tools/gen-visibility-macros.py" "2.75.1" "visibility-macros" "GMODULE" "gmodule/gmodule-visibility.h"

I can't reproduce this issue locally. I have no idea about why gversionmacros_h create failed in release mode. @oleg-derevenetz Did you install any firewall or anti-virus software on your machine?

cc @Neumann-A could you please take a look this issue?

@oleg-derevenetz
Copy link
Contributor Author

Hi @LilyWangLL this is observed in the GitHub CI on windows-2019 image with the latest vcpkg ref. However if I try to build glib 2.74.1 (by checkout an older ref or applying a patch to the vcpkg repo that downgrades the glib port), that older glib builds just fine.

@oleg-derevenetz
Copy link
Contributor Author

Hmm, I just tried the same build script with the same vcpkg ref and this issue is not observed anymore :( It's a kind of magic. Here is the build where it was observed yesterday:

https://github.com/oleg-derevenetz/fheroes2-prebuilt-deps/actions/runs/3839093792/jobs/6536405857

That's where the issue body for this PR was taken from.

@oleg-derevenetz oleg-derevenetz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2023
@stevecotton
Copy link

[17/479] cl.exe ... ../src/glib-2-cc73e48deb.clean/gio/win32/gwinhttpfile.c
FAILED: gio/win32/libgiowin32.a.p/gwinhttpfile.c.obj 
fatal error C1083: Cannot open include file: 'glib/gversionmacros.h': No such file or directory

This one's a race condition in the upstream makefiles, between the gio/win32/ and glib/ subdirectories. My debugging is in wesnoth/wesnoth#7352 (comment) (that PR isn't a fix, it was just to store the logs from the CI).

I think this one hasn't been logged or fixed upstream yet; but as I don't do Windows builds locally, I'm not the person to take it upstream.

@c72578
Copy link
Contributor

c72578 commented Mar 1, 2023

@stevecotton thanks for providing the info, that the issue is caused by a race condition.
I guess this issue should be reopened, until an upstream fix is available.

@LilyWangLL LilyWangLL added depends:upstream-changes Waiting on a change to the upstream project and removed requires:repro The issue is not currently repro-able labels Mar 2, 2023
@c72578
Copy link
Contributor

c72578 commented Mar 2, 2023

Issue submitted upstream:
https://gitlab.gnome.org/GNOME/glib/-/issues/2929

stevecotton added a commit to stevecotton/wesnoth that referenced this issue Apr 10, 2023
It's better to disable them that to get in the habit of ignoring the CI fails
from the following two issues; this can be reverted once either is fixed.

glib has a bug where it builds things out of order which results in it failing
to build the dependencies, which fails the build.
microsoft/vcpkg#26601

vcpkg also has a bug where it very often fails to use the cache of the
previously built dependencies even if none of them changed, which then makes it
rebuild all the dependencies again.
microsoft/vcpkg#28722

If the glib bug was fixed, then the errors wouldn't happen since rebuilding the dependencies wouldn't fail.
If the caching bug was fixed, then the errors wouldn't happen since it'd just reuse the cached dependencies.
stevecotton added a commit to stevecotton/wesnoth that referenced this issue Apr 10, 2023
It's better to disable them that to get in the habit of ignoring the CI fails
from the following two issues; this can be reverted once either is fixed.

glib has a bug where it builds things out of order which results in it failing
to build the dependencies, which fails the build.
microsoft/vcpkg#28722

vcpkg also has a bug where it very often fails to use the cache of the
previously built dependencies even if none of them changed, which then makes it
rebuild all the dependencies again.
microsoft/vcpkg#26601

If the glib bug was fixed, then the errors wouldn't happen since rebuilding the dependencies wouldn't fail.
If the caching bug was fixed, then the errors wouldn't happen since it'd just reuse the cached dependencies.
stevecotton added a commit to stevecotton/wesnoth that referenced this issue Apr 10, 2023
It's better to disable them that to get in the habit of ignoring the CI fails
from the following two issues; this can be reverted once either is fixed.

glib has a bug where it builds things out of order which results in it failing
to build the dependencies, which fails the build.
microsoft/vcpkg#28722

vcpkg also has a bug where it very often fails to use the cache of the
previously built dependencies even if none of them changed, which then makes it
rebuild all the dependencies again.
microsoft/vcpkg#26601

If the glib bug was fixed, then the errors wouldn't happen since rebuilding the
dependencies wouldn't fail. If the caching bug was fixed, then the errors
wouldn't happen since it'd just reuse the cached dependencies.
stevecotton added a commit to wesnoth/wesnoth that referenced this issue Apr 10, 2023
It's better to disable them that to get in the habit of ignoring the CI fails
from the following two issues; this can be reverted once either is fixed.

glib has a bug where it builds things out of order which results in it failing
to build the dependencies, which fails the build.
microsoft/vcpkg#28722

vcpkg also has a bug where it very often fails to use the cache of the
previously built dependencies even if none of them changed, which then makes it
rebuild all the dependencies again.
microsoft/vcpkg#26601

If the glib bug was fixed, then the errors wouldn't happen since rebuilding the
dependencies wouldn't fail. If the caching bug was fixed, then the errors
wouldn't happen since it'd just reuse the cached dependencies.
loonycyborg pushed a commit to wesnoth/wesnoth that referenced this issue May 23, 2023
It's better to disable them that to get in the habit of ignoring the CI fails
from the following two issues; this can be reverted once either is fixed.

glib has a bug where it builds things out of order which results in it failing
to build the dependencies, which fails the build.
microsoft/vcpkg#28722

vcpkg also has a bug where it very often fails to use the cache of the
previously built dependencies even if none of them changed, which then makes it
rebuild all the dependencies again.
microsoft/vcpkg#26601

If the glib bug was fixed, then the errors wouldn't happen since rebuilding the
dependencies wouldn't fail. If the caching bug was fixed, then the errors
wouldn't happen since it'd just reuse the cached dependencies.
@c72578
Copy link
Contributor

c72578 commented Jul 27, 2023

A fix has been prepared upstream:
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3512
Commit:
https://gitlab.gnome.org/GNOME/glib/-/commit/b01d801207232f6820770476afc13b849030a64d

@LilyWangLL LilyWangLL added category:port-bug The issue is with a library, which is something the port should already support and removed depends:upstream-changes Waiting on a change to the upstream project labels Jul 27, 2023
@Pentarctagon
Copy link

This does not seem to be fixed, since we're still sometimes getting a glib build failure. For example: https://github.com/wesnoth/wesnoth/actions/runs/6012804873/job/16308885150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants