No GTK3+ and GIO symbols on MINGW64

GDB is showing that my GTK+3 application on MINGW64 is segfault-ing on libgio for which I seem to have no symbols.

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff9a5d2dc60 in ?? () from C:\msys64\mingw64\bin\libgio-2.0-0.dll

How/where can I get a hold of the GTK ecosystem symbols for MINGW64? Or do I have to build MINGW64 for myself?

Arch Linux added support for debug symbols via debuginfod, however there’s no Windows support currently. You should build the package yourself

  • git clone https://github.com/msys2/MINGW-packages.git
  • Open MINGW-packages/mingw-w64-glib2/PKGBUILD file with a text editor and modify it to disable strip and enable debug:
    -options=('strip' '!debug' 'staticlibs')
    +options=('!strip' 'debug' 'staticlibs')
    
  • Open the MSYS2 MSYS shell and cd into MINGW-packages/mingw-w64-glib2
  • export MINGW_ARCH=mingw64
  • makepkg-mingw --skippgpcheck
  • pacman -U mingw-w64-x86_64-glib2-*.pkg.tar.zstd

Finally, you can re-install the original package with pacman -S mingw-w64-x86_64-glib2

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.