[GHC] #14493: Why is g++ necessary to compile GHC?

#14493: Why is g++ necessary to compile GHC? -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Simonpj noted after a system upgrade that GHC failed to build unless `g++` is installed. `libffi`'s `configure` otherwise failed with {{{ configure:13086: checking how to run the C++ preprocessor configure:13113: gcc -E conftest.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory }}} Why is this necessary? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14493 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14493: Why is g++ necessary to compile GHC? -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | 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: => wontfix Comment: Right after I hit "submit" the reason became clear: `libffi` is explicitly looking for a C++ preprocessor. Consequently it uses `.cpp` as the extension for the source file it feeds `gcc`. This compels `gcc` to go looking for a C++ compiler. It looks like we will just need to document the `g++` requirement. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14493#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14493: Why is g++ necessary to compile GHC? -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): But does libffi really NEED a C++ preprocessor? Or is it accidental? If deliberate, then yes, let's just document it. Even if accidental, perhpas it's in a code base we don't control in which case we are stuck with it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14493#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14493: Why is g++ necessary to compile GHC? -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: wontfix | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I can't speak to whether it needs a C++ preprocessor. That being said, it is indeed a codebase which we have no control over. Moreover, it is sadly rather under-maintained so getting them to drop the dependency if it's not needed will be difficult. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14493#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC