Opened 15 months ago

Closed 13 months ago

Last modified 4 months ago

#14526 closed bug (fixed)

GHC fails to configure on MacOS if Cuda is installed

Reported by: nehal Owned by:
Priority: normal Milestone: 8.4.1
Component: Build System (make) Version: 8.0.2
Keywords: Cuda Cc:
Operating System: MacOS X Architecture: x86_64 (amd64)
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:



I had the following issue trying to build ghc (indirectly via stack)

[error] Running /usr/bin/make install in directory /Users/nehal/.stack/programs/x86_64-osx/ghc-8.0.2.temp/ghc-8.0.2/ exited with ExitFailure 2

mk/ *** missing separator.  Stop.

2017-10-16 07:16:01.831719: [error]
Error: Error encountered while installing GHC with
         make install
         run in /Users/nehal/.stack/programs/x86_64-osx/ghc-8.0.2.temp/ghc-8.0.2/

Here is the line from mk/

519  WhatGccIsCalled       = /usr/bin/gcc
520  GccVersion            = 9.0.0
521  8.0
522  ifeq "$(phase)" "0" 

output from gcc:

nehal$ gcc -v
Configured with: --prefix=/Applications/ --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/
Found CUDA installation: /usr/local/cuda, version 8.0

It looks like the version detection is getting confused by the cuda installation (and so is thinking the version is something like "9.0.0\n8.0")

This could be something for further upstream (e.g. autotools mainainters), but I'm just rebooting my "try to grok Haskell" efforts, so I am going to take the lazy approach and report it here....

Thanks for ghc!

(downstream bug report is here: -- two others have hit this in the past month or so)

Change History (4)

comment:1 Changed 13 months ago by bgamari

Milestone: 8.4.1
Resolution: fixed
Status: newclosed

I believe this should be resolved with 71a423562a555ef0805bba546a3a42d437803842.

comment:2 Changed 13 months ago by bgamari


comment:3 Changed 13 months ago by bgamari


comment:4 Changed 4 months ago by bgamari

Component: Build SystemBuild System (make)

The new Hadrian build system has been merged. Relabeling the tickets concerning the legacy make build system to prevent confusion.

Note: See TracTickets for help on using tickets.