Cabal problems with an executable containing c-sources

Isaac Jones ijones at
Fri Feb 18 11:50:42 EST 2005

Ross Paterson <ross at> writes:

> On Fri, Feb 18, 2005 at 12:43:44AM -0800, Isaac Jones wrote:
>> Einar Karttunen <ekarttun at> writes:
>> > The following case seems to be broken:
>> (snip executable containing c-sources)
>> This should now be fixed in the CVS and darcs repos, but for GHC only.
>> Mind if I snarf this test case for my regression test suite?
>> I can't work on the Hugs fix right now.  Ross, any help?
> This case already works for Hugs, if you follow the instructions in the
> documentation (under c-sources).

Here's the error I get when running the produced executable:

runhugs: Error occurred
ERROR ",tmp/lib/hugs/programs/tt/Main.hs" - Error while importing DLL "/home/ijones/usr/src/haskell/fptools/libraries/Cabal/tests/exeWithC/,tmp/lib/hugs/programs/tt/":
/home/ijones/usr/src/haskell/fptools/libraries/Cabal/tests/exeWithC/,tmp/lib/hugs/programs/tt/ cannot open shared object file: No such file or directory

#so I
% find . -name
% cp dist/build/programs/tt/ 
% ./,tmp/bin/tt 

And it works.  Looks like the install /copy targets are slightly broken.



More information about the Libraries mailing list