Skip to content

Why is g++ necessary to compile GHC?

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?

Trac metadata
Trac field Value
Version 8.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information