Problems with RTEMS installation - coming from 4.10

Wendell Silva silvawp at
Wed Jan 31 17:00:39 UTC 2018

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.


On Wed, Jan 31, 2018 at 2:41 PM Fabrício de Novaes Kucinskis <
fabricio.kucinskis at> 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
> 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 at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list