[Mono-list] Too many heap sections

Yury Serdyuk Yury at serdyuk.botik.ru
Sun Dec 12 09:00:56 EST 2010


Rodrigo Kumpera wrote:

> This is a known limitation of Boehm. Try using sgen instead.

I have configured Mono as

> ./configure --with-gc=none --with-large-heap=yes --with-sgen=yes
>
>  mcs source:    mcs
>         olive source:
>
>    Engine:
>         GC:            sgen and included Boehm
>         GLIB:          embedded
>         TLS:           __thread
>         SIGALTSTACK:   yes
>         Engine:        Building and using the JIT
>         oprofile:      no
>         BigArrays:     no
>         DTrace:        no
>         Parallel Mark: yes
>         LLVM Back End: no (dynamically loaded: no)
>
>     Libraries:
>         Moon Profile:  no
>         MonoTouch:     no
>         JNI support:   IKVM Native
>         libgdiplus:    assumed to be installed
>         zlib:          system zlib

but got on the make step:

> CC    libmonosgen_2_0_la-mini-posix.lo
> LD    libmonosgen-2.0.la
> ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-sgen-gc.o): 
> In function `mono_gc_make_descr_for_string':
> /home/s/mono-2.8.1/mono/metadata/sgen-gc.c:870: multiple definition of 
> `mono_gc_make_descr_for_string'
> ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-null-gc.o):/home/s/mono-2.8.1/mono/metadata/null-gc.c:127: 
> first defined here
> /usr/bin/ld: Warning: size of symbol `mono_gc_make_descr_for_string' 
> changed from 3 in 
> ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-null-gc.o) 
> to 6 in 
> ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-sgen-gc.o)
> ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-sgen-gc.o): 
> In function `mono_gc_max_generation':
> /home/serdyuk/mono-2.8.1/mono/metadata/sgen-gc.c:6072: multiple 
> definition of `mono_gc_max_generation'
> ../../mono/metadata/.libs/libmonoruntimesgen.a(libmonoruntimesgen_la-null-gc.o):/home/s/mono-2.8.1/mono/metadata/null-gc.c:29: 
> first defined here

I have tried to build Mono 2.8.1.

Again, any suggestions, please ?

Regards,
                Yury


More information about the Mono-list mailing list