<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Luca,<br>
I installed RTEMS for sparc and arm targets and both worked out of
the box (the same version as you have).<br>
<br>
I would recomend you to leave Eclipse for that moment and build
from command line only.<br>
The easiest way to make your application working is to follow
those tutorials:<br>
<br>
<a class="moz-txt-link-freetext" href="http://wiki.rtems.org/wiki/index.php/Quick_Start">http://wiki.rtems.org/wiki/index.php/Quick_Start</a><br>
<br>
Have you built this: ? <br>
<pre>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
<big>Everything went ok?</big>
</pre>
If yes, you will have a few examples in the build tree, you can
run them.<br>
<br>
Next step which I did and I recomend you too is:<br>
<a class="moz-txt-link-freetext" href="http://www.rtems.org/wiki/index.php/Example_Application_Compiling">http://www.rtems.org/wiki/index.php/Example_Application_Compiling</a><br>
which will completely build a lot of examples and you can then use
some of them as a framework for your application.<br>
<br>
The key thing you have to do is to properly set environment <b>PATH</b>
for your toolchain and <b>RTEMS_MAKEFILE_PATH</b>,<br>
then you can run your application located out of the build tree.<br>
You can very easily use its makefile, modify it and it will work
for you (even from Eclipse if you use a Makefile project)<br>
<br>
I hope it will help<br>
Jiri<br>
<br>
<br>
<br>
On 07/30/12 11:49, Luca Cinquepalmi wrote:<br>
</div>
<blockquote cite="mid:501666A7.1040604@planetek.it" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hi Jiri, thank you for your
suggestion.<br>
I've tryed it, but nothing happened. I tell you my source
version:<br>
<br>
- rtems 4.11<br>
- binutils 2.22<br>
- gcc 4.7.1<br>
- newlib 1.20.0<br>
<br>
I really don't understand what kind of error I generate. RTEMS
compilation and installation<br>
(as indicated in RTEMS Quick Start) has been performed withou
any kind of errors.<br>
Do you have any other suggestion form me?<br>
Thanks a lot<br>
<br>
Luca<br>
<br>
Il 27/07/2012 16.37, Jiri Freyvald ha scritto:<br>
</div>
<blockquote cite="mid:5012A7B3.1050303@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Have you added -c option to
sparc-rtems4.11-gcc command line parameters?<br>
(to ONLY compile and assemble single C file, but do not link)<br>
because that error message seems to me as result of linking
process<br>
<br>
Jiri<br>
<br>
<br>
On 07/27/12 10:38, Luca Cinquepalmi wrote:<br>
</div>
<blockquote cite="mid:5012617F.1050407@planetek.it" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
I'm using sparc-rtems4.11-gcc to compyle a rtems C source
file.<br>
I compiled allthing as indicatedin web Quick start without any
problems.<br>
When I try to compile a simplke rtems C source code the
following errors appears:<br>
<br>
<b><small>- In function `bsp_get_work_area':/../../...../
undefined reference to `rdb_start'<br>
- In function `_Thread_Handler':/../../......./ undefined
reference to `_init'</small></b><br>
<br>
Has anybody seen these kind of errors before? I'm not able to
solve them?<br>
Here my compilation options:<br>
<br>
<b><small>sparc-rtems4.11-gcc
-B/opt/rtems-4.11/sparc-rtems4.11/leon2/lib \<br>
-specs
/opt/rtems-4.11/sparc-rtems4.11/leon2/lib/bsp_specs \<br>
-mcpu=v8 -qrtems
-L/opt/rtems-4.11/sparc-rtems4.11/leon2/lib</small></b><br>
<br>
PS: I'm using Eclipse as IDE.<br>
<br>
Thanks a lot!<br>
<br>
Luca<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rtems-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.rtems.org/mailman/listinfo/rtems-users">http://www.rtems.org/mailman/listinfo/rtems-users</a>
</pre>
</blockquote>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<br>
</body>
</html>