> >    $ cabal build;
> >    Preprocessing library glib-0.10.5
> >    Gtk2hsC2hs.exe: does not exist
> 
> So simply running gtk2hsC2hs.exe on the command line works but cabal  
> doesn't manage to start it? That's odd. You could try to run 'cabal  
> build -v' and see how cabal tries to run gtk2hsC2hs.exe. Does it have

> to do with the .exe suffix?

I'm pretty sure that the error message is generated by gtk2hsC2hs, not
by the shell.  That is, if I cut-n-paste the gtk2hsC2hs commandline from
cabal build -v, I see exactly the same error message, but if I give
different arguments on the commandline, gtk2hsC2hs responds with
different errors, e.g.
    "Supply the header file followed by the binding file."
If the tool was not on the PATH, the error would instead be something
like
    gtk2hsC2hs: command not found

The actual commandline that fails is

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\GValue.hs
--precomp=dist\build\precompchs.bin glib-object.h
.\System\Glib\GValue.chs

Checking the filenames and directories that are mentioned, I see that
for instance
    C:\workspace\ext\ghc-6.12.1\base-4.2.0.0
does not exist.  The correct location would be
    C:\workspace\ext\ghc-6.12.1\lib\base-4.2.0.0

Is this an error in the .cabal file, or in the Setup.hs file, or maybe
even in the Cabal library perhaps?

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