Hi Mr. Silva, long time no see!

Sorry for the delay on answering, just this weekend I could resume this task 
(don't let my wife know!!).

Thanks for the link. As I suspected, I was missing something very very basic: I 
didn't build the BSP. Let me explain why, maybe it can help improving the 
documentation a little.

I was misled by the item 7.2.1 of the on-line user manual which, at the end of 
the page, states that "you can now build a 3rd party library or an 
application". This, and the fact that the next page of the manual deals with a 
different way to build RTEMS (from git), made me assume the installation was 
finished and that the RSB included the configure script to build all BSP's of 
the selected architecture.

It's clearly my fault, but it would help if the item 7.2.1 continued with 
bootstrap and the configure script before changing the topic.

Now everything is ok and I can start updating my old 4.10 project to 4.11.2. 
Let's see what's new on RTEMS!

Thanks again and best regards,

Fabrício.

 

De: Wendell Silva [mailto:silv...@gmail.com] 
Enviada em: quarta-feira, 31 de janeiro de 2018 15:19
Para: Fabrício de Novaes Kucinskis <fabricio.kucins...@inpe.br>
Cc: RTEMS Users <rtems-us...@rtems.org>
Assunto: Re: Problems with RTEMS installation - coming from 4.10

 

On your question #2, I've successfully executed the procedure documented here 
<https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start> .

 

Best Regards,

 

--Wendell 

 

On Wed, Jan 31, 2018 at 3:00 PM Wendell Silva <silv...@gmail.com 
<mailto:silv...@gmail.com> > wrote:

Hi Mr. Kucinskis,

 

Please, try this:

 

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

 

You can also use Makefile.{leaf|dir|lib} at RTEMS source code/make/Templates as 
"inspiration".

 

Hope it helps you.

 

--Wendell.

 

 

On Wed, Jan 31, 2018 at 2:41 PM Fabrício de Novaes Kucinskis 
<fabricio.kucins...@inpe.br <mailto:fabricio.kucins...@inpe.br> > wrote:

Hello everyone, it's been a while since my last message to the list.

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.

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!

I followed the instructions on 
https://docs.rtems.org/branches/master/user/installation/releases.html, just 
changing the prefix ('/comav/rtems/build' instead of '/opt/rtems/4.11').

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:

            sparc-rtems4.11-gcc test.c -o test.exe

Just to get the following error:

            "test.c:5:19: fatal error: rtems.h: No such file or directory"

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?

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.

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?

Thanks in advance and best regards,

Fabrício Kucinskis.





_______________________________________________
users mailing list
users@rtems.org <mailto:users@rtems.org> 
http://lists.rtems.org/mailman/listinfo/users

-- 

--Wendell

-- 

--Wendell

_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to