gm2
[Top][All Lists]
Advanced

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

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


From: David Moreno
Subject: [Gm2] Installing GNU Modula2 in a Win32/Cygwin environment
Date: Sun, 10 Feb 2008 14:18:04 +0100 (CET)

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.



       
______________________________________________ 
¿Con Mascota por primera vez? Sé un mejor Amigo. Entra en Yahoo! Respuestas 
http://es.answers.yahoo.com/info/welcome




reply via email to

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