[Mono-dev] Error Building mono On Android: Undefined Ref to mono_threads_core_get_stack_bounds

Cyd Haselton chaselton at gmail.com
Sun May 24 14:47:44 UTC 2015


Second attempt at building on Android with the following configure:

/bld/mono/mono-4.0.0/mono $ ./configure --prefix=/usr/mono --mandir=/usr/share/man --enable-shared --disable-nls --disable-boehm --with-sysroot=/usr/gcc-4.9.2/sysroot --without-x --with-monodroid=yes  --with-libgdiplus=no --host=arm-linux-androideabi --target=arm-linux-androideabi --build=arm-linux-androideabi

When configure is done, it displays the following:

mcs source:    mcs

   Engine:
        Host:          arm-unknown-linux-androideabi
        Target:        arm-unknown-linux-androideabi
        GC:            sgen and Included Boehm GC with typed GC and parallel mark
        TLS:           pthread
        SIGALTSTACK:   no
        Engine:        Building and using the JIT
        oprofile:      no
        BigArrays:     no
        DTrace:        no
        LLVM Back End: no (dynamically loaded: no)

   Libraries:
        .NET 4.5:      yes
        MonoDroid:     yes
        MonoTouch:     no
        Xamarin.Mac:   no
        JNI support:   IKVM Native
        libgdiplus:    assumed to be installed
        zlib:          system zlib


configure: WARNING: Turning off static Mono is a risk


Running make proceeds until failing with the following errors:

../../mono/utils/.libs/libmonoutils.a(mono-threads.o): In function `mono_thread_info_get_stack_bounds':
/bld/mono/mono-4.0.0/mono/utils/mono-threads.c:839: undefined reference to `mono_threads_core_get_stack_bounds'
/usr/gcc-4.9.2/bin/ld: .libs/libmonosgen-2.0.so: hidden symbol `mono_threads_core_get_stack_bounds' isn't defined
/usr/gcc-4.9.2/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

Google returns one similar result with the same error but at a different point in the build with an earlier mono version.  The thread refers to a later build as the solution.

Any advice would be appreciated
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20150524/5b0eb409/attachment.html>


More information about the Mono-devel-list mailing list