Joel Sherrill | 11 Sep 2007 01:21
Gravatar

Cross Compiling Ada Sockets

Hi,

Samuel .. hello .. it has been a long time :-D

I am trying to compile adasockets 1.8.5 to
on Fedora 7 to target powerpc-rtems4.8.  The
cross compiler itself works well.  I
can't seem to make the autoconf script
happy at all.

This was my most obvious attempt:

../adasockets-1.8.5/configure \
  --disable-examples \
   --build=`../adasockets-1.8.5/support/config.guess` \
   --host=`../adasockets-1.8.5/support/config.guess` \
  --target=powerpc-rtems4.8

I ended up with a set of i386 ELF .o's.  Not what I wanted.
So I tried this:

../adasockets-1.8.5/configure \
  --disable-examples \
   --build=`../adasockets-1.8.5/support/config.guess` \
   --host=powerpc-rtems4.8 \
  --target=powerpc-rtems4.8

This is MUCH closer I think but support/adacompiler looks
to be hard-coded to the native gnatmake.

(Continue reading)

Joel Sherrill | 17 Sep 2007 22:55
Gravatar

RTEMS Port of Ada Sockets

Hi,

I now have a port of Ada Sockets to RTEMS.  I have
tested on the i386 and PowerPC.  There are two
issues but those aren't enough to make this not worth
submitting at this point.

+ As best I can call, stream_listener and stream_sender
MUST be on the same endian CPUs. I assume this is just
an issue with the example but will defer to more those
more knowledgeable about what is going on in the test.

+ multicast does not work from Ada.  But as of this
moment in time, I don't have a working C example on
RTEMS so I can't blame that on my port.

I did NOT autoconf the RTEMS port.  I followed the VMS
model of dedicated Makefiles.  There is a shell script to
generate the C program to run on the RTEMS target to
get the sockets-constants.ads.  Once you get that, you
build the src, then the examples.

There is a README.RTEMS in the top directory.

Hopefully this is worth merging.  Please let me know.

--joel
(Continue reading)


Gmane