[ top ]

Building GNU Modula-2


Licence
Documentation
Successful 0.51 builds
Older builds
Limitations
Building GNU Modula-2
GM2 development download via CVS
GNU Modula-2 binaries
GM2 and GCC tarball download
Contributing code
Objectives
Mailing list
Other languages for GCC

Currently GNU Modula-2 is grafted onto the GCC 3.3.6 source tree.

  • The easiest way to build gm2 is to download the build harness gm2-harness-0.96.tar.gz.
  • tar zxf gm2-harness-0.96.tar.gz
    cd gm2-harness-0.96
    ./configure --with-gdb --prefix=$HOME/opt
    make
    make install

  • This simple package, downloads gm2 from CVS, the latest supported gcc, gdb and the testsuite. It puts all source components in the correct place and proceeds to build gdb, gm2 and run the regression tests.

you can do manually graft the gm2 source tree onto gcc by following these instructions:

  • firstly you need to download gcc-3.3.6.tar.gz
  • then the gm2 directory (as obtained via the CVS) needs to be grafted onto the gcc source tree, configured and built.

    tar zxf gcc-3.3.6.tar.gz
    mv gm2 gcc-3.3.6/gcc
    cd gcc-3.3.6
    for i in gcc/gm2/patches/gcc/3.3.6/* ; do
       patch -p1 < $i
    done
    mkdir host-build
    cd host-build
    ../gcc-3.3.6/configure --enable-languages=c,gm2 --prefix=$HOME/opt
    make
    make install


[ top ]