[Top][All Lists]

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

Re: [Gm2] build fails under cygwin.

From: Gaius Mulley
Subject: Re: [Gm2] build fails under cygwin.
Date: Sat, 28 Nov 2009 15:16:49 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Mark <address@hidden> writes:

> Hello,
> When I build the latest version (gcc-4.1.2+gm2-20091117.tar.gz) on windows
> XP and cygwin the build fails. 
> I get the following error for file
> gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-libs/RTint.mod:
> ./xgm2 -fcheck-all -g  -funbounded-by-reference -fpim -fextended-opaque
> -Wpedantic-cast -Wpedantic-param-names -ffunction-sections -fdata-sections
> -c -B./stage1/gm2  -g -gdwarf-2 -B./
> -I../../gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-compiler
> -Igm2/gm2-libs:../../gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-libs
> ../../gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-libs/RTint.mod -o
> gm2/gm2-libs/RTint.o
> ../../gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-libs/RTint.mod:0: warning:
> -ffunction-sections may affect debugging on some targets
> Internal error: Segmentation fault
> Please report this crash to the GNU Modula-2 mailing list <address@hidden>
> make[2]: *** [gm2/gm2-libs/RTint.o] Error 1
> make[2]: Leaving directory `/cygdrive/c/Documents and
> Settings/mark.horsthuis/modula2/build-20091117/gcc'
> make[1]: *** [all-gcc] Error 2
> make[1]: Leaving directory `/cygdrive/c/Documents and
> Settings/mark.horsthuis/modula2/build-20091117'
> make: *** [all] Error 2
> When I remove the debug information options (-g and -gdwarf-2) the build
> is ok.

Hi Mark,

thanks for the info - very useful to know it is to do with -g -gdwarf-2.

> ./xgm2 -fcheck-all  -funbounded-by-reference -fpim -fextended-opaque
> -Wpedantic-cast -Wpedantic-param-names -ffunction-sections -fdata-sections
> -c -B./stage1/gm2  -B./ -I../../gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-compiler
> -Igm2/gm2-libs:../../gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-libs
> ../../gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-libs/RTint.mod -o
> gm2/gm2-libs/RTint.o
> The following files have similar compilation problems:
> gcc-4.1.2+gm2-20091117/gcc/gm2/gm2-libs-iso/RndFile.mod
> gcc-4.1.2+gm2-20091117/gcc/gm2/ulm-lib-gm2/std/StdIO.mod
> Any idea what the problem is?

I wonder if you could try leaving -g but removing -ffunction-sections
-fdata-sections as these last two options have recently been
introduced to gm2.  It maybe that they conflict with the debugging
on this target (possibly) - in any case they are less useful than -g
(for most general cases),


reply via email to

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