<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>
you don't need to compile hello.c from command line, using
makefile is much easier.<br>
But if you still need it, build some example using makefile,as we
all suggested, and redirect output to file and you'll probably see
all parameters for gcc<br>
(for compilation and for linking)<br>
or you can look into $(RTEMS_MAKEFILE_PATH)/Makefile.inc
- you'll find all parameters there too<br>
<br>
Jiri<br>
<br>
<br>
On 07/30/12 14:23, Luca Cinquepalmi wrote:<br>
</div>
<blockquote cite="mid:50168ACC.60207@planetek.it" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Jiri, I exactly did what you have
just suggested me. My target is leon2 so I did<br>
<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=leon2 \
--enable-tests=samples --disable-posix --prefix=/opt/rtems-4.11
make</pre>
and everything went ok<br>
<br>
Supposing that I have a simple hello.c rtems file, could you
please indicate me the complete command line to compile it?<br>
<br>
<b>sparc-rtems4.11-gcc ...........</b><br>
<br>
Maybe i miss some options... Thank you again.<br>
<br>
Luca<br>
<br>
Il 30/07/2012 13.24, Jiri Freyvald ha scritto:<br>
</div>
<blockquote cite="mid:50166F03.8090506@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<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 moz-do-not-send="true" 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 moz-do-not-send="true" 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>
</blockquote>
<br>
</blockquote>
<br>
<br>
</body>
</html>