On Mon, Apr 20, 2015 at 11:14:48AM -0500, Joel Sherrill wrote:
> 
> 
> On 4/20/2015 5:04 AM, Jonathan Wakely wrote:
> > On 19 April 2015 at 03:06, Sandra Loosemore wrote:
> >> Is it one of the standard g++ or libstdc++ test cases that is failing? I
> >> could check what nios2-elf does with it if I knew what to look for.
> > Libstdc++ does not use the __sync built-ins in the 4.9 branch, it has
> > switched to the __atomic ones which should be provided by libatomic,
> > if that exists for the target.
> This is with 4.9.2.  This is the only RTEMS target giving this error so
> I must
> be missing the magic bit of configurery for it.
> 
> /users/joel/rtems-4.11-work/rtems-source-builder/rtems/build/nios2-rtems4.11-gcc-4.9.2-newlib-2.2.0.20150323-x86_64-linux-gnu-1/build/nios2-rtems4.11/libstdc++-v3/include/ext/atomicity.h:49:
> undefined reference to `__sync_fetch_and_add_4'
> /users/joel/rtems-4.11-work/tools/lib/gcc/nios2-rtems4.11/4.9.2/libstdc++.a(locale-inst.o):/users/joel/rtems-4.11-work/rtems-source-builder/rtems/build/nios2-rtems4.11-gcc-4.9.2-newlib-2.2.0.20150323-x86_64-linux-gnu-1/build/nios2-rtems4.11/libstdc++-v3/include/ext/atomicity.h:49:
> more undefined references to `__sync_fetch_and_add_4' follow
> 
> Where should I be looking?

Look where your atomicity.h comes from?
On the 4.9 branch, none of the atomicity.h headers included in vanilla
libstdc++-v3 have any __sync_* uses.

        Jakub

Reply via email to