lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] Statically linking LTTng to an application built with MUSL toolchain
@ 2023-01-11 13:08 Mousa, Anas via lttng-dev
  2023-01-19 11:48 ` Yitschak, Yehuda via lttng-dev
  0 siblings, 1 reply; 2+ messages in thread
From: Mousa, Anas via lttng-dev @ 2023-01-11 13:08 UTC (permalink / raw)
  To: lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 1120 bytes --]

Hello,


I've built the urcu, lttng-ust and lttng-tools with the musl toolchain, and upon statically linking the application with the lttng-ust

archive (just as documented here: https://lttng.org/docs/v2.13/#doc-building-tracepoint-providers-and-user-application),

the trace-point constructors attempting to dlopen() of liblttng-ust-tracepoint.so.1  fail as the debug logs show:

lttng-ust-tracepoint [1581544]: dlopen() failed to find 'liblttng-ust-tracepoint.so.1', tracepoints in this binary won't be registered. (at addr=0x400490 in lttng_ust_tracepoints_print_disabled_message() at /usr/aarch64-unknown-linux-musl/sys-root//include/lttng/tracepoint.h:426)

although that shared object does exist in the system, and dlerror() returned Dynamic loading not supported

(Note: When linking dynamically, the dlopen() succeeds but other platform-dependent issues arise).

I need to link statically rather than dynamically, do statically linked programs using musl libc support dlopen()?

if there's no such support, is there any way around?


Would appreciate any input,

Best Regards,

Anas.


[-- Attachment #1.2: Type: text/html, Size: 3488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [lttng-dev] Statically linking LTTng to an application built with MUSL toolchain
  2023-01-11 13:08 [lttng-dev] Statically linking LTTng to an application built with MUSL toolchain Mousa, Anas via lttng-dev
@ 2023-01-19 11:48 ` Yitschak, Yehuda via lttng-dev
  0 siblings, 0 replies; 2+ messages in thread
From: Yitschak, Yehuda via lttng-dev @ 2023-01-19 11:48 UTC (permalink / raw)
  To: Mousa, Anas, lttng-dev


[-- Attachment #1.1: Type: text/plain, Size: 1186 bytes --]

Bumping.

Appreciate your comments on this

Yehuda



Hello,



I've built the urcu, lttng-ust and lttng-tools with the musl toolchain, and upon statically linking the application with the lttng-ust

archive (just as documented here: https://lttng.org/docs/v2.13/#doc-building-tracepoint-providers-and-user-application),

the trace-point constructors attempting to dlopen() of liblttng-ust-tracepoint.so.1  fail as the debug logs show:

lttng-ust-tracepoint [1581544]: dlopen() failed to find 'liblttng-ust-tracepoint.so.1', tracepoints in this binary won't be registered. (at addr=0x400490 in lttng_ust_tracepoints_print_disabled_message() at /usr/aarch64-unknown-linux-musl/sys-root//include/lttng/tracepoint.h:426)

although that shared object does exist in the system, and dlerror() returned Dynamic loading not supported

(Note: When linking dynamically, the dlopen() succeeds but other platform-dependent issues arise).

I need to link statically rather than dynamically, do statically linked programs using musl libc support dlopen()?

if there's no such support, is there any way around?



Would appreciate any input,

Best Regards,

Anas.


[-- Attachment #1.2: Type: text/html, Size: 5060 bytes --]

[-- Attachment #2: Type: text/plain, Size: 156 bytes --]

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-19 11:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-11 13:08 [lttng-dev] Statically linking LTTng to an application built with MUSL toolchain Mousa, Anas via lttng-dev
2023-01-19 11:48 ` Yitschak, Yehuda via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).