Building rtems-4.11

Joel Sherrill joel.sherrill at OARcorp.com
Sat Nov 23 01:33:35 UTC 2013


On 11/22/2013 6:33 PM, Kev Fei wrote:
> Hello,
> 
> I am trying to build rtems 4.11 on Linux Mint 13 LTS 64-bit for sparc as
> part of Google Code-In.

Thanks for posting this to the users list. :)

> I used the RTEMS Source Builder to build these tools and I think I have
> them installed correctly:

What command did you use with the RSB? I would have expected
to see the right autoconf and automake versions in this
directory.

More below.

>     ls /opt/rtems-4.11/bin
>     cklength                    sparc-rtems4.11-gcov
>     eolstrip                    sparc-rtems4.11-gdb
>     install-if-change           sparc-rtems4.11-gprof
>     packhex                     sparc-rtems4.11-ld
>     rtems-bin2c                 sparc-rtems4.11-ld.bfd
>     sparc-rtems4.11-addr2line   sparc-rtems4.11-nm
>     sparc-rtems4.11-ar          sparc-rtems4.11-objcopy
>     sparc-rtems4.11-as          sparc-rtems4.11-objdump
>     sparc-rtems4.11-c++         sparc-rtems4.11-ranlib
>     sparc-rtems4.11-c++filt     sparc-rtems4.11-readelf
>     sparc-rtems4.11-cpp         sparc-rtems4.11-run
>     sparc-rtems4.11-difftest    sparc-rtems4.11-sis
>     sparc-rtems4.11-elfedit     sparc-rtems4.11-size
>     sparc-rtems4.11-g++         sparc-rtems4.11-sorttimes
>     sparc-rtems4.11-gcc-4.8.1   sparc-rtems4.11-strings
>     sparc-rtems4.11-gcc-ar      sparc-rtems4.11-strip
>     sparc-rtems4.11-gcc-nm      unhex
>     sparc-rtems4.11-gcc-ranlib  xmlwf
> 
> Now I'm trying to build rtems, following the Quick Start.
> 
> In $HOME/GCIdevelopment/rtems,
> *Terminal:
> 
>     git clone git://git.rtems.org/rtems.git
>     <http://git.rtems.org/rtems.git> rtems
>     cd rtems
>     export PATH=/opt/rtems-4.11/bin:$PATH
>     ./bootstrap

Try these steps and let's see what we get.

type sparc-rtems4.11-gcc

Then compile this program ..put it in joel.c

==============
int main() {return 0;}
==============

sparc-rtems4.11-gcc joel.c

What's the output? It should compile just fine.

> 
> First I had to update automake and autoconf. rtems required versions
> higher than what the repositories had, so I had to google them and
> install them from source, which was easy enough.

The RSB handles autoconf/automake as part of the RTEMS tools
if invoked correctly so I am a bit confused. We need the command
as shown above but if you did this much right, they should be
in your PATH.. so

autoconf --version
automake --version

>     ../rtems/configure --target=sparc-rtems4.11 --enable-rtemsbsp=sis
>     --enable-tests=samples --disable-posix
>     make
> 
> 
> And I get:
> 
>     configure: error: no acceptable cc found in $PATH
> 
> 
> Although sparc-rtems4.11-gcc-4.8.1 is already in
> rtems/b-sis/sparc-rtems4.11, I copy the other tools gcc-ar, gcc-nm, and
> gcc-ranlib too.

This doesn't sound like something you should have done.

> I try the above two commands again and it still doesn't work.
> Output:
> 
>     Making all in tools/build
>     make[1]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/build'
>     make  all-am
>     make[2]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/build'
>     make[2]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/build'
>     make[1]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/build'
>     Making all in tools/cpu
>     make[1]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu'
>     Making all in generic
>     make[2]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu/generic'
>     make[2]: Nothing to be done for `all'.
>     make[2]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu/generic'
>     make[2]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu'
>     make[2]: Nothing to be done for `all-am'.
>     make[2]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu'
>     make[1]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/tools/cpu'
>     Making all in testsuites/tools
>     make[1]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools'
>     Making all in generic
>     make[2]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools/generic'
>     make[2]: Nothing to be done for `all'.
>     make[2]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools/generic'
>     make[2]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools'
>     make[2]: Nothing to be done for `all-am'.
>     make[2]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools'
>     make[1]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/testsuites/tools'
>     Making all in sparc-rtems4.11/c
>     make[1]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c'
>     Making all in .
>     make[2]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c'
>     make[2]: Nothing to be done for `all-am'.
>     make[2]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c'
>     Making all in sis
>     make[2]: Entering directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c/sis'
>     make[2]: *** No rule to make target `all'.  Stop.
>     make[2]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c/sis'
>     make[1]: *** [all-recursive] Error 1
>     make[1]: Leaving directory
>     `/home/kevin/GCIdevelopment/rtems/b-sis/sparc-rtems4.11/c'
>     make: *** [all-recursive] Error 1
> 
> 
> I have tried --enable-posix instead as well as removing the posix tag
> altogether. Google searches for ***No rule to make target 'all'. errors
> have not been very helpful.
> 
> Does anybody have any ideas on what's going on? Thank you!

Try the above and post the results. I think RSB was invoked
with something minor wrong.

> Kevin Fei



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



More information about the users mailing list