Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#10099 closed bug (fixed)

cabal install broken with ghc 7.10.1-rc2

Reported by: trommler Owned by:
Priority: highest Milestone: 7.10.1
Component: Package system Version: 7.10.1-rc2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Runtime crash Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Trying to install a package with cabal-install and Cabal from ghc 7.10-rc2 consistently gives this error message (primitive is just an example):

peter@montebre:~> cabal install primitive
Resolving dependencies...
Configuring primitive-0.5.4.0...
cabal: Distribution/Client/Config.hs:(246,37)-(299,9): Missing field in record construction configProf

This is my package database:

peter@montebre:~> ghc-pkg list
/usr/lib64/ghc-7.10.0.20150123/package.conf.d
   Cabal-1.22.1.0
   HTTP-4000.2.19
   array-0.5.0.1
   base-4.8.0.0
   bin-package-db-0.0.0.0
   binary-0.7.3.0
   bytestring-0.10.6.0
   containers-0.5.6.2
   deepseq-1.4.0.0
   directory-1.2.2.0
   filepath-1.3.1.0
   ghc-7.10.0.20150123
   ghc-prim-0.3.1.0
   haskeline-0.7.2.0
   hoopl-3.10.0.2
   hpc-0.6.0.2
   integer-gmp-1.0.0.0
   mtl-2.2.1
   network-2.4.2.3
   old-locale-1.0.0.7
   old-time-1.1.0.3
   parsec-3.1.8
   pretty-1.1.2.0
   process-1.2.2.0
   random-1.0.1.1
   rts-1.0
   stm-2.4.2
   syb-0.4.4
   template-haskell-2.10.0.0
   terminfo-0.4.0.1
   text-1.2.0.4
   th-desugar-1.5
   th-lift-0.7
   time-1.5.0.1
   transformers-0.4.2.0
   unix-2.7.1.0
   xhtml-3000.2.1
   zlib-0.5.4.2

I updated only those packages (from their versions in Haskell Platform) that would not compile with 7.101-rc2.

I am setting this to highest as this issue would be very annoying for everyone.

Change History (8)

comment:1 Changed 3 years ago by jstolarek

I've run into the same problem this week but I assumed that I must have done something wrong with my installation and didn't have time to investigate further.

comment:2 Changed 3 years ago by George

Did you build 7.10-rc2 or install it from a binary?

I don't have this problem and have had none with cabal install. I installed from a binary.

cabal install primitive

Resolving dependencies... All the requested packages are already installed: primitive-0.5.4.0 Use --reinstall if you want to reinstall anyway.

$ ghc-pkg list /usr/local/lib/ghc-7.10.0.20150123/package.conf.d:

Cabal-1.22.1.0 array-0.5.0.1 base-4.8.0.0 bin-package-db-0.0.0.0 binary-0.7.3.0 rts-1.0 bytestring-0.10.6.0 containers-0.5.6.2 deepseq-1.4.0.0 directory-1.2.2.0 filepath-1.3.1.0 (ghc-7.10.0.20150123) ghc-prim-0.3.1.0 haskeline-0.7.2.0 hoopl-3.10.0.2 hpc-0.6.0.2 integer-gmp-1.0.0.0 pretty-1.1.2.0 process-1.2.2.0 template-haskell-2.10.0.0 terminfo-0.4.0.1 time-1.5.0.1 transformers-0.4.2.0 unix-2.7.1.0 xhtml-3000.2.1

/Users/gcolpitts/.ghc/x86_64-darwin-7.10.0.20150123/package.conf.d:

GLURaw-1.4.0.2 GLUT-2.6.0.1 Glob-0.7.5 MonadRandom-0.3.0.1 OpenGL-2.10.0.1 OpenGLRaw-2.0.0.0 QuickCheck-2.7.6 abstract-deque-0.3 abstract-par-0.3.3 aeson-0.8.0.2 ansi-terminal-0.6.2.1 ansi-wl-pprint-0.6.7.1 async-2.0.2 attoparsec-0.12.1.2 bifunctors-4.2 blaze-builder-0.3.3.4 bmp-1.2.5.2 cassava-0.4.2.1 cereal-0.4.1.1 cmdargs-0.10.12 colour-2.3.3 comonad-4.2.2 contravariant-1.2.0.1 cpphs-1.18.8 criterion-1.0.2.0 distributive-0.4.4 dlist-0.7.1 either-4.3.3 erf-2.0.0.0 exceptions-0.6.1 extra-1.0.1 extra-1.1 free-4.10.0.1 generic-deriving-1.7.0 hashable-1.2.3.1 haskell-src-exts-1.16.0.1 hastache-0.6.1 hlint-1.9.16 hmatrix-0.16.1.4 hscolour-1.20.3 ieee754-0.7.6 math-functions-0.1.5.2 monad-control-1.0.0.2 monad-par-0.3.4.7 monad-par-extras-0.3.3 mtl-2.2.1 mwc-random-0.13.3.0 nats-1 old-locale-1.0.0.7 old-time-1.1.0.3 optparse-applicative-0.11.0.1 parallel-3.2.0.6 parsec-3.1.8 polyparse-1.11 prelude-extras-0.4 primitive-0.5.4.0 profunctors-4.3.2 random-1.1 scientific-0.3.3.7 semigroupoids-4.2 semigroups-0.16.1 smartcheck-0.2.1 split-0.2.2 statistics-0.13.2.1 stm-2.4.4 storable-complex-0.2.2 syb-0.4.4 tagged-0.7.3 text-1.2.0.4 tf-random-0.5 timeit-1.0.0.0 transformers-base-0.4.3 transformers-compat-0.3.3.4 uniplate-1.6.12 unordered-containers-0.2.5.1 utf8-string-0.3.8 vector-0.10.12.2 vector-algorithms-0.6.0.3 vector-binary-instances-0.2.1.0 vector-th-unbox-0.2.1.2 void-0.7

ghc --info

[("Project name","The Glorious Glasgow Haskell Compilation System") ,("GCC extra via C opts"," -fwrapv") ,("C compiler command","/usr/bin/gcc") ,("C compiler flags"," -m64 -fno-stack-protector") ,("C compiler link flags"," -m64") ,("Haskell CPP command","/usr/bin/gcc") ,("Haskell CPP flags","-E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs ") ,("ld command","/usr/bin/ld") ,("ld flags"," -arch x86_64") ,("ld supports compact unwind","YES") ,("ld supports build-id","NO") ,("ld supports filelist","YES") ,("ld is GNU ld","NO") ,("ar command","/usr/bin/ar") ,("ar flags","clqs") ,("ar supports at file","NO") ,("touch command","touch") ,("dllwrap command","/bin/false") ,("windres command","/bin/false") ,("libtool command","libtool") ,("perl command","/usr/bin/perl") ,("target os","OSDarwin") ,("target arch","ArchX86_64") ,("target word size","8") ,("target has GNU nonexec stack","False") ,("target has .ident directive","True") ,("target has subsections via symbols","True") ,("Unregisterised","NO") ,("LLVM llc command","llc") ,("LLVM opt command","opt") ,("Project version","7.10.0.20150123") ,("Project Git commit id","174082ffeb69b2f9df19e7af7b63a331dd074145") ,("Booter version","7.6.3") ,("Stage","2") ,("Build platform","x86_64-apple-darwin") ,("Host platform","x86_64-apple-darwin") ,("Target platform","x86_64-apple-darwin") ,("Have interpreter","YES") ,("Object splitting supported","YES") ,("Have native code generator","YES") ,("Support SMP","YES") ,("Tables next to code","YES") ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn l_dyn thr_l_dyn") ,("Support dynamic-too","YES") ,("Support parallel --make","YES") ,("Support reexported-modules","YES") ,("Support thinning and renaming package flags","YES") ,("Uses package keys","YES") ,("Dynamic by default","NO") ,("GHC Dynamic","YES") ,("Leading underscore","YES") ,("Debug on","False") ,("LibDir","/usr/local/lib/ghc-7.10.0.20150123") ,("Global Package DB","/usr/local/lib/ghc-7.10.0.20150123/package.conf.d") ]

Last edited 3 years ago by George (previous) (diff)

comment:3 in reply to:  2 Changed 3 years ago by trommler

Replying to George:

Did you build 7.10-rc2 or install it from a binary?

I built ghc from the source tarball and then again with the resulting ghc. So my ghc was bootstrapped with ghc 7.10.1-rc2.

I don't have this problem and have had none with cabal install. I installed from a binary.

cabal install primitive

Resolving dependencies... All the requested packages are already installed: primitive-0.5.4.0 Use --reinstall if you want to reinstall anyway.

$ ghc-pkg list /usr/local/lib/ghc-7.10.0.20150123/package.conf.d: [...] /Users/gcolpitts/.ghc/x86_64-darwin-7.10.0.20150123/package.conf.d: [...]

primitive-0.5.4.0

You have primitive installed already, I don't.

Here is my ghc info:

$ ghc --info
 [("Project name","The Glorious Glasgow Haskell Compilation System")
 ,("GCC extra via C opts"," -fwrapv")
 ,("C compiler command","/usr/bin/gcc")
 ,("C compiler flags"," -fno-stack-protector")
 ,("C compiler link flags","")
 ,("Haskell CPP command","/usr/bin/gcc")
 ,("Haskell CPP flags","-E -undef -traditional ")
 ,("ld command","/usr/bin/ld")
 ,("ld flags","")
 ,("ld supports compact unwind","YES")
 ,("ld supports build-id","YES")
 ,("ld supports filelist","NO")
 ,("ld is GNU ld","YES")
 ,("ar command","/usr/bin/ar")
 ,("ar flags","q")
 ,("ar supports at file","YES")
 ,("touch command","touch")
 ,("dllwrap command","/bin/false")
 ,("windres command","/bin/false")
 ,("libtool command","libtool")
 ,("perl command","/usr/bin/perl")
 ,("target os","OSLinux")
 ,("target arch","ArchX86_64")
 ,("target word size","8")
 ,("target has GNU nonexec stack","True")
 ,("target has .ident directive","True")
 ,("target has subsections via symbols","False")
 ,("Unregisterised","NO")
 ,("LLVM llc command","/usr/bin/llc")
 ,("LLVM opt command","/usr/bin/opt")
 ,("Project version","7.10.0.20150123")
 ,("Project Git commit id","174082ffeb69b2f9df19e7af7b63a331dd074145")
 ,("Booter version","7.10.0.20150123")
 ,("Stage","2")
 ,("Build platform","x86_64-unknown-linux")
 ,("Host platform","x86_64-unknown-linux")
 ,("Target platform","x86_64-unknown-linux")
 ,("Have interpreter","YES")
 ,("Object splitting supported","YES")
 ,("Have native code generator","YES")
 ,("Support SMP","YES")
 ,("Tables next to code","YES")
 ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn l_dyn thr_l_dyn")
 ,("Support dynamic-too","YES")
 ,("Support parallel --make","YES")
 ,("Support reexported-modules","YES")
 ,("Support thinning and renaming package flags","YES")
 ,("Uses package keys","YES")
 ,("Dynamic by default","NO")
 ,("GHC Dynamic","YES")
 ,("Leading underscore","NO")
 ,("Debug on","False")
 ,("LibDir","/usr/lib64/ghc-7.10.0.20150123")
 ,("Global Package DB","/usr/lib64/ghc-7.10.0.20150123/package.conf.d")
 ]

comment:4 Changed 3 years ago by jstolarek

I also built 7.10.1-RC2 from source, although I did not bootstrap for the second time.

comment:5 Changed 3 years ago by jstolarek

I just installed GHC 7.10-RC2 on another machine and I have the same problem. This time I installed pre-built binaries (ghc-7.10.0.20150123-x86_64-unknown-linux-deb7.tar.bz2) using latest cabal:

$ cabal --version
cabal-install version 1.22.0.1
using version 1.22.1.0 of the Cabal library

$ cabal install primitive
Resolving dependencies...
Downloading primitive-0.5.4.0...
Configuring primitive-0.5.4.0...
cabal: Distribution/Client/Config.hs:(246,37)-(299,9): Missing field in record construction configProf

comment:6 Changed 3 years ago by ttuegel

This Cabal issue was fixed in 25f7f9a. 7.10.1-rc2 predates this patch, but this will need to be in the final 7.10.1 release.

comment:7 Changed 3 years ago by hvr

Resolution: fixed
Status: newclosed

the Cabal submodule was updated to 1.22.1.0 (via 00c971ef9dbd16e2201df3ac63f2a68c4b9c0ff0) and subsequently again to 1.22.1.1 (via fdb72839fbefc439ac729e01fcb98fa6bd6511cc) in GHC HEAD as well as ghc-7.10. Therefore I assume this issue is resolved...

comment:8 Changed 3 years ago by jstolarek

I just installed 7.10.1-RC3 with cabal-install from the Cabal repo (1.22 branch) and I can confirm this is fixed.

Note: See TracTickets for help on using tickets.