Re: [moseley@hank.org: configure: error: C++ preprocessor "/lib/cpp" fails sanity check]
On Wed, Nov 05, 2003 at 07:12:29AM -0800, moseley@hank.org wrote:
> [Please cc, as I'm not subscribed to debian-gcc]
>
>
> On Wed, Nov 05, 2003 at 03:43:57PM +0100, J.H.M. Dassen (Ray) wrote:
>
> > > I posted this o debian-user a few days back. I'm wondering if cpp needs
> > > to depend on g++.
> >
> > I see no reason to. The preprocessor typically isn't used as a stand-alone
> > application. It is typically called from a compiler frontend (which has the
> > appropriate dependency on cpp) and is ocassionally called to process things
> > other than C(++) code, like .Xresources files, which don't need a compiler
> > dependency.
>
> But it seems to be called with autoconf:
>
> $ ./configure >/dev/null
> configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> See `config.log' for more details.
>
> My configure.in isn't requesting that check, as far as I know, so it
> looks like autoconf is running that sanity check by default.
>
> config.log says:
>
> configure:4895: /lib/cpp conftest.cc
> cpp: installation problem, cannot exec `cc1plus': No such file or directory
> configure:4901: $? = 1
Something, then, is forcing your autoconf script to C++. It won't do
the CPP sanity tests with C implicitly.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
Reply to: