[Buildroot] package "expat" fails to build without a C++ compiler

Damien Riegel damien.riegel at savoirfairelinux.com
Tue Dec 19 21:58:31 UTC 2017


Hi,


I tried to build an image with the "expat" package in it, using a
toolchain without a C++ compiler. It fails with the following error:

  configure: error: in `/home/dkc/src/buildroot/build/build/expat-2.2.4':
  configure: error: C++ preprocessor "/lib/cpp" fails sanity check

Enabling C++ support fixed that error.

It's weird because the C++ preprocessor is supposed to checked by the
AC_PROG_CXXCPP macro, which is not present in configure.ac, but maybe
that macro is implied with recent versions of autotools when using
AC_PROG_CXX?

Anyways, should "expat" depends on BR2_INSTALL_LIBSTDCP?


Thank you,
-- 
Damien


More information about the buildroot mailing list