autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure: error: C preprocessor "/lib/cpp" fails sanity check


From: Bob Friesenhahn
Subject: Re: configure: error: C preprocessor "/lib/cpp" fails sanity check
Date: Sat, 17 Nov 2018 07:56:05 -0600 (CST)
User-agent: Alpine 2.20 (GSO 67 2015-01-07)

On Sat, 17 Nov 2018, Fabiano Sidler wrote:

Hi folks!

When trying to configure (binutils and gmp, in that case), I'm getting this:
=== snip ===
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/home/luser/Downloads/binutils-2.26.1/libiberty':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make[1]: *** [Makefile:7985: configure-libiberty] Error 1
make[1]: Leaving directory '/home/luser/Downloads/binutils-2.26.1'
make: *** [Makefile:846: all] Error 2
=== snap ===

However, this works as expected:
 printf "#include <stdio.h>\n" | /lib/cpp
It dumps stdio.h and its includes to stdout

What's the issue? Same behavior with binutils and gmp, so I assume autoconf
of gcc as the location of the problem...

You did not tell us what operating system you are using or what compiler is installed. What is the origin of the compiler which was installed?

Does '/lib/cpp --version' or '/lib/cpp -V' produce any useful output?

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]