gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Installing GNU Modula2 in a Win32/Cygwin environment


From: Gaius Mulley
Subject: Re: [Gm2] Installing GNU Modula2 in a Win32/Cygwin environment
Date: 10 Feb 2008 15:04:59 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

David Moreno <address@hidden> writes:

> Hi all,
> Since some people seem to have problems installing GNU
> Modula-2 in 
> Win32/Cygwin environments, I have written this small
> guide from my own 
> experience (I got a Windows laptop for some time):
> 
> REQUIREMENTS
> ----------------------
> -Cygwin environment (http://www.cygwin.com)
> -Install the following Cygwin packages:
>     -gcc
>     -make
>     -diffutils
>     -flex
> 
> OBTAINING AND PATCHING THE SOURCES
> ----------------------------------------------------------
> -Download the GCC/GNU Modula-2 tarball from 
> http://floppsie.comp.glam.ac.uk/download/c/gcc-4.1.2+gm2-cvs-latest.tar.gz
> -Uncompress the tarball: tar zxf
> gcc-4.1.2+gm2-cvs-latest.tar.gz
> -Modify the file
> gcc-4.1.2+gm2-20070818/gcc/gm2/Make-lang.in, by
> applying this 
> patch:
> --- Make-lang.in      2007-08-09 16:51:10.000000000 +0200
> +++
> /cygdrive/d/gm2/gcc-4.1.2+gm2-20070818/gcc/gm2/Make-lang.in
> 2008-02-10 
> 00:29:55.765625000 +0100
> @@ -1628,7 +1628,7 @@
>  gm2/gm2-auto:
>       mkdir gm2/gm2-auto
>  
> -gm2/pg: gm2/gm2-auto gm2/ppg gm2/gm2-auto/pg.mod \
> +gm2/pg${exeext}: gm2/gm2-auto gm2/ppg
> gm2/gm2-auto/pg.mod \
>      gm2/p2c/p2c-src/src/libp2c.a gm2/boot-bin/mklink
> gm2/gm2-libs-boot \
>      $(GM2-PPG-MODS:%.mod=gm2/gm2-compiler-boot/%.o)
>       sed -e 's/ppg/pg/' < $(srcdir)/gm2/init/ppginit >
> gm2/gm2-auto/pginit
> 
> , or just edit the file and change "gm2/pg: " by
> "gm2/pg${exeext}: ". (*)
> 
> COMPILING THE SOURCES
> ------------------------------------
> -Create the directory where the compiler would be
> installed. VERY IMPORTANT: 
> The directory must not contain spaces (e.g.: mkdir
> /cygdrive/c/gm2).
> -Create the build directory: mkdir -p build-4.1.2
> -Compile the sources:
>     - cd build-4.1.2
>     - ../gcc-4.1.2+gm2-cvs-latest/configure
> --enable-languages=c,gm2 --disable-multilib
> --enable-checking=all --prefix=/cygdrive/c/gm2
>     - make
> 
> INSTALL THE BINARIES
> -------------------------------
> - make install
> 
> I hope this guide will help Windows user enjoy the GNU
> Modula-2 compiler.
> Regards.
> 
> (*) Maybe Gaius could change this in the CVS
> repository.
> 

Hi David,

thanks for posting the cygwin install instructions and for the diff.
I've entered this change (and a couple of other $(exeext)) into the
gm2/Makefile.in and rebuilt the latest cvs tarball.  I'll include
these instructions into the documentation and reference them from the
web page in due course.

Incidentally, how difficult would it be to generate a Windows binary
package for GNU Modula-2 (say for cygwin - rather than MinGW - at
present)?  I've no knowledge about how packages are generated
for XP,

regards,
Gaius




reply via email to

[Prev in Thread] Current Thread [Next in Thread]