sparc-rtems4.11-gcc error

Jiri Freyvald jiri.freyvald at
Mon Jul 30 11:24:51 UTC 2012

I installed RTEMS for sparc and arm targets and both worked out of the 
box (the same version as you have).

I would recomend you to leave Eclipse for that moment and build from 
command line only.
The easiest way to make your application working is to follow those 

Have you built this: ?

cd rtems
export PATH=/opt/rtems-4.11/bin:$PATH
cd ..
mkdir b-sis
cd b-sis
../rtems/configure --target=sparc-rtems4.11 --enable-rtemsbsp=sis \
   --enable-tests=samples --disable-posix

Everything went ok?

If yes, you will have a few examples in the build tree, you can run them.

Next step which I did and I recomend you too is:
which will completely build a lot of examples and you can then use some 
of them as a framework for your application.

The key thing you have to do is to properly set environment *PATH* for 
your toolchain and *RTEMS_MAKEFILE_PATH*,
  then you can run your application located out of the build tree.
You can very easily use its makefile, modify it and it will work for you 
(even from Eclipse if you use a Makefile project)

I hope it will help

On 07/30/12 11:49, Luca Cinquepalmi wrote:
> Hi Jiri, thank you for your suggestion.
> I've tryed it, but nothing happened. I tell you my source version:
> - rtems 4.11
> - binutils 2.22
> - gcc 4.7.1
> - newlib 1.20.0
> I really don't understand what kind of error I generate. RTEMS 
> compilation and installation
> (as indicated in RTEMS Quick Start) has been performed withou any kind 
> of errors.
> Do you have any other suggestion form me?
> Thanks a lot
>      Luca
> Il 27/07/2012 16.37, Jiri Freyvald ha scritto:
>> Have you added -c option to sparc-rtems4.11-gcc command line parameters?
>> (to ONLY compile and assemble single C file, but do not link)
>> because that error message seems to me as result of linking process
>> Jiri
>> On 07/27/12 10:38, Luca Cinquepalmi wrote:
>>> I'm using sparc-rtems4.11-gcc to compyle a rtems C source file.
>>> I compiled allthing as indicatedin web Quick start without any problems.
>>> When I try to compile a simplke rtems C source code the following 
>>> errors appears:
>>> *- In function `bsp_get_work_area':/../../...../ undefined reference 
>>> to `rdb_start'
>>> - In function `_Thread_Handler':/../../......./ undefined reference 
>>> to `_init'*
>>> Has anybody seen these kind of errors before? I'm not able to solve 
>>> them?
>>> Here my compilation options:
>>> *sparc-rtems4.11-gcc -B/opt/rtems-4.11/sparc-rtems4.11/leon2/lib \
>>>                 -specs 
>>> /opt/rtems-4.11/sparc-rtems4.11/leon2/lib/bsp_specs \
>>>                 -mcpu=v8 -qrtems 
>>> -L/opt/rtems-4.11/sparc-rtems4.11/leon2/lib*
>>> PS: I'm using Eclipse as IDE.
>>> Thanks a lot!
>>>     Luca
>>> _______________________________________________
>>> rtems-users mailing list
>>> rtems-users at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list