Unable to build 7.10.1 RC1 on Jessie

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to build 7.10.1 RC1 on Jessie

Jonathon Delgado
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?
Reply | Threaded
Open this post in threaded view
|

Re: Unable to build 7.10.1 RC1 on Jessie

Sven Panne-2
2015-01-25 11:18 GMT+01:00 harry <[hidden email]>:

> [..] 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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Unable to build 7.10.1 RC1 on Jessie

Jonathon Delgado
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.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to build 7.10.1 RC1 on Jessie

Jonathon Delgado
In reply to this post by Sven Panne-2
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.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to build 7.10.1 RC1 on Jessie

Brandon Allbery
On Sun, Jan 25, 2015 at 9:43 AM, harry <[hidden email]> 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
[hidden email]                                  [hidden email]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Unable to build 7.10.1 RC1 on Jessie

Jonathon Delgado
Thank you Sven and Brandon for your help. I'm now able to build 7.10.