Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GHC 8.6.5 does not build on Darwin #66221

Closed
bdesham opened this issue Aug 6, 2019 · 1 comment · Fixed by #66310
Closed

GHC 8.6.5 does not build on Darwin #66221

bdesham opened this issue Aug 6, 2019 · 1 comment · Fixed by #66310
Labels
0.kind: bug 0.kind: regression Something that worked before working no longer 6.topic: darwin Running or building packages on Darwin 6.topic: haskell

Comments

@bdesham
Copy link
Contributor

bdesham commented Aug 6, 2019

Describe the bug

I’m trying to build the ghc package (currently at version 8.6.5) on Darwin but building fails with the error

Configuring ghc-prim-0.5.3...
ghc-cabal: Cannot find the program 'ld'. User-specified path
'/nix/store/fhhahhv5jdh6rvwz42b8a2rr955ll580-cctools-binutils-darwin-wrapper/bin/ld.gold'
does not refer to an executable and the program is not on the system path.

make[1]: *** [libraries/ghc-prim/ghc.mk:5: libraries/ghc-prim/dist-install/package-data.mk] Error 1
make: *** [Makefile:125: all] Error 2
builder for '/nix/store/c7dfl0k04fbw80ghrwcirpc6yq2f50s2-ghc-8.6.5.drv' failed with exit code 2

Full console output (warning: almost 2 MB)

To Reproduce

  1. cd .../my-clone-of-nixpkgs
  2. git checkout 0f6faf630ff (this is the exact revision I’m using; it’s the Nixpkgs master as of this writing)
  3. nix-build -A ghc

Metadata

  • system: "x86_64-darwin"
  • host os: Darwin 18.7.0, macOS 10.14.6
  • multi-user?: no
  • sandbox: no
  • version: nix-env (Nix) 2.2.2
  • channels(besham): "nixpkgs-19.09pre187222.002b853782e"
  • nixpkgs: /Users/besham/.nix-defexpr/channels/nixpkgs

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: ghc
@matthewbauer
Copy link
Member

This is most likely from 29f2f04

bdesham referenced this issue Aug 6, 2019
gold is known to speed up GHC builds considerably, saving up to many seconds
when linking large Haskell applications, so this patch configures all
non-binary GHC derivations to use gold.
@vcunat vcunat added 6.topic: darwin Running or building packages on Darwin 6.topic: haskell 0.kind: regression Something that worked before working no longer labels Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug 0.kind: regression Something that worked before working no longer 6.topic: darwin Running or building packages on Darwin 6.topic: haskell
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants