<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1445783383217_2620" dir="ltr"><span id="yui_3_16_0_1_1445783383217_2619">The problem seems to be in "cpp-options" field in glib.cabal where "__attribute__(A)" is redefined to nothing. This seems to cause problems only with head GHC because in head MinGW that comes with GHC is upgraded to 5.2.</span></div><div id="yui_3_16_0_1_1445783383217_2620" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1445783383217_2620" dir="ltr"><span id="yui_3_16_0_1_1445783383217_2730">Simply removing that redefinition from .cabal fixed problem for me. Note that you will need to do the same thing for pango and gio packages.</span></div> <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Sunday, October 25, 2015 3:17 PM, Burkhard Groh <Burkhard.Groh@gmx.de> wrote:<br> </font> </div> <br><br> <div class="y_msg_container">In my latest attempt to finally build the gtk3 package with ghc-head <br>'ghc-master' (7.11.20151024) for a current project under windows x64 <br>using the latest msys2-version and its supplied gtk3 libraries <br>(mingw64/mingw-w64-x86_64-gtk3 3.18.2-1) I encountered this cryptical <br>(linking) error. (See complete log for command './Setup build -v3' <br>attached) I should add that I'm rather a beginner with regards to the <br>Haskell language and its package distribution system cabal.<br>Thus all thoughts, ideas and suggestions how to fix this problem are <br>welcome.<br><br>Best regards<br>Burkhard<br><br>complete building response in msys2-shell using the mingw64 script:<br><br>$ ./Setup build -v3<br>Component build order: library<br>creating dist\build<br>creating dist\build\autogen<br>Building glib-0.13.2.1...<br>Environment: <br>[("","C:=C:\\Windows\\System32"),("ACLOCAL_PATH","C:\\MSYS2\\mingw64\\share\\aclocal;C:\\MSYS2\\usr\\share\\aclocal"),("ALLUSERSPROFILE","C:\\ProgramData"),("APPDATA","C:\\Users\\PC-08\\AppData\\Roaming"),("CHECKDEF","C:\\Applications\\wingx\\bin"),("COMMONPROGRAMFILES","C:\\Program <br>Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files <br>(x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common <br>Files"),("COMPUTERNAME","PC-08"),("COMSPEC","C:\\Windows\\system32\\cmd.exe"),("FP_NO_HOST_CHECK","NO"),("HOME","C:\\MSYS2\\home\\Ms <br>PC-08"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\PC-08"),("HOSTNAME","PC-08"),("INFOPATH","C:\\MSYS2\\usr\\local\\info;C:\\MSYS2\\usr\\share\\info;C:\\MSYS2\\usr\\info;C:\\MSYS2\\share\\info"),("LANG","de_DE.UTF-8"),("LOCALAPPDATA","C:\\Users\\PC-08\\AppData\\Local"),("LOGONSERVER","\\\\PC-08"),("MANPATH","C:\\MSYS2\\mingw64\\share\\man;C:\\MSYS2\\usr\\local\\man;C:\\MSYS2\\usr\\share\\man;C:\\MSYS2\\usr\\man;C:\\MSYS2\\share\\man"),("MSYSCON","mintty.exe"),("MSYSTEM","MINGW64"),("NUMBER_OF_PROCESSORS","4"),("OLDPWD","C:/MSYS2/home/Ms <br>PC-08/cabal"),("ORTEPDIR","C:\\Applications\\ortep3"),("OS","Windows_NT"),("PATH","C:\\Users\\PC-08\\AppData\\Roaming\\cabal\\bin;C:\\Haskell\\ghc-7.11.20151024\\bin;C:\\Haskell\\ghc-7.11.20151024\\mingw\\bin;C:\\MSYS2\\mingw64\\bin;C:\\MSYS2\\usr\\local\\bin;C:\\MSYS2\\usr\\bin;C:\\MSYS2\\usr\\bin;C:\\Program <br>Files <br>(x86)\\CambridgeSoft\\ChemOffice2015\\ChemScript\\Lib;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program <br>Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program <br>Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common <br>Files\\Intel\\WirelessCommon;C:\\Applications\\LinksPortable;C:\\Program <br>Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common <br>Files\\Intel\\WirelessCommon;C:\\Program <br>Files\\Miktex\\miktex\\bin\\x64;C:\\MSYS2\\usr\\bin\\site_perl;C:\\MSYS2\\usr\\bin\\vendor_perl;C:\\MSYS2\\usr\\bin\\core_perl;C:\\Users\\PC-08\\AppData\\Roaming\\cabal\\bin;C:\\Users\\PC-08\\AppData\\Roaming\\cabal\\bin"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"),("PGFONT","C:\\Applications\\wingx\\files\\grfont.dat"),("PKG_CONFIG_PATH","C:\\MSYS2\\mingw64\\lib\\pkgconfig;C:\\MSYS2\\mingw64\\share\\pkgconfig"),("PRINTER","Brother <br>HL-5270DN"),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 <br>Family 6 Model 69 Stepping 1, <br>GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","4501"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program <br>Files"),("PROGRAMFILES(X86)","C:\\Program Files <br>(x86)"),("PROGRAMW6432","C:\\Program <br>Files"),("PROMPT","$P$G"),("PS1","\\[\\e]0;\\w\\a\\]\\n\\[\\e[32m\\]\\u@\\h <br>\\[\\e[35m\\]$MSYSTEM\\[\\e[0m\\] \\[\\e[33m\\]\\w\\[\\e[0m\\]\\n\\$ <br>"),("PSMODULEPATH","C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("PWD","C:/Haskell/gtk2hs-master/glib"),("PYTHONPATH","C:\\Program <br>Files <br>(x86)\\CambridgeSoft\\ChemOffice2015\\ChemScript\\Lib"),("RASMOLPATH","C:\\Program <br>Files <br>(x86)\\RasWin"),("SESSIONNAME","Console"),("SHELL","C:/MSYS2/usr/bin/bash"),("SHLVL","1"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\Windows"),("TEMP","C:\\Users\\PC-08\\AppData\\Local\\Temp"),("TERM","xterm-256color"),("TMP","C:\\Users\\PC-08\\AppData\\Local\\Temp"),("UOIPME_REG_PATH","C:\\Program <br>Files\\Intel Corporation\\USB over IP"),("USER","Ms <br>PC-08"),("USERDOMAIN","PC-08"),("USERNAME","Ms <br>PC-08"),("USERPROFILE","C:\\Users\\PC-08"),("VS110COMNTOOLS","C:\\Program Files <br>(x86)\\Microsoft Visual Studio <br>11.0\\Common7\\Tools\\"),("VS120COMNTOOLS","C:\\Program Files <br>(x86)\\Microsoft Visual Studio <br>12.0\\Common7\\Tools\\"),("WD","C:\\MSYS2\\usr\\bin\\"),("WINDIR","C:\\Windows"),("WINGXDIR","C:\\Applications\\wingx"),("XML_CATALOG_FILES","C:/MSYS2/etc/xml/docbook-xml <br>/etc/xml/catalog"),("_","./Setup")]<br>("C:\\Haskell\\ghc-7.11.20151024\\bin\\ghc-pkg.exe",["init","dist\\package.conf.inplace","-v2"])<br>writing cache dist\package.conf.inplace\package.cache<br>Preprocessing library glib-0.13.2.1...<br>creating dist\build\System\Glib<br>Environment: <br>[("","C:=C:\\Windows\\System32"),("ACLOCAL_PATH","C:\\MSYS2\\mingw64\\share\\aclocal;C:\\MSYS2\\usr\\share\\aclocal"),("ALLUSERSPROFILE","C:\\ProgramData"),("APPDATA","C:\\Users\\PC-08\\AppData\\Roaming"),("CHECKDEF","C:\\Applications\\wingx\\bin"),("COMMONPROGRAMFILES","C:\\Program <br>Files\\Common Files"),("COMMONPROGRAMFILES(X86)","C:\\Program Files <br>(x86)\\Common Files"),("COMMONPROGRAMW6432","C:\\Program Files\\Common <br>Files"),("COMPUTERNAME","PC-08"),("COMSPEC","C:\\Windows\\system32\\cmd.exe"),("FP_NO_HOST_CHECK","NO"),("HOME","C:\\MSYS2\\home\\Ms <br>PC-08"),("HOMEDRIVE","C:"),("HOMEPATH","\\Users\\PC-08"),("HOSTNAME","PC-08"),("INFOPATH","C:\\MSYS2\\usr\\local\\info;C:\\MSYS2\\usr\\share\\info;C:\\MSYS2\\usr\\info;C:\\MSYS2\\share\\info"),("LANG","de_DE.UTF-8"),("LOCALAPPDATA","C:\\Users\\PC-08\\AppData\\Local"),("LOGONSERVER","\\\\PC-08"),("MANPATH","C:\\MSYS2\\mingw64\\share\\man;C:\\MSYS2\\usr\\local\\man;C:\\MSYS2\\usr\\share\\man;C:\\MSYS2\\usr\\man;C:\\MSYS2\\share\\man"),("MSYSCON","mintty.exe"),("MSYSTEM","MINGW64"),("NUMBER_OF_PROCESSORS","4"),("OLDPWD","C:/MSYS2/home/Ms <br>PC-08/cabal"),("OS","Windows_NT"),("PATH","C:\\Users\\PC-08\\AppData\\Roaming\\cabal\\bin;C:\\Haskell\\ghc-7.11.20151024\\bin;C:\\Haskell\\ghc-7.11.20151024\\mingw\\bin;C:\\MSYS2\\mingw64\\bin;C:\\MSYS2\\usr\\local\\bin;C:\\MSYS2\\usr\\bin;C:\\MSYS2\\usr\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program <br>Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\Program <br>Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common <br>Files\\Intel\\WirelessCommon;C:\\Program <br>Files\\Intel\\WiFi\\bin;C:\\Program Files\\Common <br>Files\\Intel\\WirelessCommon;C:\\Program <br>Files\\Miktex\\miktex\\bin\\x64;C:\\MSYS2\\usr\\bin\\site_perl;C:\\MSYS2\\usr\\bin\\vendor_perl;C:\\MSYS2\\usr\\bin\\core_perl;C:\\Users\\PC-08\\AppData\\Roaming\\cabal\\bin;C:\\Users\\PC-08\\AppData\\Roaming\\cabal\\bin"),("PATHEXT",".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"),("PGFONT","C:\\Applications\\wingx\\files\\grfont.dat"),("PKG_CONFIG_PATH","C:\\MSYS2\\mingw64\\lib\\pkgconfig;C:\\MSYS2\\mingw64\\share\\pkgconfig"),("PRINTER",""),("PROCESSOR_ARCHITECTURE","AMD64"),("PROCESSOR_IDENTIFIER","Intel64 <br>Family 6 Model 69 Stepping 1, <br>GenuineIntel"),("PROCESSOR_LEVEL","6"),("PROCESSOR_REVISION","4501"),("PROGRAMDATA","C:\\ProgramData"),("PROGRAMFILES","C:\\Program <br>Files"),("PROGRAMFILES(X86)","C:\\Program Files <br>(x86)"),("PROGRAMW6432","C:\\Program <br>Files"),("PROMPT","$P$G"),("PS1","\\[\\e]0;\\w\\a\\]\\n\\[\\e[32m\\]\\u@\\h <br>\\[\\e[35m\\]$MSYSTEM\\[\\e[0m\\] \\[\\e[33m\\]\\w\\[\\e[0m\\]\\n\\$ <br>"),("PSMODULEPATH","C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\"),("PUBLIC","C:\\Users\\Public"),("PWD","C:/Haskell/gtk2hs-master/glib"),("PYTHONPATH","C:\\Program <br>Files <br>(x86)\\CambridgeSoft\\ChemOffice2015\\ChemScript\\Lib"),("RASMOLPATH","C:\\Program <br>Files <br>(x86)\\RasWin"),("SESSIONNAME","Console"),("SHELL","C:/MSYS2/usr/bin/bash"),("SHLVL","1"),("SYSTEMDRIVE","C:"),("SYSTEMROOT","C:\\Windows"),("TEMP","C:\\Users\\PC-08\\AppData\\Local\\Temp"),("TERM","xterm-256color"),("TMP","C:\\Users\\PC-08\\AppData\\Local\\Temp"),("UOIPME_REG_PATH","C:\\Program <br>Files\\Intel Corporation\\USB over IP"),("USER","Ms <br>PC-08"),("USERDOMAIN","PC-08"),("USERNAME","Ms <br>PC-08"),("USERPROFILE","C:\\Users\\PC-08"),("VS110COMNTOOLS","C:\\Program Files <br>(x86)\\Microsoft Visual Studio <br>11.0\\Common7\\Tools\\"),("VS120COMNTOOLS","C:\\Program Files <br>(x86)\\Microsoft Visual Studio <br>12.0\\Common7\\Tools\\"),("WD","C:\\MSYS2\\usr\\bin\\"),("WINDIR","C:\\Windows"),("WINGXDIR","C:\\Applications\\wingx"),("XML_CATALOG_FILES","C:/MSYS2/etc/xml/docbook-xml <br>/etc/xml/catalog"),("_","./Setup")]<br>("C:\\Haskell\\ghc-7.11.20151024\\bin\\hsc2hs.exe",["--cc=C:\\Haskell\\ghc-7.11.20151024\\mingw\\bin\\gcc.exe","--ld=C:\\Haskell\\ghc-7.11.20151024\\mingw\\bin\\gcc.exe","--cflag=-fno-stack-protector","--lflag=-fno-stack-protector","--cflag=-D__GLASGOW_HASKELL__=711","--cflag=-Dmingw32_BUILD_OS=1","--cflag=-Dx86_64_BUILD_ARCH=1","--cflag=-Dmingw32_HOST_OS=1","--cflag=-Dx86_64_HOST_ARCH=1","--cflag=-Idist\\build\\autogen","--cflag=-Idist\\build","--cflag=-ISystem/Glib","--cflag=-IC:/MSYS2/mingw64/include/glib-2.0","--cflag=-IC:/MSYS2/mingw64/lib/glib-2.0/include","--cflag=-mms-bitfields","--cflag=-U__BLOCKS__","--cflag=-D__attribute__(A)=","--cflag=-DUSE_GCLOSURE_SIGNALS_IMPL","--cflag=-Idist\\build\\autogen","--cflag=-include","--cflag=dist\\build\\autogen\\cabal_macros.h","--lflag=-LC:/MSYS2/mingw64/lib","--lflag=-lgobject-2.0","--lflag=-lglib-2.0","--lflag=-lintl","--cflag=-IC:\\Haskell\\ghc-7.11.20151024\\lib\\bytestring-0.10.6.0\\include","--cflag=-IC:\\Haskell\\ghc-7.11.20151024<br> \\lib\\base-4.8.2.0\\include","--cflag=-IC:\\Haskell\\ghc-7.11.20151024\\lib\\integer-gmp-1.0.0.0\\include","--cflag=-IC:\\Haskell\\ghc-7.11.20151024\\lib/include","--lflag=-LC:\\Users\\PC-08\\AppData\\Roaming\\cabal\\x86_64-windows-ghc-7.11.20151024\\utf8s_LAIfwUZWplI3JK3b6W44Yv","--lflag=-LC:\\Users\\PC-08\\AppData\\Roaming\\cabal\\x86_64-windows-ghc-7.11.20151024\\text_IqwR9CiNGjxJyQdu3bLbNv","--lflag=-LC:\\Haskell\\ghc-7.11.20151024\\lib\\binary-0.7.5.0","--lflag=-LC:\\Haskell\\ghc-7.11.20151024\\lib\\containers-0.5.6.2","--lflag=-LC:\\Haskell\\ghc-7.11.20151024\\lib\\bytestring-0.10.6.0","--lflag=-LC:\\Haskell\\ghc-7.11.20151024\\lib\\deepseq-1.4.1.1","--lflag=-LC:\\Haskell\\ghc-7.11.20151024\\lib\\array-0.5.1.0","--lflag=-LC:\\Haskell\\ghc-7.11.20151024\\lib\\base-4.8.2.0","--lflag=-lwsock32","--lflag=-luser32","--lflag=-lshell32","--lflag=-LC:\\Haskell\\ghc-7.11.20151024\\lib\\integer-gmp-1.0.0.0","--lflag=-LC:\\Haskell\\ghc-7.11.20151024\\lib\\ghc-prim-0.4.0.0","--lflag=-LC:<br> \\Haskell\\ghc-7.11.20151024\\lib/rts","--lflag=-lm","--lflag=-lwsock32","--lflag=-lgdi32","--lflag=-lwinmm","-o","dist\\build\\System\\Glib\\StoreValue.hs","System\\Glib\\StoreValue.hsc"])<br>dist\build\System\Glib\StoreValue_hsc_utils.o:StoreValue_hsc_utils.c:(.text+0x0): <br>multiple definition of `__debugbreak'<br>dist\build\System\Glib\StoreValue_hsc_make.o:StoreValue_hsc_make.c:(.text+0x0): <br>first defined here<br>collect2.exe: error: ld returned 1 exit status<br>linking dist\build\System\Glib\StoreValue_hsc_make.o failed (exit code 1)<br>command was: C:\Haskell\ghc-7.11.20151024\mingw\bin\gcc.exe <br>dist\build\System\Glib\StoreValue_hsc_make.o <br>dist\build\System\Glib\StoreValue_hsc_utils.o -o <br>dist\build\System\Glib\StoreValue_hsc_make.exe -fno-stack-protector <br>-LC:/MSYS2/mingw64/lib -lgobject-2.0 -lglib-2.0 -lintl <br>-LC:\Users\PC-08\AppData\Roaming\cabal\x86_64-windows-ghc-7.11.20151024\utf8s_LAIfwUZWplI3JK3b6W44Yv <br>-LC:\Users\PC-08\AppData\Roaming\cabal\x86_64-windows-ghc-7.11.20151024\text_IqwR9CiNGjxJyQdu3bLbNv <br>-LC:\Haskell\ghc-7.11.20151024\lib\binary-0.7.5.0 <br>-LC:\Haskell\ghc-7.11.20151024\lib\containers-0.5.6.2 <br>-LC:\Haskell\ghc-7.11.20151024\lib\bytestring-0.10.6.0 <br>-LC:\Haskell\ghc-7.11.20151024\lib\deepseq-1.4.1.1 <br>-LC:\Haskell\ghc-7.11.20151024\lib\array-0.5.1.0 <br>-LC:\Haskell\ghc-7.11.20151024\lib\base-4.8.2.0 -lwsock32 -luser32 <br>-lshell32 -LC:\Haskell\ghc-7.11.20151024\lib\integer-gmp-1.0.0.0 <br>-LC:\Haskell\ghc-7.11.20151024\lib\ghc-prim-0.4.0.0 <br>-LC:\Haskell\ghc-7.11.20151024\lib/rts -lm -lwsock32 -lgdi32 -lwinmm<br>C:\Haskell\ghc-7.11.20151024\bin\hsc2hs.exe returned ExitFailure 1<br><br><br><br><br>_______________________________________________<br>Haskell-Cafe mailing list<br><a ymailto="mailto:Haskell-Cafe@haskell.org" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br><br><br></div> </div> </div> </div></div></body></html>