Compiling with --enable-shared --disable-library-vanilla

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

Hi Peter,
On Thu, Nov 7, 2013 at 10:49 AM, Peter Simons
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:
[...]
Is anyone aware of a simple remedy for this issue? Has anyone else tried this before? Can Haskell libraries be built shared-only?
This is likely a bug in Cabal, please file a ticket on the bug tracker: https://github.com/haskell/cabal/issues/new -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
participants (2)
-
Mikhail Glushenkov
-
Peter Simons