From joel.sherrill at oarcorp.com Tue Sep 11 01:21:22 2007 From: joel.sherrill at oarcorp.com (Joel Sherrill) Date: Mon, 10 Sep 2007 18:21:22 -0500 Subject: [adasockets] Cross Compiling Ada Sockets Message-ID: <46E5D172.3000405@oarcorp.com> 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. And I need to pass in some extra CFLAGS and LDFLAGS to the cross C compiler. Any suggestions on compiling this cross would be most appreciated Thanks in advance. --joel sherrill From joel.sherrill at oarcorp.com Mon Sep 17 22:55:55 2007 From: joel.sherrill at oarcorp.com (Joel Sherrill) Date: Mon, 17 Sep 2007 15:55:55 -0500 Subject: [adasockets] RTEMS Port of Ada Sockets Message-ID: <46EEE9DB.6070401@oarcorp.com> 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: adasockets-1.8.5-rtems.diff.bz2 Type: application/x-bzip Size: 9013 bytes Desc: not available Url : http://lists.rfc1149.net/pipermail/adasockets/attachments/20070917/b6f3adc4/attachment.bin