Not building Sample app in CentOS

Joel Sherrill joel.sherrill at
Thu Mar 8 19:24:46 UTC 2012

On 03/08/2012 12:51 PM, Binkowski, Cassio wrote:
> Hi everyone. I'm not being able to make the Hello application in the 
> CentOS Virtual Machine.
> Please see below the steps I took to build RTEMS and then try building 
> the Hello World app.
> 1) Created the folder TEST in /home/rtems.
> 2) In the terminal, inside the folder TEST:
>   2.1) export PATH=/opt/rtems-4.11/bin:${PATH}
>   2.2)  ~/rtems-4.11-work/rtems/configure --target=sparc-rtems4.11  
> --disable-posix --disable-networking --disable-cxx 
> --enable-rtemsbsp=sis --enable-tests=samples

There is no --prefix option on this to specify an install point.
If you used --prefix=/home/rtems/rtems-4.11-work/bsp-install,
then RTEMS_MAKEFILE_PATH would be set to
>   2.3) gmake all
No install step
> 3) Copied the folder Samples from 
> ~/rtems-4.11-work/rtems/testsuites/samples. Pasted it inside the TEST 
> folder.
> -- The HELLO folder, inside Samples, has the following contents:
> hello.doc
> hello.scn
> init.c
The Makefile.* indicates it is an autoconf build system
and (for RTEMS) only works inside the source tree.
3.1) still inside the Terminal: export 
There is a set of example programs .. examples-v2 which use a simple
build system and use  RTEMS_MAKEFILE_PATH to find the BSP installation.

Grr... violated my own rule of rushing something to get out the door 
before a
weekend, trip, or holiday.  You always end up in a hurry and missing stuff.
The VM is missing the checkout of examples-v2. :(

cd ~/rtems-4.11-work
git clone git://

Then there are various programs which can be built using the
RTEMS_MAKEFILE_PATH build system and an installed RTEMS.

Look in the subdirectory hello and you will see 3 hello world variants
that can be built against an install RTEMS.

> 3.2) I have tried 2 commands to try in making it, unsuccessfully 
> though. See below:
> [rtems at localhost hello]$ make
> make: *** No targets specified and no makefile found.  Stop.
> [rtems at localhost hello]$ make -f
> /make/custom/@RTEMS_BSP at .cfg: No such file or directory
> /../automake/ <>: No such 
> file or directory
> /../automake/ <>: No such file or 
> directory
> /../automake/ <>: No such file 
> or directory
> make: *** No rule to make target `/../automake/ 
> <>'.  Stop.
> [rtems at localhost hello]$ make -f
> *** missing separator.  Stop.

The is a very stylized file which is processed by two
tools to get the real Makefile.
> I guess I'm missing something or just trying to build Hello World in 
> the wrong folder.
> Can you guys help me out?

You ran into another of my mistakes.

On a positive note, you are making a good impression. The reports and
catching the mistakes are awesome. I will update the VM when you
succeed and we go through the issues you had to make sure I fixed them.

Joel Sherrill, Ph.D.             Director of Research&   Development
joel.sherrill at        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
     Support Available             (256) 722-9985

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

More information about the users mailing list