[Mono-dev] Failing building mono on musl

Angelo Compagnucci angelo.compagnucci at gmail.com
Wed Sep 7 20:43:50 UTC 2016


Hello All,

I'm trying to compile mono on buildroot fo an ARM target. I'm using musl,
and while in the past I found (and fixed) several bug, this time I cannot
find the source of the problem.

This is the error log:

../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-threads.o):
In function `mono_thread_get_tls_offset':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/metadata/threads.c:260:
undefined reference to `tls_current_object'
./.libs/libmini-static.a(libmini_static_la-mini-runtime.o): In function
`mono_get_jit_tls_offset':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/mini/mini-runtime.c:766:
undefined reference to `mono_jit_tls'
./.libs/libmini-static.a(libmini_static_la-mini-runtime.o): In function
`mono_get_lmf_addr_tls_offset':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/mini/mini-runtime.c:786:
undefined reference to `mono_lmf_addr'
../../mono/metadata/.libs/libmonoruntime-static.a(libmonoruntime_static_la-domain.o):
In function `mono_domain_get_tls_offset':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/metadata/domain.c:162:
undefined reference to `tls_appdomain'
collect2: error: ld returned 1 exit status
make[6]: *** [mono-boehm] Errore 1
make[6]: *** Attesa per i processi non terminati....
../../mono/metadata/.libs/libmonoruntimesgen-static.a(libmonoruntimesgen_static_la-threads.o):
In function `mono_thread_get_tls_offset':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/metadata/threads.c:260:
undefined reference to `tls_current_object'
./.libs/libmini-static.a(libmini_static_la-mini-runtime.o): In function
`mono_get_jit_tls_offset':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/mini/mini-runtime.c:766:
undefined reference to `mono_jit_tls'
./.libs/libmini-static.a(libmini_static_la-mini-runtime.o): In function
`mono_get_lmf_addr_tls_offset':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/mini/mini-runtime.c:786:
undefined reference to `mono_lmf_addr'
../../mono/metadata/.libs/libmonoruntimesgen-static.a(libmonoruntimesgen_static_la-domain.o):
In function `mono_domain_get_tls_offset':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/metadata/domain.c:162:
undefined reference to `tls_appdomain'
../../mono/metadata/.libs/libmonoruntimesgen-static.a(libmonoruntimesgen_static_la-sgen-mono.o):
In function `sgen_client_init':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/metadata/sgen-mono.c:2862:
undefined reference to `sgen_thread_info'
../../mono/sgen/.libs/libmonosgen-static.a(libmonosgen_static_la-sgen-alloc.o):
In function `sgen_init_allocator':
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/sgen/sgen-alloc.c:553:
undefined reference to `tlab_next_addr'
/home/angelo/DEV/BUILDROOT/br_mono_musl/build/mono-4.4.2.11/mono/sgen/sgen-alloc.c:554:
undefined reference to `tlab_temp_end'
collect2: error: ld returned 1 exit status

Have any idea on why it's failing?

Thanks!

-- 
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-devel-list/attachments/20160907/8c5961dc/attachment.html>


More information about the Mono-devel-list mailing list