gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] Problems with the build of gm2 under Cygwin


From: Gaius Mulley
Subject: Re: [Gm2] Problems with the build of gm2 under Cygwin
Date: 24 Oct 2008 14:43:44 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

"Vanessa Bodard" <address@hidden> writes:

> Hi all,
> 
> I'm currently trying to install gm2 on Windows with Cygwin.
> I have followed the howto made by David Moreno given here
> http://lists.gnu.org/archive/html/gm2/2008-02/msg00002.html
> 
> But a failure happens with the make command.
> Here is the end of the log on the terminal:
> 
> 
>                              gm2/gm2-compiler-boot/m2flex.o main.o
> tree-browser.o libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a
> -lintl  ../libiberty/libiberty.a
> gm2/gm2-compiler-boot/gm2.a(M2LexBuf.o): In function `AddTo':
> /cygdrive/d/TeleChgt/gm2/build/gcc/gm2/gm2-compiler-boot/M2LexBuf.c:173:
> undefined reference to `_m2flex_GetLineNo'
> [...Lot of others undefined reference...]
> collect2: ld returned 1 exit status
> make[3]: *** [stage1/gm2/cc1gm2.exe] Error 1
> make[3]: Leaving directory `/cygdrive/d/TeleChgt/gm2/build/gcc'
> cp: cannot stat `stage1/gm2/cc1gm2.exe': No such file or directory
> make[2]: *** [cc1gm2.exe] Error 1
> make[2]: Leaving directory `/cygdrive/d/TeleChgt/gm2/build/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/cygdrive/d/TeleChgt/gm2/build'
> make: *** [all] Error 2
> 
> Did someone have the same problems?
> Did I miss something?
> 
> If this can helps, the version of gcc is "gcc version 3.4.4 (cygming
> special, gdc 0.12, using dmd 0.125)".

Hi Vanessa,

I've just built the latest gm2 with the same cygwin 
gcc version 3.4.4 , gdc 0.12, using dmd 0.125.

Here is the build script with the configure parameters I used:

---
#!/bin/sh

rm -rf build
mkdir -p build
cd build
../gcc-4.1.2+gm2-cvs-latest/configure   --prefix=/gm2/opt \
  --disable-multilib --enable-checking=all --enable-languages=c,c++,gm2
make
cd gcc
make check-gm2
---

(It now requires c++ to be built).  And downloaded the latest tarball:

wget http://floppsie.comp.glam.ac.uk/download/c/gcc-4.1.2+gm2-cvs-latest.tar.gz
tar zxf gcc-4.1.2+gm2-cvs-latest.tar.gz

For a clean build you will also need to install Python (in addition to
the normal gcc dependency requirements:  flex, texinfo, binutils,
autotools-dev).

regards,
Gaius




reply via email to

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