Compiling with --enable-shared --disable-library-vanilla
Peter Simons
simons at cryp.to
Thu Nov 7 09:49:50 UTC 2013
Hi guys,
I'm experimenting with shared library support for Haskell in NixOS. So far,
--enable-shared works great, but it comes at the cost of doubling the build
times. So I tried to disable building of static libraries to fix that:
$ cabal configure --enable-shared --disable-library-vanilla
Resolving dependencies...
Configuring funcmp-1.8...
But these build won't succeed, because the in-place registration procedure
can't find any *.hi files:
$ cabal build ; echo $?
Building funcmp-1.8...
Preprocessing library funcmp-1.8...
In-place registering funcmp-1.8...
cabal: funcmp-1.8: file FMP.hi is missing (use --force to override)
funcmp-1.8: file FMP/Canvas.hi is missing (use --force to override)
funcmp-1.8: file FMP/Color.hi is missing (use --force to override)
funcmp-1.8: file FMP/Core.hi is missing (use --force to override)
funcmp-1.8: file FMP/File.hi is missing (use --force to override)
funcmp-1.8: file FMP/Frames.hi is missing (use --force to override)
funcmp-1.8: file FMP/Matrix.hi is missing (use --force to override)
funcmp-1.8: file FMP/PP.hi is missing (use --force to override)
funcmp-1.8: file FMP/Picture.hi is missing (use --force to override)
funcmp-1.8: file FMP/RedBlack.hi is missing (use --force to override)
funcmp-1.8: file FMP/Resolve.hi is missing (use --force to override)
funcmp-1.8: file FMP/Symbols.hi is missing (use --force to override)
funcmp-1.8: file FMP/Syntax.hi is missing (use --force to override)
funcmp-1.8: file FMP/Term.hi is missing (use --force to override)
funcmp-1.8: file FMP/Tree.hi is missing (use --force to override)
funcmp-1.8: file FMP/Turtle.hi is missing (use --force to override)
funcmp-1.8: file FMP/Types.hi is missing (use --force to override)
funcmp-1.8: file Paths_funcmp.hi is missing (use --force to override)
funcmp-1.8: cannot find libHSfuncmp-1.8.a on library path (use --force to
override)
1
Is anyone aware of a simple remedy for this issue? Has anyone else tried
this before? Can Haskell libraries be built shared-only?
Best regards,
Peter
More information about the cabal-devel
mailing list