
People, I am trying to `make' ghc-7.10.1 from source by ghc-7.8.3 on Debian Linux. I command
./configure --prefix=/home/mechvel/haskell/ghc/7.10.1/inst0
make >& make.log
The former command seems successful: ... #define HAVE_EVENTFD 1 #define CC_SUPPORTS_TLS 1 configure: exit 0 The latter command reports --------------------------------------- ... ... checking whether to build static libraries... yes checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/home/mechvel/haskell/ghc/7.10.1/libffi/build/x86_64-unkn\ own-linux-gnu': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details --------------------------------------- And I do not find in config.log anything suspicious about cpp. config.log does have several `error' messages, like, say conftest.c:9:28: error: ac_nonexistent.h: No such file or directory But, probably, they are harmless. Please, how to fix? ------ Sergei

Sergei Meshveliani
People, I am trying to `make' ghc-7.10.1 from source by ghc-7.8.3 on Debian Linux. I command
./configure --prefix=/home/mechvel/haskell/ghc/7.10.1/inst0
make >& make.log
The former command seems successful: ... #define HAVE_EVENTFD 1 #define CC_SUPPORTS_TLS 1
configure: exit 0
The latter command reports
--------------------------------------- ... ... checking whether to build static libraries... yes checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/home/mechvel/haskell/ghc/7.10.1/libffi/build/x86_64-unkn\ own-linux-gnu': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details ---------------------------------------
What does `which cpp` output? I would expect to find it in `/usr/bin`, not `/lib`. Are you certain you have Debian's `build-essential` package installed? Cheers, - Ben

On Wed, 2015-05-20 at 08:33 -0400, Ben Gamari wrote:
Sergei Meshveliani
writes: People, I am trying to `make' ghc-7.10.1 from source by ghc-7.8.3 on Debian Linux. I command
./configure --prefix=/home/mechvel/haskell/ghc/7.10.1/inst0
make >& make.log
The former command seems successful: ... #define HAVE_EVENTFD 1 #define CC_SUPPORTS_TLS 1
configure: exit 0
The latter command reports
--------------------------------------- ... ... checking whether to build static libraries... yes checking how to run the C++ preprocessor... /lib/cpp configure: error: in `/home/mechvel/haskell/ghc/7.10.1/libffi/build/x86_64-unkn\ own-linux-gnu': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details ---------------------------------------
What does `which cpp` output? I would expect to find it in `/usr/bin`, not `/lib`. Are you certain you have Debian's `build-essential` package installed?
cpp is indeed in usr/bin/. My colleague (who knows more of Linux) has discovered that this fail is due to that g++ is absent for the used gcc-4.4.5 version. Installing this g++ version makes this `make' successful. Thanks, ------ Sergei
participants (2)
-
Ben Gamari
-
Sergei Meshveliani