[Libvir] AC_PROG_CPP

We have AC_PROG_CPP, but apparently no C++ code? In any case unless a C++ compiler is installed, I get: checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903

On Mon, May 14, 2007 at 05:28:44PM +0100, Richard W.M. Jones wrote:
We have AC_PROG_CPP, but apparently no C++ code? In any case unless a C++ compiler is installed, I get:
Actually C++ is AC_PROG_CXX, the AC_PROG_CPP is for the C preprocessor check.
checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details.
Anything interesting in config.log ? Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|

Daniel P. Berrange wrote:
checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details.
Anything interesting in config.log ?
configure:5551: /lib/cpp conftest.cc cpp: installation problem, cannot exec `cc1plus': No such file or directory That's where I was getting C++ from ... Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903

On Mon, May 14, 2007 at 05:34:08PM +0100, Richard W.M. Jones wrote:
Daniel P. Berrange wrote:
checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details.
Anything interesting in config.log ?
configure:5551: /lib/cpp conftest.cc cpp: installation problem, cannot exec `cc1plus': No such file or directory
That's where I was getting C++ from ...
Hum, I don't think we need cpp standalone capability, we are just compiling C code there, if removing AC_PROG_CPP removes the check for C++ compiler being installed then I would be very happy to just remove it ! Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

Daniel Veillard wrote:
On Mon, May 14, 2007 at 05:34:08PM +0100, Richard W.M. Jones wrote:
Daniel P. Berrange wrote:
checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no checking dependency style of g++... none checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. Anything interesting in config.log ? configure:5551: /lib/cpp conftest.cc cpp: installation problem, cannot exec `cc1plus': No such file or directory
That's where I was getting C++ from ...
Hum, I don't think we need cpp standalone capability, we are just compiling C code there, if removing AC_PROG_CPP removes the check for C++ compiler being installed then I would be very happy to just remove it !
Actually, I dug further into this and it wasn't the AC_PROG_CPP which was the problem, but was buried deep inside one of the other macros we are using. Will look further ... Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903
participants (3)
-
Daniel P. Berrange
-
Daniel Veillard
-
Richard W.M. Jones