[Haskell-cafe] can't build module with ffi 'wrapper' by cabal (or
ghc): unknown symbol
Lemmih
lemmih at gmail.com
Tue Jul 5 09:55:09 EDT 2005
On 7/4/05, Evgeny Chukreev <l at toril.ru> wrote:
> On Wed, 29 Jun 2005 22:05:49 +0400
> /Evgeny/ /Chukreev/ <l at toril.ru> wrote me:
>
> EC> gcc src/Codec/Mhash_stub.c -o ...
> EC> /usr/bin/ar qv dist/build/libHSHMhash-0.1.a dist/build/src/Codec/Mhash.o
> EC> /usr/bin/ar: creating dist/build/libHSHMhash-0.1.a
> EC> a - dist/build/src/Codec/Mhash.o
> (why mhash_stub.o did not archived?)
>
> Does no answer to my question mean that there is no-one who knows what kind of bug
> it is (ghc/cabal/mine) or it is the fact that nobody cares (even the
> developers of ghc/cabal)?
>
> Without answer I can't continue developing that wrapper for mhash library.
The problem lies in GHC.
$fptools/ghc/compiler/main/DriverPipeline.hs:514 to be exact.
You can link 'dist/build/WrapperMod.o' to
'dist/build/Your/Hierarchy/WrapperMod.o' as a dirty fix. Perhaps
copying it after builds with a Cabal hook would be cleaner.
--
Friendly,
Lemmih
More information about the Haskell-Cafe
mailing list