> Can you link cpp to some cpp.exe and try again? That would at least  
> pin down the cause.

I don't think I understand.  I do have a cpp on the path already.

I think (at least one) problem could be that ghc-pkg's $topdir is being
expanded to a filepath finishing in \ghc-6.12.1, instead of a path
finishing in \ghc-6.12.1\lib.  I'm not sure which tool is responsible
for that expansion going wrong.

For instance,
    $ ghc-pkg field haskell98 import-dirs
    import-dirs: C:/workspace/ext/ghc-6.12.1\lib\haskell98-1.0.1.1

But
    $ cabal build -v
    C:\workspace\ext\bin\gtk2hsC2hs.exe --include=dist\build ...
       --include=C:\workspace\ext\ghc-6.12.1\haskell98-1.0.1.1

Another problem is that the cabal-generated commandline for gtk2hsC2hs
uses Windows-style backslashes for relative filepaths.  This seems like
a very weird interaction with MinGW.  If I manually convert the
commandline from

    C:\workspace\ext\bin\gtk2hsC2hs.exe --include=dist\build
      --include=C:\workspace\ext\ghc-6.12.1\base-4.2.0.0
      --include=C:\workspace\ext\ghc-6.12.1\containers-0.3.0.0
      --include=C:\workspace\ext\ghc-6.12.1\haskell98-1.0.1.1
      --cppopts=-ISystem/Glib
      --cppopts=-IC:/msys/1.0/local/include/glib-2.0
      --cppopts=-IC:/msys/1.0/local/lib/glib-2.0/include
      --cppopts=-DUSE_GCLOSURE_SIGNALS_IMPL
      --cppopts=-DHAVE_NEW_CONTROL_EXCEPTION
      --output-dir=dist\build\System\Glib
      --output=System\Glib\Properties.hs
      --precomp=dist\build\precompchs.bin
      glib-object.h .\System\Glib\Properties.chs

to

   C:/workspace/ext/bin/gtk2hsC2hs.exe --include=dist/build
      --include=C:\workspace\ext\ghc-6.12.1\base-4.2.0.0
      --include=C:\workspace\ext\ghc-6.12.1\containers-0.3.0.0
      --include=C:\workspace\ext\ghc-6.12.1\haskell98-1.0.1.1
      --cppopts=-ISystem/Glib
      --cppopts=-IC:/msys/1.0/local/include/glib-2.0
      --cppopts=-IC:/msys/1.0/local/lib/glib-2.0/include
      --cppopts=-DUSE_GCLOSURE_SIGNALS_IMPL
      --cppopts=-DHAVE_NEW_CONTROL_EXCEPTION
      --output-dir=dist/build/System/Glib
      --output=System/Glib/Types.hs
      --precomp=dist\build\precompchs.bin
      glib-object.h ./System/Glib/Types.chs

(noting that I did not convert the slashes in all paths, just some),
then this command completes without an error message.  Whether its
output is correct is entirely another matter, but I can't check that
right now.

Regards,
    Malcolm
This email and any attachments are confidential and may also be privileged.  If 
you are not the addressee, do not disclose, copy, circulate or in any other way 
use or rely on the information contained in this email or any attachments.  If 
received in error, notify the sender immediately and delete this email and any 
attachments from your system.  Emails cannot be guaranteed to be secure or 
error free as the message and any attachments could be intercepted, corrupted, 
lost, delayed, incomplete or amended.  Standard Chartered PLC and its 
subsidiaries do not accept liability for damage caused by this email or any 
attachments and may monitor email traffic.

 

Standard Chartered PLC is incorporated in England with limited liability under 
company number 966425 and has its registered office at 1 Aldermanbury Square, 
London, EC2V 7SB.

 

Standard Chartered Bank ("SCB") is incorporated in England with limited 
liability by Royal Charter 1853, under reference ZC18.  The Principal Office of 
SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the 
United Kingdom, SCB is authorised and regulated by the Financial Services 
Authority under FSA register number 114276.

 

If you are receiving this email from SCB outside the UK, please click 
http://www.standardchartered.com/global/email_disclaimer.html to refer to the 
information on other jurisdictions.


------------------------------------------------------------------------------
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to