emerge of dev-haskell/cabal-1.8.0.6-r1 fails while registering Cabal-1.8.0.6 because of bad arguments to ghc-pkg Reproducible: Always Steps to Reproduce: 1. emerge -av1 =dev-haskell/cabal-1.8.0.6-r1 Actual Results: [57 of 58] Compiling Distribution.Simple.UserHooks ( Distribution/Simple/UserHooks.hs, dist/build/Distribution/Simple/UserHooks.o ) [58 of 58] Compiling Distribution.Simple ( Distribution/Simple.hs, dist/build/Distribution/Simple.o ) Registering Cabal-1.8.0.6... setup: ghc-pkg: unrecognized option `--no-user-package-conf' Usage: ghc-pkg register {filename | -} Register the package using the specified installed package description. The syntax for the latter is given in the ghc-pkg documentation. ghc-pkg update {filename | -} Register the package, overwriting any other package with the same name. ghc-pkg unregister {pkg-id} Unregister the specified package. ghc-pkg expose {pkg-id} Expose the specified package. ghc-pkg hide {pkg-id} Hide the specified package. ghc-pkg list [pkg] List registered packages in the global database, and also the user database if --user is given. If a package name is given all the registered versions will be listed in ascending order. Accepts the --simple-output flag. ghc-pkg latest pkg Prints the highest registered version of a package. ghc-pkg check Check the consistency of package depenencies and list broken packages. Accepts the --simple-output flag. ghc-pkg describe {pkg-id} Give the registered description for the specified package. The description is returned in precisely the syntax required by ghc-pkg register. ghc-pkg field {pkg-id} {field} Extract the specified field of the package description for the specified package. The following optional flags are also accepted: --user use the current user's package database --global (default) use the global package database -f FILE --package-conf=FILE act upon specified package config file (only) --global-conf=FILE location of the global package config --force ignore missing dependencies, directories, and libraries --force-files ignore missing directories and libraries only -g --auto-ghci-libs automatically build libs for GHCi (with register) -? --help display this help and exit -V --version output version information and exit --simple-output print output in easy-to-parse format for some commands --names-only only print package names, not versions; can only be used with list --simple-output * ERROR: dev-haskell/cabal-1.8.0.6-r1 failed: * setup build failed * * Call stack: * ebuild.sh, line 47: Called src_compile * environment, line 3107: Called cabal-build * environment, line 463: Called die * The specific snippet of code: * ./setup build || die "setup build failed" * * If you need support, post the output of 'emerge --info =dev-haskell/cabal-1.8.0.6-r1', * the complete build log and the output of 'emerge -pqv =dev-haskell/cabal-1.8.0.6-r1'. * The complete build log is located at '/var/log/portage/dev-haskell:cabal-1.8.0.6-r1:20100628-192843.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/cabal-1.8.0.6-r1/temp/environment'. * S: '/var/tmp/portage/dev-haskell/cabal-1.8.0.6-r1/work/Cabal-1.8.0.6' >>> Failed to emerge dev-haskell/cabal-1.8.0.6-r1, Log file: >>> '/var/log/portage/dev-haskell:cabal-1.8.0.6-r1:20100628-192843.log'
Which version of GHC are you using? It appears to be a rather old one (and may in fact be a bug in upstream as we don't use --no-user-package-conf anywhere explicitly that I can find, which is strange since Duncan Coutts tests Cabal against versions of GHC going back as far as 6.2 if memory serves).
(In reply to comment #1) > Which version of GHC are you using? It appears to be a rather old one (and may > in fact be a bug in upstream as we don't use --no-user-package-conf anywhere > explicitly that I can find, which is strange since Duncan Coutts tests Cabal > against versions of GHC going back as far as 6.2 if memory serves). > dev-haskell/ghc-6.8.2-r1
Please attach the full output of the build. Also paste the output of ghc -V ghc-pkg -V
Created attachment 237293 [details] Build log Added build log
(In reply to comment #3) > Also paste the output of > > ghc -V > ghc-pkg -V > % ghc -V The Glorious Glasgow Haskell Compilation System, version 6.8.2 % ghc-pkg -V GHC package manager version 6.8.2
confirm, I am having the same problem. ghc -V The Glorious Glasgow Haskell Compilation System, version 6.8.2 ghc-pkg -V GHC package manager version 6.8.2
(In reply to comment #6) > confirm, I am having the same problem. > > ghc -V > The Glorious Glasgow Haskell Compilation System, version 6.8.2 > > ghc-pkg -V > GHC package manager version 6.8.2 > same bug too :(
> CPV: dev-haskell/cabal-1.8.0.6-r1 > REPO: funtoo dev-haskell/cabal-1.8.0.6-r1 is marked as ~arch (unstable keyword) while ghc-6.8.2 is arch (stable), so it's not a high priority bug for us. If upstream will fix it I'll happily update it in tree.
Main upstream branch even got the patch: Fri May 21 07:10:48 PDT 2010 Duncan Coutts <duncan@haskell.org> * Fix building packages with ghc-6.8 or older M ./Distribution/Simple/Program/HcPkg.hs -2 +13 View patch online: http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=cabal;a=darcs_commitdiff;h=20100521141048-adfee-8f786193d7fef17d11f7d51ebaa624e57f2429cc.gz It is need to be ported to 1.8 branch
ghc-6.12.3 is stable on most of arches (bug #338652). It should fix the problem. As soon as it will go stable on ppc and ppc64 we will remove ghc-6.8 support from portage tree.