This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: New libstdc++v3 failure during bootstrap



looks like _GLIBCPP_HAVE_MBSTATE_T is not being set correctly.

If you look in your build dir/include/bits/c++config look and see what it 
says for this macro.

that gets set at this point in acinclude.m4:

AC_DEFUN(GLIBCPP_CHECK_WCHAR_T_SUPPORT, [

  dnl Test wchar.h for mbstate_t, which is needed for char_traits and
  dnl others even if wchar_t support is not on.
  AC_MSG_CHECKING([for mbstate_t])
  AC_TRY_COMPILE([#include <wchar.h>],
  [mbstate_t teststate;], 
  have_mbstate_t=yes, have_mbstate_t=no)
  AC_MSG_RESULT($have_mbstate_t)
  if test x"$have_mbstate_t" = xyes; then
    AC_DEFINE(HAVE_MBSTATE_T)
  fi

-benjamin


> /play/egcs/libstdc++-v3/include/c_std/bits/std_cwchar.h:63: `mbstate_t' not 
>    declared
> In file included from /play/egcs/libstdc++-v3/include/bits/std_complex.h:42,
>                  from /play/egcs/libstdc++-v3/src/complex_io.cc:30:
> /play/egcs/libstdc++-v3/include/bits/std_iosfwd.h:112: `mbstate_t' was not 
>    declared in this scope

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]