[Haskell-cafe] Build dependency problem with bytestring.

Jon Strait jstrait at moonloop.net
Fri Mar 7 03:59:54 EST 2008

Don Stewart wrote:
> jstrait:
>> Hi all,
>> I'm upgrading HAppS from my 0.9.2 to the current in Hackage.  
>> Some HAppS components have built and installed (IxSet and Util).  
>> Halfway through the HAppS-State build, the GHC runtime linker gives a 
>> fatal error on finding a duplicate definition for symbol fps_minimum 
>> while loading bytestring after having already loaded bytestring 
>>  From trial and error, I'm guessing that HAppS-State needs 
>> but one of its build dependencies was built with   
>> Using GHC 6.8.2 Linux here.
>> Any suggestions on how best to currently approach this situation?
>> .
> you need to uninstall your happs build, uninstall bytestring,
> and start over, so all packages link against only.
> Cheers,
>   Don
Thanks for the response, Don.  I ended up unregistering and rebuilding 
many more packages against bytestring that had previously been 
built against  However, GHC itself had been built with 
bytestring, and was showing up as broken in the package 
listing.  So, when I was done fighting the missing dependency errors, I 
just reinstalled bytestring and let the rest be, for now.

Another issue I had, and I don't think this is the intended behavior of 
Cabal, is that when using 'cabal install --global' as root, lib files 
from the package would be placed under the root's own .cabal/lib/ 
directory.  So, as a different user, I would be unable to access those 
lib files if they were needed for my own local build.  I had to add the 
 '--libdir=/usr/lib/ghc-6.8.2/lib' on install, something I thought 
should have been implicit when using the --global option.


More information about the Haskell-Cafe mailing list