making 7.10.1

Sergei Meshveliani mechvel at botik.ru
Wed May 20 15:41:31 UTC 2015


On Wed, 2015-05-20 at 08:33 -0400, Ben Gamari wrote:
> Sergei Meshveliani <mechvel at botik.ru> 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
  




More information about the Glasgow-haskell-users mailing list