Building a Ada-RTMES powerpc cross for cygwin

Avy Strominger astrominger at yahoo.com
Sat Feb 19 16:09:46 UTC 2005


I just finished a successful build (cygwin, target powerpc-rtems), using 
the instructions in http://www.rtems.com/phpwiki/index.php/RTEMSAda  as 
an outline.  However, the instructions are not complete, and I had to do 
another trick.

Here is what I did:

    * I started with cygwin host and gcc 3.4.1 host compiler (available
      for download with the setup utility ay www.cygwin.org)
    * I got gcc 4.0 20050213 snapshot (available from gcc mirrors, I
      used the one at 
      ftp://ftp.funet.fi/pub/mirrors/gcc.gnu.org/pub/gcc/snapshots/). 
      Please note that this is the first snapshot that allowed a
      successful build.
    * I built an 4.0 Host compiler, using the first 4 steps of RTEMSAda
      steps, but without the --target parameter and with
      --enable-threads=win32 instead of rtems.  THIS STEP IS ABSOLUTELY
      NECESSARY, otherwise the cross gnat tools will not be built
      successfuly.  In my opinion, it should be dosumented in
      http://www.rtems.com/phpwiki/index.php/RTEMSAda.
    * I got the patch for gcc-4.0-20050213/gcc/ada/utils.c from gcc
      bugzila PR 19942.  Without it the compiler blows when building the
      runtime.  The patch is at the end of the mail.
    * Now I built the compiler, as decribed in
      http://www.rtems.com/phpwiki/index.php/RTEMSAda.  The build ended
      sucessfully.  I still didn't test anything, though.
    * As a host, I'm using WindowsXP sp2, cygwin 1.005.12

Good luck
Avy Strominger

PR 19942:

RCS file: /cvs/gcc/gcc/gcc/ada/utils.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- gcc/gcc/ada/utils.c	2005/02/12 20:02:35	1.91
+++ gcc/gcc/ada/utils.c	2005/02/13 20:08:29	1.92
@@ -1835,7 +1835,7 @@
   else if (SCALAR_INT_MODE_P (mode))
     return gnat_type_for_size (GET_MODE_BITSIZE (mode), unsignedp);
   else
-    gcc_unreachable ();
+    return NULL_TREE;
 }
 
 /* Return the unsigned version of a TYPE_NODE, a scalar type.  */




Johan Furunäs wrote:

> Have anybody succeeded to build a Ada-RTMES powerpc cross for cygwin?
> I have used gcc4.0.0 and rtmes4.7 as described 
> http://www.rtems.com/phpwiki/index.php/RTEMSAda
>
> See my previous thread concerning this issue.
>
> Thanks
> Johan
>
>




More information about the users mailing list