holumbus error message -- unexpected package db stack

Hello all, I want to try out Holumbus packages, but found that they don't build when left to cabal-install. So I went to the holumbus site and did the git of the latest source...but it still wouldn't build. Surprisingly, one of the errors was that there System.IO did not export a method utf8, but alas, utf8-prelude and utf8-string are both installed. So I went into this source code tree and attempted to make minor alterations. First, of the script is the distribution package (of the three packages), and cabal wanted less than the most recent hxt package as a maximum, so I dropped that limit. This gave me a buildable make of the code (make just calls Setup for each step) but in the "make install" I get: localhost:/home/roderick/Source/hs/src/distribution # make install Installing library in /usr/local/lib/Holumbus-Distribution-0.0.2.0/ghc-6.10.4 Installing executable(s) in /usr/local/bin Registering Holumbus-Distribution-0.0.2.0... Setup.hs: internal error: unexpected package db stack make: *** [install] Error 1 So, my question is "What is the 'unexpected package db stack' caused by?" Does this give me any hints about the actual problem? Roderick

This gave me a buildable make of the code (make just calls Setup for each step) but in the "make install" I get: localhost:/home/roderick/Source/hs/src/distribution # make install Installing library in /usr/local/lib/Holumbus-Distribution-0.0.2.0/ghc-6.10.4 Installing executable(s) in /usr/local/bin Registering Holumbus-Distribution-0.0.2.0... Setup.hs: internal error: unexpected package db stack make: *** [install] Error 1
So, my question is "What is the 'unexpected package db stack' caused by?" Does this give me any hints about the actual problem?
Is cabal using a custom GHC package database? You might find this illuminating: http://hackage.haskell.org/trac/hackage/ticket/731 -- Jonathan Daugherty

Date: Fri, 3 Sep 2010 21:31:53 -0700 Subject: Re: [Haskell-cafe] holumbus error message -- unexpected package db stack From: drcygnus@gmail.com To: haskell-cafe@haskell.org Is cabal using a custom GHC package database? You might find this illuminating:
http://hackage.haskell.org/trac/hackage/ticket/731
-- Jonathan Daugherty
I don't know what else to check for to confirm/deny this question other than doing a `grep -r "package-db" *` in the distribution source, which simply returned that the binary file Setup contained it...that I suppose is just from the requirement in Setup.hs for "Distribution.Simple". Other than that, I have not specified ANY database specific parameters. I have however installed the cabal package HDBC-mysql ... probably unrelated to the problem??? So, I have to say, the link really didn't provide me any helpful information or hints about what I might have done wrong...sorry. What else could I check for? Roderick Ford

Ok, figured it out, based on your link, Jonathan, I thought of just running: make clean ./Setup configure ./Setup build ./Setup install WHICH of course imports Distribution.Simple, whereas calling "make blah" on the Makefile will not do the import of Distribution.Simple Anyway, THANKS for the link ... it DID help :) Cheers, Roderick Ford
This gave me a buildable make of the code (make just calls Setup for each step) but in the "make install" I get: localhost:/home/roderick/Source/hs/src/distribution # make install Installing library in /usr/local/lib/Holumbus-Distribution-0.0.2.0/ghc-6.10.4 Installing executable(s) in /usr/local/bin Registering Holumbus-Distribution-0.0.2.0... Setup.hs: internal error: unexpected package db stack make: *** [install] Error 1
So, my question is "What is the 'unexpected package db stack' caused by?" Does this give me any hints about the actual problem?
Is cabal using a custom GHC package database? You might find this illuminating:
http://hackage.haskell.org/trac/hackage/ticket/731
-- Jonathan Daugherty

Ok, figured it out, based on your link, Jonathan, I thought of just running: make clean ./Setup configure ./Setup build ./Setup install WHICH of course imports Distribution.Simple, whereas calling "make blah" on the Makefile will not do the import of Distribution.Simple
I'm glad the link helped. The error message you're seeing is actually in several places in the source. In the case where I've encountered this message, it's generated at the point where the Setup program is about to be compiled by cabal-install for a package with Build-Type: Custom; in this case, extra arguments were passed to cabal to set the GHC package database location, but those arguments failed a sanity check and resulted in the error message you saw. However, if you compile the Setup program by hand and bypass the check, you can still run it with whatever arguments you want and you won't see the error. The workaround I've used is to run "cabal configure" without the extra arguments. This will build the Setup program and then the Setup program can be run with whatever package-database-related arguments caused the error originally. So you may find that you see the error only when there is no preexisting dist/setup/setup program. But, again, I'd want to see how cabal is being invoked by the Makefile. -- Jonathan Daugherty
participants (2)
-
Jonathan Daugherty
-
Roderick Ford