Cabal problems with an executable containing c-sources

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


Ross Paterson <ross at soi.city.ac.uk> writes:

> On Fri, Feb 18, 2005 at 12:43:44AM -0800, Isaac Jones wrote:
>> Einar Karttunen <ekarttun at cs.helsinki.fi> 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:

./,tmp/bin/tt
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/Main.so":
/home/ijones/usr/src/haskell/fptools/libraries/Cabal/tests/exeWithC/,tmp/lib/hugs/programs/tt/Main.so: cannot open shared object file: No such file or directory

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

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

peace,

  isaac


More information about the Libraries mailing list