Opened 5 years ago

Closed 4 years ago

#9553 closed bug (duplicate)

GHC under Windows with TH can't tell that gtk-win32-2.0 is in gtk-win32-2.0-0 (note the -0 suffix)

Reported by: MikolajKonarski Owned by:
Priority: normal Milestone: 8.0.2
Component: Runtime System Version: 7.8.3
Keywords: Cc: simonmar
Operating System: Windows Architecture: Unknown/Multiple
Type of failure: GHC rejects valid program Test Case:
Blocked By: Blocking:
Related Tickets: #5289 #1883 #11072 Differential Rev(s):
Wiki Page:


The following compilation under Wine (after applying the workarounds described at

cabal install LambdaHack-

fails with (the full log attached)

Loading package LambdaHack- ... ghc.exe: gtk-win32-2.0: Module not found.
<command line>: can't load .so/.DLL for: gtk-win32-2.0.dll (addDLL: could not load DLL)

The following workaround sidesteps the problem, leading to a correctly running executable (symlinks are not enough).

cp gtk/bin/libgtk-win32-2.0-0.dll gtk/bin/libgtk-win32-2.0.dll
cp gtk/bin/libgdk-win32-2.0-0.dll gtk/bin/libgdk-win32-2.0.dll
cp gtk/bin/libatk-1.0-0.dll gtk/bin/libatk-1.0.dll
cp gtk/bin/libgio-2.0-0.dll gtk/bin/libgio-2.0.dll
cp gtk/bin/libgio-2.0-0.dll gtk/bin/pango-
cp gtk/bin/libgio-2.0-0.dll gtk/bin/
cp gtk/bin/libpangowin32-1.0-0.dll gtk/bin/libpangowin32-1.0.dll
cp gtk/bin/libpangocairo-1.0-0.dll gtk/bin/libpangocairo-1.0.dll
cp gtk/bin/libgdk_pixbuf-2.0-0.dll gtk/bin/libgdk_pixbuf-2.0.dll
cp gtk/bin/libpango-1.0-0.dll gtk/bin/libpango-1.0.dll
cp gtk/bin/libcairo- gtk/bin/libcairo.dll
cp gtk/bin/libcairo-2.dll gtk/bin/libcairo.dll
cp gtk/bin/libgobject-2.0-0.dll gtk/bin/libgobject-2.0.dll
cp gtk/bin/libgmodule-2.0-0.dll gtk/bin/libgmodule-2.0.dll
cp gtk/bin/libgthread-2.0-0.dll gtk/bin/libgthread-2.0.dll
cp gtk/bin/libglib-2.0-0.dll gtk/bin/libglib-2.0.dll
cp gtk/bin/libfontconfig-1.dll gtk/bin/libfontconfig.dll

Attachments (1)

log.wrongwineDLL.gz (25.5 KB) - added by MikolajKonarski 5 years ago.

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by MikolajKonarski

Attachment: log.wrongwineDLL.gz added

comment:1 Changed 4 years ago by Phyx-

Cc: simonmar added
Component: CompilerRuntime System
Milestone: 8.0.2
Resolution: duplicate
Status: newclosed

Thanks for the report,

This is the same issue as #11072 and has been fixed in git. The fix should be available in 8.0.2.

gtk uses import libraries to redirect to the correct libraries.

Note: See TracTickets for help on using tickets.