[GHC] #10099: cabal install broken with ghc 7.10.1-rc2

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Package | Version: 7.10.1-rc2 system | Operating System: Unknown/Multiple Keywords: | Type of failure: Runtime crash Architecture: | Blocked By: Unknown/Multiple | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Package system | Version: 7.10.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime crash | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Package system | Version: 7.10.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime crash | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by George): I don't have this problem and have had none with cabal install 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 --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") ] -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Package system | Version: 7.10.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime crash | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by trommler): Replying to [comment:2 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") ] }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Package system | Version: 7.10.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime crash | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by jstolarek): I also built 7.10.1-RC2 from source, although I did not bootstrap for the second time. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Package system | Version: 7.10.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime crash | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (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 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.10.1 Component: Package system | Version: 7.10.1-rc2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime crash | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by ttuegel): This Cabal issue was fixed in [https://github.com/haskell/cabal/commit/25f7f9a1389686e3d5083ab36fa90f59ccaa... 25f7f9a]. 7.10.1-rc2 predates this patch, but this will need to be in the final 7.10.1 release. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.10.1 Component: Package system | Version: 7.10.1-rc2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime crash | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by hvr): * status: new => closed * resolution: => fixed Comment: 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... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10099: cabal install broken with ghc 7.10.1-rc2 -------------------------------------+------------------------------------- Reporter: trommler | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.10.1 Component: Package system | Version: 7.10.1-rc2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime crash | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10099#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC