<div dir="ltr">Hi Mr. Kucinskis,<div><br></div><div>Please, try this:</div><div><br></div><div>gcc  -mcpu=cypress -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -I${prefix}/sparc-rtems4.11/sis/lib/include -B${prefix}/sparc-rtems4.11/sis/lib -specs bsp_specs -qrtems -lrtemsbsp -lrtemscpu test.c -o test.exe<br></div><div><br></div><div>You can also use Makefile.{leaf|dir|lib} at RTEMS source code/make/Templates as "inspiration".</div><div><br></div><div>Hope it helps you.</div><div><br></div><div>--Wendell.</div><div> </div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 31, 2018 at 2:41 PM Fabrício de Novaes Kucinskis <<a href="mailto:fabricio.kucinskis@inpe.br">fabricio.kucinskis@inpe.br</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone, it's been a while since my last message to the list.<br>
<br>
I'm setting up a new development environment to start updating a project from RTEMS 4.10 to 4.11.2. It's based on Fedora 27.<br>
<br>
The installation process through source-builder is very different from the one I was used to (based on tools in RPM and the 'configure' script), but it's pretty easy. Congrats for the improvement!<br>
<br>
I followed the instructions on <a href="https://docs.rtems.org/branches/master/user/installation/releases.html" rel="noreferrer" target="_blank">https://docs.rtems.org/branches/master/user/installation/releases.html</a>, just changing the prefix ('/comav/rtems/build' instead of '/opt/rtems/4.11').<br>
<br>
After installing the usual missing dependencies found during the build, it finished with success and everything seemed to be ok. Then I've downloaded the 'examples' package and tried to compile hello_world_c with the simplest command possible:<br>
<br>
            sparc-rtems4.11-gcc test.c -o test.exe<br>
<br>
Just to get the following error:<br>
<br>
            "test.c:5:19: fatal error: rtems.h: No such file or directory"<br>
<br>
Then I realized I had not set $RTEMS_MAKEFILE_PATH. I did it, pointing to "{prefix}/sparc-rtems4.11/sis", with no effect. So I noticed there's no reference to such environment variable on the current documentation. Question nr. 1: is it still needed?<br>
<br>
Afterwards, I tried to compile, this time manually stating the include path with "-I{prefix}/lib/include". This way the compiler finds rtems.h, but I get a lot of errors, starting with ld complaining it haven't found "_start" and other basic BSP symbols.<br>
<br>
Probably I'm missing something basic, but for now I can't find out. Question nr. 2: Am I doing something wrong, or missing some installation step?<br>
<br>
Thanks in advance and best regards,<br>
<br>
Fabrício Kucinskis.<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><p dir="ltr">--Wendell</p>
</div>