[Mono-dev] Failing building mono on musl

Angelo Compagnucci angelo.compagnucci at gmail.com
Thu Sep 8 08:48:48 UTC 2016


Hi Vlad,

2016-09-08 0:10 GMT+02:00 Vlad Brezae <vlbrez at microsoft.com>:

> Hi Angelo,
>
>       Sounds like a problem with __thread keyword. You should be able to
> work around by adding --with-tls=pthread to autogen.
>

Thanks for the tips, it made my day!

Sincerely, Angelo!


>
> Vlad
>
> From: Mono-devel-list <mono-devel-list-bounces at lists.dot.net> on behalf
> of Angelo Compagnucci <angelo.compagnucci at gmail.com>
> Date: Wednesday, September 7, 2016 at 11:43 PM
> To: "Mono-devel-list at lists.ximian.com" <Mono-devel-list at lists.ximian.com>
> Subject: [Mono-dev] Failing building mono on musl
>
> 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
>



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


More information about the Mono-devel-list mailing list