[GSOC] How to compile with sparc-rtems4.11-g++ command?

Joel Sherrill joel.sherrill at OARcorp.com
Thu Jun 21 21:04:07 UTC 2012


On 06/21/2012 03:54 PM, Xiaochen Pan wrote:
> Hello all,
>
> Here is the command:
>
> sparc-rtems4.11-g++ -o runner runner.cpp
>
You are still not building with the arguments to have RTEMS and the
BSP .h files available or included with your application.

If you use the Makefiles from examples-v2, simply list your C++
sources as CXXSRCS like this

CXXSRCS = init.cc

> Here are the error messages:
> *
> *
> */opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/../../../../sparc-rtems4.11/bin/ld: 
> warning: cannot find entry symbol _start; defaulting to 00010074
> /opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/libstdc++.a(eh_alloc.o): 
> In function `__gthread_mutex_destroy':
> /builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/sparc-rtems4.11/libstdc++-v3/include/sparc-rtems4.11/bits/gthr-default.h:114: 
> undefined reference to `rtems_gxx_mutex_destroy'
> /opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/libstdc++.a(locale.o): 
> In function `__gthread_mutex_destroy':
> /builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/sparc-rtems4.11/libstdc++-v3/include/sparc-rtems4.11/bits/gthr-default.h:114: 
> undefined reference to `rtems_gxx_mutex_destroy'
> /opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.6.2/libstdc++.a(locale_init.o): 
> In function `__gthread_mutex_destroy':
> /builddir/build/BUILD/rtems-4.11-sparc-rtems4.11-gcc-4.6.2/build/sparc-rtems4.11/libstdc++-v3/include/sparc-rtems4.11/bits/gthr-default.h:114: 
> undefined reference to `rtems_gxx_mutex_destroy'
> collect2: ld returned 1 exit status*
> *
> *
> How to fix this problem?
>
> regards,
> xiaochen
>


-- 
Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20120621/925b285f/attachment.html>


More information about the devel mailing list