Unable to build 7.10.1 RC1 on Jessie

2015-01-25 Thread harry
I'm trying to build 7.10.1 RC on Debian Jessie. I get an error:

configure: error: in
`/ghc-7.10.0.20141222/libffi/build/x86_64-unknown-linux-gnu':
configure: error: C++ preprocessor /lib/cpp fails sanity check

config.log shows:

configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME libffi
| #define PACKAGE_TARNAME libffi
| #define PACKAGE_VERSION 3.1
| #define PACKAGE_STRING libffi 3.1
| #define PACKAGE_BUGREPORT http://github.com/atgreen/libffi/issues;
| #define PACKAGE_URL 
| #define PACKAGE libffi
| #define VERSION 3.1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR .libs/
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include limits.h
| #else
| # include assert.h
| #endif
|Syntax error
configure:12860: error: in
`/ghc-7.10.0.20141222/libffi/build/x86_64-unknown-linux-gnu':
configure:12862: error: C++ preprocessor /lib/cpp fails sanity check

This can be reproduced by running the following commands in the
debian:jessie docker image:

apt-get update
apt-get install ncurses-dev curl gcc ghc make libgmp-dev xz-utils
curl
http://downloads.haskell.org/~ghc/7.10.1-rc1/ghc-7.10.0.20141222-src.tar.xz
| tar xJ
cd ghc-*
./configure
make

Any suggestions for someone who knows nothing about c or cpp?



--
View this message in context: 
http://haskell.1045720.n5.nabble.com/Unable-to-build-7-10-1-RC1-on-Jessie-tp5764254.html
Sent from the Haskell - Glasgow-haskell-users mailing list archive at 
Nabble.com.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Unable to build 7.10.1 RC1 on Jessie

2015-01-25 Thread Sven Panne
2015-01-25 11:18 GMT+01:00 harry volderm...@hotmail.com:
 [..] This can be reproduced by running the following commands in the
 debian:jessie docker image:

 apt-get update
 apt-get install ncurses-dev curl gcc ghc make libgmp-dev xz-utils
 curl
 http://downloads.haskell.org/~ghc/7.10.1-rc1/ghc-7.10.0.20141222-src.tar.xz
 | tar xJ
 cd ghc-*
 ./configure
 make

 Any suggestions for someone who knows nothing about c or cpp?

Perhaps there is no C++ compiler installed? Try to add g++ to your
apt-get install command line.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Unable to build 7.10.1 RC1 on Jessie

2015-01-25 Thread harry
Thank you Sven and Brandon for your help. I'm now able to build 7.10.



--
View this message in context: 
http://haskell.1045720.n5.nabble.com/Unable-to-build-7-10-1-RC1-on-Jessie-tp5764254p5764259.html
Sent from the Haskell - Glasgow-haskell-users mailing list archive at 
Nabble.com.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Unable to build 7.10.1 RC1 on Jessie

2015-01-25 Thread Brandon Allbery
On Sun, Jan 25, 2015 at 9:43 AM, harry volderm...@hotmail.com wrote:

 According to https://ghc.haskell.org/trac/ghc/ticket/9720

 , g++ isn't even
 used for building. and passing in gcc for CXX seems to work fine. Wonder
 if that's changed.


It may be that some minimal amount of C++ support was added just to make it
easier to link C++-generated objects into a Haskell program, but autoconf
took that (perhaps with reason) as meaning do the full C++ testing bit so
now you *must* have it around at configure time.

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Unable to build 7.10.1 RC1 on Jessie

2015-01-25 Thread harry
According to https://ghc.haskell.org/trac/ghc/ticket/9720, g++ isn't even
used for building. and passing in gcc for CXX seems to work fine. Wonder
if that's changed.



--
View this message in context: 
http://haskell.1045720.n5.nabble.com/Unable-to-build-7-10-1-RC1-on-Jessie-tp5764254p5764257.html
Sent from the Haskell - Glasgow-haskell-users mailing list archive at 
Nabble.com.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users