[GHC] #14526: GHC fails to configure on MacOS if Cuda is installed

GHC ghc-devs at haskell.org
Sun Nov 26 01:57:14 UTC 2017


#14526: GHC fails to configure on MacOS if Cuda is installed
-------------------------------------+-------------------------------------
           Reporter:  nehal          |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Build System   |           Version:  8.0.2
           Keywords:  Cuda           |  Operating System:  MacOS X
       Architecture:  x86_64         |   Type of failure:  Building GHC
  (amd64)                            |  failed
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 Hello,

 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/config.mk:521: *** missing separator.  Stop.

 @(Stack/Setup.hs:991:21)
 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/config.mk:521`:

 {{{
 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/Xcode.app/Contents/Developer/usr
 --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/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 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:
 https://github.com/commercialhaskell/stack/issues/1582#issuecomment-346917482
 -- two others have hit this in the past month or so)

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14526>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list