List Info

Thread: Configure error C++ preprocessor "CC -E" fails sanity check




Configure error C++ preprocessor "CC -E" fails sanity check
user name
2006-07-29 07:50:44
On Fri, 2006-07-28 at 13:05 -0400, Augie Henriques wrote:
> Hi.
>  
> I'm new to the libxml.
>  
> I have QNX4 and I'm trying to run the configure script
using...
>  
> configure --disable-shared --without-threads CC=cc
CXX=CC LD=cc
> CPP="cc -E" CXXCPP="CC -E"
CFLAGS="-mf -j -zp4 -5r" CXXFLAGS="-mf -j
> -zp4 -5r"
>  
> I get the following error...
>  
> configure: error: C++ preprocessor "CC -E"
fails sanity check
> see 'config.log' for more details
>  
> [See attached config.log file]
>  
> Why do I get this error message?  How can I fix this?

Note this:
> configure:5375: checking for C++ compiler version
> configure:5378: CC --version </dev/null >&5
> CC: not found

By installing the c++-compiler you specify in your call to
configure?

Ralf


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
Configure error C++ preprocessor "CC -E" fails sanity check
user name
2006-07-29 08:22:32
On Sat, Jul 29, 2006 at 09:50:44AM +0200, Ralf Corsepius
wrote:
> On Fri, 2006-07-28 at 13:05 -0400, Augie Henriques
wrote:
> > Hi.
> >  
> > I'm new to the libxml.
> >  
> > I have QNX4 and I'm trying to run the configure
script using...
> >  
> > configure --disable-shared --without-threads CC=cc
CXX=CC LD=cc
> > CPP="cc -E" CXXCPP="CC -E"
CFLAGS="-mf -j -zp4 -5r" CXXFLAGS="-mf -j
> > -zp4 -5r"
> >  
> > I get the following error...
> >  
> > configure: error: C++ preprocessor "CC
-E" fails sanity check
> > see 'config.log' for more details
> >  
> > [See attached config.log file]
> >  
> > Why do I get this error message?  How can I fix
this?
> 
> Note this:
> > configure:5375: checking for C++ compiler version
> > configure:5378: CC --version </dev/null
>&5
> > CC: not found
> 
> By installing the c++-compiler you specify in your call
to configure?

 One thing which suprizes me is that while the configure
command
is in error passing a wrong c++ compiler name on the command
line
argument, I don't understand why it affects libxml2 as we
don't
need a C++ compiler anywhere, just a C one. There may be
something
to fix there, 

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillardredhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ |
Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
Configure error C++ preprocessor "CC -E" fails sanity check
user name
2006-07-29 20:15:48
On Sat, 2006-07-29 at 04:22 -0400, Daniel Veillard wrote:
> On Sat, Jul 29, 2006 at 09:50:44AM +0200, Ralf
Corsepius wrote:
> > On Fri, 2006-07-28 at 13:05 -0400, Augie Henriques
wrote:
> > > Hi.
> > >  
> > > I'm new to the libxml.
> > >  
> > > I have QNX4 and I'm trying to run the
configure script using...
> > >  
> > > configure --disable-shared --without-threads
CC=cc CXX=CC LD=cc
> > > CPP="cc -E" CXXCPP="CC
-E" CFLAGS="-mf -j -zp4 -5r"
CXXFLAGS="-mf -j
> > > -zp4 -5r"
> > >  
> > > I get the following error...
> > >  
> > > configure: error: C++ preprocessor "CC
-E" fails sanity check
> > > see 'config.log' for more details
> > >  
> > > [See attached config.log file]
> > >  
> > > Why do I get this error message?  How can I
fix this?
> > 
> > Note this:
> > > configure:5375: checking for C++ compiler
version
> > > configure:5378: CC --version </dev/null
>&5
> > > CC: not found
> > 
> > By installing the c++-compiler you specify in your
call to configure?
> 
>  One thing which suprizes me is that while the
configure command
> is in error passing a wrong c++ compiler name on the
command line
> argument,
This is a DUE, but ...

>  I don't understand why it affects libxml2 as we
don't
> need a C++ compiler anywhere, just a C one. There may
be something
> to fix there, 

Without having checked detail, this looks like a side effect
of this
freaking bug in libtool, which pulls in checks for all
languages libtool
supports into configure scripts.

This bug renders many packages using libtool almost
unbuildable on many
platforms which don't have a working c++-compiler installed
(Many
embedded toolchains).

Ralf



_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
Configure error C++ preprocessor "CC -E" fails sanity check
user name
2006-07-31 15:46:51
Hello,

On Sat, Jul 29, 2006 at 10:15:48PM +0200, Ralf Corsepius
wrote:
> freaking bug in libtool, which pulls in checks for all
languages libtool
> supports into configure scripts.

this bug will be fixed in Libtool 2.0.

It might helpto use CVS version of libtool, but I'm not
sore what are
the prerequisities for that.

Stepan
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )