This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++ test case ext/headers.cc failed on arm-none-eabi
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: "Bin.Cheng" <amker dot cheng at gmail dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Wed, 7 Aug 2013 09:10:52 -0400
- Subject: Re: libstdc++ test case ext/headers.cc failed on arm-none-eabi
- References: <CAHFci282xzqC07Nu03Az+VuwOjm2b3gzDr4Oty-OBW6NKa5ekg at mail dot gmail dot com>
The same error occurs on AIX because the tests are run without pthreads.
- David
On Wed, Aug 7, 2013 at 6:22 AM, Bin.Cheng <amker.cheng@gmail.com> wrote:
> Hi,
> I spotted case ext/headers.cc failed on arm-none-eabi with below information:
>
> In file included from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr.h:148:0,
> from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/ext/atomicity.h:33,
> from
> /home/build/work/src/gcc/libstdc++-v3/testsuite/ext/headers.cc:28:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> #define __GTHREAD_MUTEX_INIT 0
> ^
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> #define __GTHREAD_MUTEX_INIT 0
> ^
> output is:
> In file included from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr.h:148:0,
> from
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/ext/atomicity.h:33,
> from
> /home/build/work/src/gcc/libstdc++-v3/testsuite/ext/headers.cc:28:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> #define __GTHREAD_MUTEX_INIT 0
> ^
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> #define __GTHREAD_MUTEX_INIT 0
> ^
>
> FAIL: ext/headers.cc (test for excess errors)
> Excess errors:
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
> /home/build/work/gcc-build/arm-none-eabi/armv7-m/libstdc++-v3/include/arm-none-eabi/bits/gthr-default.h:37:30:
> warning: non-static data member initializers only available with
> -std=c++11 or -std=gnu++11 [enabled by default]
>
> The cases failed both on trunk and 4.8, but ok for 4.7.
>
> Any ideas? Thanks.
>
>
> --
> Best Regards.