[Mono-dev] Failing building mono on musl

Timotheus Pokorra timotheus.pokorra at solidcharity.com
Thu Sep 8 04:49:19 UTC 2016


Hello Angelo,

not sure if it is related, but for the Fedora packages for Mono 4.6
Beta, I needed to patch mono/mini/mini-arm.c:
http://pkgs.fedoraproject.org/cgit/rpms/mono.git/tree/mono-4.6.0-patch_arm_fast_tls.patch

Timotheus


On 7 September 2016 at 22:43, Angelo Compagnucci
<angelo.compagnucci at gmail.com> wrote:
> 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
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.dot.net
> http://lists.dot.net/mailman/listinfo/mono-devel-list
>



-- 
Kontaktdaten:
in Plauen: 03741 7424995


More information about the Mono-devel-list mailing list