[GHC] #14724: ghc-8.2.2 configure script fail to extract gcc version correctly

#14724: ghc-8.2.2 configure script fail to extract gcc version correctly -------------------------------------+------------------------------------- Reporter: hyophyop | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.2 Keywords: | Operating System: MacOS X Architecture: x86_64 | Type of failure: Installing GHC (amd64) | failed Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- In GHC's configure script, there's a variable $fp_cv_gcc_version which contains gcc version by running one-line bash code. {{{ fp_cv_gcc_version="`$CC -v 2>&1 | grep 'version ' | sed -e 's/.*version [^0-9]*\([0-9.]*\).*/\1/g'`" }}} Following is gcc version info of my system. {{{ Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin17.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin Found CUDA installation: /usr/local/cuda, version 7.5 }}} Expected value of fp_cv_gcc_version is 9.0.0. But CUDA version is extracted unexpectedly and attached to version info resulting buggy `mk/config.mk` like following. {{{ GccVersion = 9.0.0 7.5 ifeq "$(phase)" "0" CrossCompilePrefix = ... }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14724 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14724: ghc-8.2.2 configure script fail to extract gcc version correctly -------------------------------------+------------------------------------- Reporter: hyophyop | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: => 8.2.1 Comment: I believe this should be resolved with 71a423562a555ef0805bba546a3a42d437803842. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14724#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14724: ghc-8.2.2 configure script fail to extract gcc version correctly -------------------------------------+------------------------------------- Reporter: hyophyop | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.4.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: Operating System: MacOS X | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: 8.2.1 => 8.4.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14724#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14724: ghc-8.2.2 configure script fail to extract gcc version correctly -------------------------------------+------------------------------------- Reporter: hyophyop | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.4.1 Component: Compiler | Version: 8.2.2 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: x86_64 Type of failure: Installing GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14724#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC