This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Undefined C++ Atomic Symbol on sh-rtems
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>, Chris Johns <chrisj at rtems dot org>, Martin Galvan <martin dot galvan at tallertechnologies dot com>
- Date: Sat, 16 Apr 2016 18:58:55 -0500
- Subject: Undefined C++ Atomic Symbol on sh-rtems
- Authentication-results: sourceware.org; auth=none
Hi
I am hoping the solution to this is obvious to someone
more familiar with the C++ libraries. Recently the
sh4 BSP for RTEMS began to have undefined symbols
like this when linking a C++ test:
/data/home/joel/rtems-4.11-work/tools/4.12/bin/../lib/gcc/sh-rtems4.12/6.0.0/ml/m4/libstdc++.a(cxx11-shim_facets.o): In function `ZNKSt6locale5facet11_M_sso_shimEPKNS_2idE':
/data/home/joel/rtems-4.11-work/rtems-source-builder/rtems/build/sh-rtems4.12-gcc-6-20160327-newlib-2.4.0-x86_64-linux-gnu-1/build/sh-rtems4.12/ml/m4/libstdc++-v3/include/bits/locale_facets_nonio.h:1065: undefined reference to `__gnu_cxx::__atomic_add(int volatile*, int)'
Is this present for sh-elf? Or is there some magic
bit missing in the RTEMS configuration stanzas?
Thanks in advance.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35806
Support Available (256) 722-9985