sparc-rtems4.11-gcc error
Luca Cinquepalmi
cinquepalmi at planetek.it
Mon Jul 30 13:23:24 UTC 2012
Jiri, I exactly did what you have just suggested me. My target is leon2
so I did
cd rtems
export PATH=/opt/rtems-4.11/bin:$PATH
./bootstrap
cd ..
mkdir b-sis
cd b-sis
../rtems/configure --target=sparc-rtems4.11 --enable-rtemsbsp=leon2 \
--enable-tests=samples --disable-posix --prefix=/opt/rtems-4.11
make
and everything went ok
Supposing that I have a simple hello.c rtems file, could you please
indicate me the complete command line to compile it?
*sparc-rtems4.11-gcc ...........*
Maybe i miss some options... Thank you again.
Luca
Il 30/07/2012 13.24, Jiri Freyvald ha scritto:
> Luca,
> 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
> tutorials:
>
> http://wiki.rtems.org/wiki/index.php/Quick_Start
>
> Have you built this: ?
> cd rtems
> export PATH=/opt/rtems-4.11/bin:$PATH
> ./bootstrap
> cd ..
> mkdir b-sis
> cd b-sis
> ../rtems/configure --target=sparc-rtems4.11 --enable-rtemsbsp=sis \
> --enable-tests=samples --disable-posix
> make
>
> 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:
> http://www.rtems.org/wiki/index.php/Example_Application_Compiling
> 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
> Jiri
>
>
>
> 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 rtems.org
>>>> http://www.rtems.org/mailman/listinfo/rtems-users
>>>
>>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20120730/973ca21d/attachment-0001.html>
More information about the users
mailing list