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

Rodrigo Kumpera kumpera at gmail.com
Mon Apr 7 20:48:57 EDT 2008


Joe,

I usually point all prefixes to ~/local/. This makes me avoid playing with
permissions as usually only the root user can write to /usr.

Rodrigo


On Mon, Apr 7, 2008 at 6:17 PM, Joe Audette <joe.audette at gmail.com> wrote:

> Hi All,
>
> Thanks for all the help. I installed a few more gcc related things
> like for java, objective c, objective c++ etc and also updated to
> r100047
> And now I got through make with no errors. I don't know which of those
> solved it. I'll bump up the ram on this vm too just in case.
>
> Before I go ahead and install this was wondering about the prefix I
> should use. I've been using --prefix=/usr for the last few years only
> because I saw an example like that not because I understand it ;-D
> So please what, if any prefix is advisable? I thought the purpose is
> to put the custom compiled mono somewhere else since the 1.9 rpms are
> also installed
>
> Many Thanks,
>
> Joe
>
> On Mon, Apr 7, 2008 at 4:45 PM, Sebastien Pouliot
> <sebastien.pouliot at gmail.com> wrote:
> > Hello Joe,
> >
> >
> >  On Mon, 2008-04-07 at 16:30 -0400, Joe Audette 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
> >
> >  I use OpenSUSE 10.3 on my laptop, compile SVN HEAD every day (sometime
> >  several times) and never got this error (well not with this OS/GCC
> >  versions ;-)
> >
> >  poupou at poupou:~/svn/mono> gcc --version
> >  gcc (GCC) 4.2.1 (SUSE Linux)
> >  Copyright (C) 2007 Free Software Foundation, Inc.
> >  This is free software; see the source for copying conditions.  There is
> NO
> >  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> >
> >  Did you try doing a "make clean" ?
> >
> >  Note: This is unrelated to your problem but using prefix=/usr seems a
> >  bit risky to me.
> >
> >
> >
> >  > > >
> >  > > >
> >  > >  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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080407/79458df2/attachment.html 


More information about the Mono-devel-list mailing list