Newbie to RTEMS: ADA support issue
Ángel
leadzeppelin at gmail.com
Thu Jun 25 13:42:17 UTC 2009
Hi all.
I followed your tips and finally could compile ADA code by building the
cross gcc manually.
Building RTEMS with options --enable-docs --enable-networking and
--enable-tests reports the following errors:
--enable-docs
../../../rtems/doc/started/started.texi:22: @include `version.texi': No
such file or directory.
./buildc.texi:276: warning: undefined flag: VERSION.
./buildrt.texi:34: warning: undefined flag: VERSION.
./buildrt.texi:36: warning: undefined flag: VERSION.
./buildrt.texi:37: warning: undefined flag: VERSION.
./buildrt.texi:38: warning: undefined flag: VERSION.
./buildrt.texi:38: warning: undefined flag: VERSION.
./buildrt.texi:44: warning: undefined flag: VERSION.
./buildrt.texi:45: warning: undefined flag: VERSION.
./buildrt.texi:46: warning: undefined flag: VERSION.
./buildrt.texi:46: warning: undefined flag: VERSION.
./buildrt.texi:63: warning: undefined flag: VERSION.
./buildrt.texi:66: warning: undefined flag: VERSION.
./buildrt.texi:168: warning: undefined flag: VERSION.
./buildrt.texi:172: warning: undefined flag: VERSION.
./buildrt.texi:176: warning: undefined flag: VERSION.
./buildrt.texi:190: warning: undefined flag: VERSION.
./buildrt.texi:199: warning: undefined flag: VERSION.
./buildrt.texi:206: warning: undefined flag: VERSION.
./sample.texi:75: warning: undefined flag: VERSION.
./sample.texi:239: warning: undefined flag: VERSION.
makeinfo: Removing output file `started.info' due to errors; use --force
to preserve.
make[2]: *** [started.info] Error 1
make[2]: se sale del directorio `/home/aeo/RTEMS/b-rtems/doc/started'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/aeo/RTEMS/b-rtems/doc'
make: *** [all-recursive] Error 1
--enable-networking
i386-rtems4.10-gcc --pipe -DHAVE_CONFIG_H -I..
-I../../cpukit/../../../pc386/lib/include
-I../../../../../../rtems/c/src/../../cpukit/libnetworking -DINET -DNFS
-DDIAGNOSTIC -DBOOTP_COMPAT -D_KERNEL -D__BSD_VISIBLE -Wall
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -fasm
-mtune=i386 -O2 -g -MT net/libnetworking_a-if_ethersubr.o -MD -MP -MF
net/.deps/libnetworking_a-if_ethersubr.Tpo -c -o
net/libnetworking_a-if_ethersubr.o `test -f 'net/if_ethersubr.c' || echo
'../../../../../../rtems/c/src/../../cpukit/libnetworking/'`net/if_ethersubr.c
../../../../../../rtems/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:
In function 'ether_output':
../../../../../../rtems/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:152:
error: 'EHOSTDOWN' undeclared (first use in this function)
../../../../../../rtems/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:152:
error: (Each undeclared identifier is reported only once
../../../../../../rtems/c/src/../../cpukit/libnetworking/net/if_ethersubr.c:152:
error: for each function it appears in.)
make[5]: *** [net/libnetworking_a-if_ethersubr.o] Error 1
make[5]: se sale del directorio
`/home/aeo/RTEMS/b-rtems/i386-rtems4.10/c/pc386/cpukit/libnetworking'
make[4]: *** [all-recursive] Error 1
make[4]: se sale del directorio
`/home/aeo/RTEMS/b-rtems/i386-rtems4.10/c/pc386/cpukit'
make[3]: *** [all] Error 2
make[3]: se sale del directorio
`/home/aeo/RTEMS/b-rtems/i386-rtems4.10/c/pc386/cpukit'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio
`/home/aeo/RTEMS/b-rtems/i386-rtems4.10/c/pc386'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio
`/home/aeo/RTEMS/b-rtems/i386-rtems4.10/c'
make: *** [all-recursive] Error 1
--enable-tests
Making all in hello
make[5]: se ingresa al directorio
`/home/aeo/RTEMS/b-rtems/i386-rtems4.10/c/pc386/ada-tests/samples/hello'
make[5]: *** No hay ninguna regla para construir el objetivo
`ada_hello.exe.exe', necesario para `all-am'. Alto.
>>>Translation: No rule to make target `ada_hello.exe.exe', needed by
`all-am'. Stop.
make[5]: se sale del directorio
`/home/aeo/RTEMS/b-rtems/i386-rtems4.10/c/pc386/ada-tests/samples/hello'
make[4]: *** [all-recursive] Error 1
I am specially afraid of the networking problem.
Thanks to all!
2009/6/19 Ralf Corsepius <ralf.corsepius at rtems.org>
> Simon Clubley wrote:
> > On 18/06/2009, Ángel <leadzeppelin at gmail.com> wrote:
> >> Hi, Simon.
> >>
> >> $ i386-rtems4.10-gcc -v
> >
> > [snip]
> >
> >> --enable-languages=c,c++
> >
> > As pointed out in another post, and which is what I suspected, this is
> > the problem; Ada support was not built into the compiler when the RPMs
> > were built.
> Correct. We do not build Ada into the rtems RPMs.
>
> > Joel or someone else will have to tell you if this is what was
> > intended and if there's another RPM kit elsewhere to download which
> > does provide Ada support.
> None that I am aware about. Building such gcc-ada toolchains is mere
> hell and hardly possible across several distributions.
>
> > Failing that, you will have to build a tool kit from source using the
> > procedures documented in the RTEMS Wiki, making sure you use whatever
> > patches are current for the toolkit versions used to build RTEMS 4.10
> > (which I have not looked at, so I don't know which versions and
> > patches they are).
> I guess you won't like what I will say now:
>
> My advice: Forget about Ada and forget about RTEMS/Ada.
>
> Ralf
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20090625/c2784e62/attachment-0001.html>
More information about the users
mailing list