Newbie to RTEMS: ADA support issue
Simon Clubley
simon.clubley at googlemail.com
Thu Jun 18 12:50:35 UTC 2009
On 17/06/2009, Ángel <leadzeppelin at gmail.com> wrote:
>
> I am trying to compile the hello_world_ada sample without sucess:
>
> ~/RTEMS/ada-examples/hello_world_ada$ make
> i386-rtems4.10-gnatmake -g -v \
>
> -I/opt/rtems-4.10/i386-rtems4.10/pc386/lib/include/adainclude
> \
> -O -gnata -gnatE -gnato -g hello -o hello.exe \
> -bargs -Mgnat_main \
> -largs -B/opt/rtems-4.10/i386-rtems4.10/pc386/lib/
> -specs=bsp_specs -qrtems -mtune=i386 -Dpc386 -Wl,-Ttext,0x00100000 \
> rtems_init.o \
>
> After installation, the /opt/rtems4.10/bin directory, which is in $PATH,
> contains the following files:
>
> rwxr-xr-x 2 root root 31214 2009-05-18 19:01 aclocal
> -rwxr-xr-x 2 root root 31214 2009-05-18 19:01 aclocal-1.11
> -rwxr-xr-x 1 root root 14642 2009-04-07 07:05 autoconf
> -rwxr-xr-x 1 root root 8506 2009-04-07 07:05 autoheader
> -rwxr-xr-x 1 root root 31811 2009-04-07 07:05 autom4te
> -rwxr-xr-x 2 root root 257044 2009-05-18 19:01 automake
> -rwxr-xr-x 2 root root 257044 2009-05-18 19:01 automake-1.11
> -rwxr-xr-x 1 root root 20266 2009-04-07 07:05 autoreconf
> -rwxr-xr-x 1 root root 17098 2009-04-07 07:05 autoscan
> -rwxr-xr-x 1 root root 33799 2009-04-07 07:05 autoupdate
> -rwxr-xr-x 1 root root 21323 2009-06-17 10:42 cklength
> -rwxr-xr-x 1 root root 21359 2009-06-17 10:42 eolstrip
> -rwxr-xr-x 1 root root 549352 2009-05-31 10:53 i386-rtems4.10-addr2line
> -rwxr-xr-x 2 root root 573752 2009-05-31 10:53 i386-rtems4.10-ar
> -rwxr-xr-x 2 root root 1007128 2009-05-31 10:53 i386-rtems4.10-as
> -rwxr-xr-x 2 root root 197780 2009-05-31 22:14 i386-rtems4.10-c++
> -rwxr-xr-x 1 root root 549160 2009-05-31 10:53 i386-rtems4.10-c++filt
> -rwxr-xr-x 1 root root 196788 2009-05-31 22:14 i386-rtems4.10-cpp
> -rwxr-xr-x 2 root root 197780 2009-05-31 22:14 i386-rtems4.10-g++
> -rwxr-xr-x 2 root root 195096 2009-05-31 22:14 i386-rtems4.10-gcc
> -rwxr-xr-x 2 root root 195096 2009-05-31 22:14 i386-rtems4.10-gcc-4.4.0
> -rwxr-xr-x 1 root root 16412 2009-05-31 22:13 i386-rtems4.10-gccbug
> -rwxr-xr-x 1 root root 27456 2009-05-31 22:14 i386-rtems4.10-gcov
> -rwxr-xr-x 1 root root 2579296 2009-05-31 11:30 i386-rtems4.10-gdb
> -rwxr-xr-x 1 root root 2579296 2009-05-31 11:30 i386-rtems4.10-gdbtui
> -rwxr-xr-x 1 root root 611524 2009-05-31 10:53 i386-rtems4.10-gprof
> -rwxr-xr-x 2 root root 836824 2009-05-31 10:53 i386-rtems4.10-ld
> -rwxr-xr-x 2 root root 558932 2009-05-31 10:53 i386-rtems4.10-nm
> -rwxr-xr-x 2 root root 706488 2009-05-31 10:53 i386-rtems4.10-objcopy
> -rwxr-xr-x 2 root root 1034616 2009-05-31 10:53 i386-rtems4.10-objdump
> -rwxr-xr-x 2 root root 573756 2009-05-31 10:53 i386-rtems4.10-ranlib
> -rwxr-xr-x 1 root root 253788 2009-05-31 10:53 i386-rtems4.10-readelf
> -rwxr-xr-x 1 root root 553444 2009-05-31 10:53 i386-rtems4.10-size
> -rwxr-xr-x 1 root root 549352 2009-05-31 10:53 i386-rtems4.10-strings
> -rwxr-xr-x 2 root root 706484 2009-05-31 10:53 i386-rtems4.10-strip
> -rwxr-xr-x 1 root root 4060 2009-04-07 07:05 ifnames
> -rwxr-xr-x 1 root root 3083 2009-06-17 10:42 install-if-change
> -rwxr-xr-x 1 root root 26117 2009-06-17 10:42 packhex
> -rwxr-xr-x 1 root root 19322 2009-06-17 10:42 rtems-bin2c
> -rwxr-xr-x 1 root root 29155 2009-06-17 10:42 unhex
>
> We can see that "i386-rtems4.10-gnatmake" is missing.
>
As are the other GNAT related utilities. What does "i386-rtems4.10-gcc -v" say ?
If the prebuilt tools don't support Ada (I've never used them as I've
always built my own tool kit from source) then you will have to build
your own toolkit.
The instructions for doing that are in the RTEMS Wiki, but be aware
that you will need to find the current patch versions as those in the
Wiki were out of date when I built a new toolkit for RTEMS 4.9.2.
Simon.
--
Simon Clubley
simon.clubley at googlemail.com
More information about the users
mailing list