[GHC] #11423: GHC 8.0-rc1's linker does not work in OSX

#11423: GHC 8.0-rc1's linker does not work in OSX ----------------------------------------+--------------------------------- Reporter: danilo2 | Owner: Type: bug | Status: new Priority: highest | Milestone: Component: Compiler | Version: 8.0.1-rc1 Keywords: | Operating System: MacOS X Architecture: Unknown/Multiple | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ----------------------------------------+--------------------------------- Hello! When I try to run `cabal install data-default` (it is just a very small library) I get the following output using GHC 8.0-rc1: {{{ cabal install data-default Resolving dependencies... Notice: installing into a sandbox located at /Users/<user>/dev/hs/env/default8/.cabal-sandbox Configuring data-default-class-0.0.1... Configuring dlist-0.7.1.2... Configuring old-locale-1.0.0.7... Failed to install data-default-class-0.0.1 Build log ( /Users/<user>/dev/hs/env/default8/.cabal-sandbox/logs/data- default-class-0.0.1.log ): Failed to install dlist-0.7.1.2 Build log ( /Users/<user>/dev/hs/env/default8/.cabal- sandbox/logs/dlist-0.7.1.2.log ): Failed to install old-locale-1.0.0.7 Build log ( /Users/<user>/dev/hs/env/default8/.cabal-sandbox/logs/old- locale-1.0.0.7.log ): cabal: Error: some packages failed to install: data-default-0.5.3 depends on old-locale-1.0.0.7 which failed to install. data-default-class-0.0.1 failed during the configure step. The exception was: user error ('/opt/ghc/8.0-rc1/bin/ghc' exited with an error: ld: library not found for -lgmp clang: error: linker command failed with exit code 1 (use -v to see invocation) `gcc' failed in phase `Linker'. (Exit code: 1) ) data-default-instances-base-0.0.1 depends on data-default-class-0.0.1 which failed to install. data-default-instances-containers-0.0.1 depends on data-default- class-0.0.1 which failed to install. data-default-instances-dlist-0.0.1 depends on dlist-0.7.1.2 which failed to install. data-default-instances-old-locale-0.0.1 depends on old-locale-1.0.0.7 which failed to install. dlist-0.7.1.2 failed during the configure step. The exception was: user error ('/opt/ghc/8.0-rc1/bin/ghc' exited with an error: ld: library not found for -lgmp clang: error: linker command failed with exit code 1 (use -v to see invocation) `gcc' failed in phase `Linker'. (Exit code: 1) ) old-locale-1.0.0.7 failed during the configure step. The exception was: user error ('/opt/ghc/8.0-rc1/bin/ghc' exited with an error: ld: library not found for -lgmp clang: error: linker command failed with exit code 1 (use -v to see invocation) `gcc' failed in phase `Linker'. (Exit code: 1) ) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11423 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11423: GHC 8.0-rc1's linker does not work in OSX ---------------------------------+---------------------------------------- Reporter: danilo2 | Owner: Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * milestone: => 8.0.1 Comment: Hrm, indeed this was due to out-of-date [https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/MacOSX|build instructions] on the Wiki, resulting in a build that was dynamically linked against `libgmp`. I've fixed the instructions but haven't yet had time to do another build. I'll try to get this done today. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11423#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11423: GHC 8.0-rc1's linker does not work in OSX ---------------------------------+---------------------------------------- Reporter: danilo2 | Owner: Type: bug | Status: closed Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 8.0.1-rc1 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed Comment: I have pushed out a [http://downloads.haskell.org/~ghc/8.0.1-rc1/ghc-8.0.0b.20160111-x86_64 -apple-darwin.tar.xz|new] binary distribution with a correctly-linked `libgmp`. Closing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11423#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC