[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Building gcc-4.7.3+gm2 on Windows7/Cygwin32
From: |
Christoph Schlegel |
Subject: |
[Gm2] Building gcc-4.7.3+gm2 on Windows7/Cygwin32 |
Date: |
Sat, 28 Sep 2013 16:00:28 +0200 |
Hello Gaius,
I can report a successfull build using gcc-4.7.3+gm2-cvs-latest.tar.gz
(27-Sep-2013) under Cygwin32 (Setup.exe version 2.829 (32
bit)) running on top of Windows 7.
Here are some instructions for those who want to do the same:
Packages needed for the build are libmpfr-dev, libgmp-dev, libmpc-dev and flex
There is no gcc-multilib package under Cygwin but it is apparently not needed.
I used the configuration from the 4.7 series documentation which works fine.
$ CXXFLAGS=-g BOOT_CFLAGS=-g CFLAGS=-g ../gcc-4.7.3/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 --enable-libgm2
After make installing the compiler you have to
export PATH=~/opt/bin:$PATH
To build the hello world example after installing the compiler you have to call
make post-install instead of make in the
directory ~/build-4.7.3/gcc/gm2/examples/hello
A problem is reported because of the 'size a.out' command (instead of a.exe)
which can be ignored. Hello world builds fine.
=== gm2 Summary ===
# of expected passes 8372
# of unexpected failures 540
# of unresolved testcases 246
The build is available here:
http://freepages.modula2.org/downloads/gcc-4.7.3+gm2.zip
You have to mkdir a directory opt in your home folder and extract the contents
of the archive in there.
I will try Cygwin64 as soon as there is time -
Greetings
Christoph
- [Gm2] Building gcc-4.7.3+gm2 on Windows7/Cygwin32,
Christoph Schlegel <=