Changes between Version 13 and Version 14 of Projects/GCCGoRTEMS


Ignore:
Timestamp:
Jul 17, 2010, 9:29:38 PM (9 years ago)
Author:
Vinutheraj
Comment:

/* Building gccgo */

Legend:

Unmodified
Added
Removed
Modified
  • Projects/GCCGoRTEMS

    v13 v14  
    8282}}}
    8383= Building gccgo =
     84= Download and patch gccgo =
    8485
    8586The gccgo source code is accessible via Subversion. The gcc web site has [http://gcc.gnu.org/svn.html instructions for getting the gcc source code]. The gccgo source code is a branch of the main gcc code repository: svn://gcc.gnu.org/svn/gcc/branches/gccgo.
     
    9192
    9293Now, we have to patch this gccgo for RTEMS. The patch can be taken from ''rtems/contrib/crossrpms/patches''. Currently (16-Jul-2010), there is no gccgo patch in that folder, but there is a gcc-core-4.5.0-XXX.patch. Apply that to gccgo. One hunk will be rejected (the one related to missing file lm32.h), and one hunk related to config.gcc needs to be applied manually.
     94= Download and setup gmp and mpfr libraries =
     95
     96The gmp and mpfr libraries are used to help gccgo perform optimisations. Download mpfr-2.4.1.tar.gz from http://www.mpfr.org/mpfr-2.4.1/ and gmp-4.3.2.tar.gz from http://gmplib.org/. These are the version numbers compatible with gccgo at this point in time (17-Jul-2010).
     97
     98Now put links to these source directories inside the gccgo source directory.
     99{{{
     100tar zxf mpfr-2.4.1.tar.gz
     101tar zxf gmp-4.3.2.tar.gz
     102cd gccgo
     103ln -s ../mpfr-2.4.1 ./mpfr
     104ln -s ../gmp-4.3.2 ./gmp
     105cd ..
     106}}}
     107= Download and setup newlib =
     108
    93109
    94110Now, after patching, we are ready to build gccgo for RTEMS. We can choose to build multilib or not. The commands shown here are to build non-multilib. You can choose to build go with c++ too.
     
    110126
    111127TBD.
    112 = References =
     128=  =References==
    113129
    114130 *  [http://golang.org/ Go Language]