Unable to build 7.10.1 RC1 on Jessie
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-tp... Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.
2015-01-25 11:18 GMT+01:00 harry <voldermort@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.
Sven Panne-2 wrote
Perhaps there is no C++ compiler installed? Try to add "g++" to your "apt-get install" command line.
Is g++ a new requirement? I didn't need it for building 7.8.4. -- View this message in context: http://haskell.1045720.n5.nabble.com/Unable-to-build-7-10-1-RC1-on-Jessie-tp... Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.
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-tp... Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.
On Sun, Jan 25, 2015 at 9:43 AM, harry <voldermort@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 allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
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-tp... Sent from the Haskell - Glasgow-haskell-users mailing list archive at Nabble.com.
participants (3)
-
Brandon Allbery -
harry -
Sven Panne