The GNU Modula-2 front end to GCC

Debian build on gcc-4.7 branch

To build gm2 based on the 4.7 series of GCC you will need to install:

$ sudo apt-get install gcc-multilib libmpfr-dev libgmp-dev libmpc-dev flex

To download and extract the tarball:

$ wget
$ tar zxf gcc-4.7.4+gm2-git-latest.tar.gz

To configure:

$ mkdir build-4.7.4
$ cd build-4.7.4
  ../gcc-4.7.4+gm2-git-latest/gm2/gcc-versionno/configure \
  --prefix=$HOME/opt \
  --libexecdir=$HOME/opt/lib \
  --enable-shared \
  --enable-threads=posix --enable-__cxa_atexit \
  --enable-clocale=gnu --enable-languages=c,c++,gm2 \
  --disable-multilib --disable-bootstrap --enable-checking

To compile:

$ make

To install:

$ make install