[Mono-dev] Please Help - problems compiling Mono from svn

Geoff Norton gnorton at novell.com
Mon Apr 7 16:39:59 EDT 2008


Joe,

   Does the VM have swap space?  How much ram is allocated?  Its  
possible gcc is running out of memory and bailing.

-g

On 7-Apr-08, at 4:35 PM, Rodrigo Kumpera wrote:

> Joe,
>
> This seens to be really odd. I'm using opensuse 10.3 with the exact  
> same gcc version you are and things compile here just fine.
>
> Please fill a bug report as it seens to be an issue with the vmware  
> image.
>
> Thanks,
> Rodrigo.
>
>
> On Mon, Apr 7, 2008 at 5:30 PM, Joe Audette <joe.audette at gmail.com>  
> wrote:
> So I guess I need to try opensuse 11 alpha so I can get gcc 4.3.0?
> For a C# guy like me thats probably easier than trying to compile my  
> own gcc
>
>
>
> On Mon, Apr 7, 2008 at 8:52 AM, Paul Melis <paul at science.uva.nl>  
> wrote:
> > Joe Audette wrote:
> >
> >
> > > Hi Paul,
> > >
> > > Thanks for the help.
> > > I'm using the opensuse 10.3 vmware image for Mono 1.9.
> > > Looking in YaST it appears I have:
> > > gcc 4.2-24
> > > I also see
> > > gcc42 version 4.2.1
> > >
> > >
> >  Perhaps an update to 4.2.1 solves it, otherwise you could try to  
> submit a
> > bug report to the gcc folks, but that might not solve your problem  
> in
> > time...
> >  If you really want to you could compile 4.2.3 (the latest in the  
> 4.2.x
> > series) yourself and try that version.
> >
> >  Paul
> >
> >
> >
> >
> > > Joe
> > >
> > >
> > > On Mon, Apr 7, 2008 at 6:18 AM, Paul Melis <paul at science.uva.nl>  
> wrote:
> > >
> > >
> > > > Hi,
> > > >
> > > >
> > > >
> > > > Joe Audette wrote:
> > > >
> > > > >I'm trying to compile mono from svn so that I can demo  
> mojoPortal at
> > > > >the MySql conference using the latest bits with support for  
> control
> > > > >adapters. I've been building mono from svn for several years  
> now and
> > > > >only lately having troubles.
> > > > >
> > > > >I'm using the Mono 1.9 VMWare (OpenSuse 10.3) machine. I've  
> added the
> > > > >needed devel packages that I know of.
> > > > >I use this script to checkout Mono:
> > > > >
> > > > >#!/bin/sh
> > > > >for u in mono mcs libgdiplus xsp mod_mono
> > > > >do
> > > > > echo "Checking out" $u
> > > > > svn co svn://anonsvn.mono-project.com/source/trunk/$u
> > > > >done
> > > > >
> > > > >Currently I have r99955
> > > > >I built libgdiplus with no problems
> > > > >I cd into the mono directory and ran autogen.sh --prefix=/usr
> > > > >
> > > > >Results:
> > > > >
> > > > >config.status: executing default commands
> > > > >
> > > > >        mcs source:    $(top_srcdir)/../mcs
> > > > >        olive source:
> > > > >
> > > > >        GC:          included
> > > > >        TLS:         __thread
> > > > >        SIGALTSTACK: yes
> > > > >        Engine:      Building and using the JIT
> > > > >        2.0 Beta:    yes
> > > > >        2.1 Alpha:   yes
> > > > >        JNI support: IKVM Native
> > > > >        libgdiplus:  assumed to be installed
> > > > >        zlib:        system zlib
> > > > >        oprofile:    no
> > > > >
> > > > >
> > > > >
> > > > >Now type `make' to compile
> > > > >linux at linux:~/share/src/mono/mono>
> > > > >
> > > > >I ran make and I get this error:
> > > > >
> > > > >make  all-am
> > > > >make[4]: Entering directory `/home/linux/share/src/mono/mono/ 
> mono/mini'
> > > > >/bin/sh ../../libtool --tag=CC   --mode=compile gcc - 
> DHAVE_CONFIG_H
> > > > >-I. -I../..   -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT - 
> DUSE_MMAP
> > > > >-DUSE_MUNMAP -D_FILE_OFFSET_BITS=64 -DUSE_COMPILER_TLS -I../..
> > > > >-I../../libgc/include -pthread -I/usr/include/glib-2.0
> > > > >-I/usr/lib/glib-2.0/include   -g -O2 -fno-strict-aliasing
> > > > >-Wdeclaration-after-statement -g -Wall -Wunused -Wmissing- 
> prototypes
> > > > >-Wmissing-declarations -Wstrict-prototypes  -Wmissing- 
> prototypes
> > > > >-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align
> > > > >-Wwrite-strings -mno-tls-direct-seg-refs -MT mini.lo -MD -MP - 
> MF
> > > > >.deps/mini.Tpo -c -o mini.lo mini.c
> > > > > gcc -DHAVE_CONFIG_H -I. -I../.. -DGC_LINUX_THREADS - 
> D_GNU_SOURCE
> > > > >-D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -D_FILE_OFFSET_BITS=64
> > > > >-DUSE_COMPILER_TLS -I../.. -I../../libgc/include -pthread
> > > > >-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -O2
> > > > >-fno-strict-aliasing -Wdeclaration-after-statement -g -Wall - 
> Wunused
> > > > >-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
> > > > >-Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno- 
> cast-qual
> > > > >-Wcast-align -Wwrite-strings -mno-tls-direct-seg-refs -MT  
> mini.lo -MD
> > > > >-MP -MF .deps/mini.Tpo -c mini.c  -fPIC -DPIC -o .libs/mini.o
> > > > >mini.c: In function 'mono_method_to_ir':
> > > > >mini.c:8266: warning: 'this' may be used uninitialized in  
> this function
> > > > >mini.c:4745: warning: 'token' may be used uninitialized in this
> > function
> > > > >gcc: Internal error: Killed (program cc1)
> > > > >Please submit a full bug report.
> > > > >See <URL:http://bugs.opensuse.org> for instructions.
> > > > >
> > > > >
> > > > Did you notice that this is a message about an internal  
> _compiler_
> > > > error? The error is not in the Mono source, but in the  
> compiler version
> > > > you're using.
> > > > What version of GCC do you have?
> > > >
> > > > Paul
> > > > _______________________________________________
> > > > Mono-devel-list mailing list
> > > > Mono-devel-list at lists.ximian.com
> > > > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
>
> --
> Joe Audette
> Software Solutions Architect
> Source Tree Solutions, LLC
> PO Box 621861
> Charlotte, NC 28262
> 704.323.8225
> joe.audette at gmail.com
> http://www.sourcetreesolutions.com
> http://www.mojoportal.com
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080407/11a1cc0c/attachment.html 


More information about the Mono-devel-list mailing list