[GHC] #7846: GHC 7.7 cannot link primitives
#7846: GHC 7.7 cannot link primitives -----------------------------------------+---------------------------------- Reporter: kazu-yamamoto | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Linux | Architecture: x86_64 (amd64) Failure: Compile-time performance bug | Blockedby: Blocking: | Related: -----------------------------------------+---------------------------------- When I tries to install the vector library on Linux, GHC 7.7 cannot find a necessary primitive library: {{{ % cabal install vector ... [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package primitive-0.5.0.1 ... <command line>: can't load .so/.DLL for: libHSprimitive-0.5.0.1.so (libHSprimitive-0.5.0.1.so: cannot open shared object file: No such file or directory) cabal: Error: some packages failed to install: vector-0.10.0.1 failed during the building phase. The exception was: ExitFailure 1 }}} Note that static library of primitive is installed but dynamic one is not. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7846> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7846: GHC 7.7 cannot link primitives -----------------------------------------+---------------------------------- Reporter: kazu-yamamoto | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Linux | Architecture: x86_64 (amd64) Failure: Compile-time performance bug | Blockedby: Blocking: | Related: -----------------------------------------+---------------------------------- Changes (by PHO): * cc: pho@… (added) -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7846#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7846: GHC 7.7 cannot link primitives -----------------------------------------+---------------------------------- Reporter: kazu-yamamoto | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Linux | Architecture: x86_64 (amd64) Failure: Compile-time performance bug | Blockedby: Blocking: | Related: -----------------------------------------+---------------------------------- Comment(by kazu-yamamoto): FYI. If I do {{{ % cabal install --enable-shared primitives }}} , I can install the vector libraries. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7846#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7846: GHC 7.7 cannot link primitives -----------------------------------------+---------------------------------- Reporter: kazu-yamamoto | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.7 | Keywords: Os: Linux | Architecture: x86_64 (amd64) Failure: Compile-time performance bug | Blockedby: Blocking: | Related: -----------------------------------------+---------------------------------- Comment(by kazu-yamamoto): After adding mk/build.mk with the following contents, I don't have to install vector by hand. {{{ InstallExtraPackages = YES }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7846#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7846: GHC 7.7 cannot link primitives -------------------------------------------+-------------------------------- Reporter: kazu-yamamoto | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Os: Linux | Architecture: x86_64 (amd64) Failure: Compile-time performance bug | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------------------+-------------------------------- Changes (by igloo): * status: new => closed * difficulty: => Unknown * resolution: => fixed Comment: Thanks for the report. I've made Cabal build the shared library by default (although note that you'll need to build cabal-install against the HEAD Cabal in order for the 'cabal' program to do so). {{{ commit 8743f4ef5937f050458186058057f0e538d1d37b Author: Ian Lynagh <ian@well-typed.com> Date: Thu Apr 25 17:52:56 2013 +0100 Build shared libraries by default when building for a dynamic ghc; fixes #7846 GHCi will need a shared library, so we build it by default }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7846#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC