#40 lttng-tools fails to link
Opened 2 years ago by rossburton. Modified 2 years ago

lttng-tools fails to link with slibtool. I've not dug into this yet, but filing so it doesn't get forgotten about. The log looks like this:

rlibtool: link: aarch64-poky-linux-gcc test_ust_data.o ../../tests/utils/tap/.libs/libtap.a ../../src/common/.libs/libcommon.a ../../src/common/relayd/.li
bs/librelayd.a ../../src/common/sessiond-comm/.libs/libsessiond-comm.a ../../src/common/hashtable/.libs/libhashtable.a ../../src/common/kernel-ctl/.libs/l
ibkernel-ctl.a ../../src/common/compat/.libs/libcompat.a ../../src/common/testpoint/.libs/libtestpoint.a ../../src/common/health/.libs/libhealth.a ../../s
rc/common/config/.libs/libconfig.a ../../src/common/string-utils/.libs/libstring-utils.a ../../src/bin/lttng-sessiond/buffer-registry.o ../../src/bin/lttn
g-sessiond/cmd.o ../../src/bin/lttng-sessiond/save.o ../../src/bin/lttng-sessiond/notification-thread-commands.o ../../src/bin/lttng-sessiond/shm.o ../../
src/bin/lttng-sessiond/kernel.o ../../src/bin/lttng-sessiond/ht-cleanup.o ../../src/bin/lttng-sessiond/notification-thread.o ../../src/bin/lttng-sessiond/
lttng-syscall.o ../../src/bin/lttng-sessiond/channel.o ../../src/bin/lttng-sessiond/agent.o ../../src/bin/lttng-sessiond/kernel-consumer.o ../../src/bin/l
ttng-sessiond/trace-kernel.o ../../src/bin/lttng-sessiond/rotation-thread.o ../../src/bin/lttng-sessiond/context.o ../../src/bin/lttng-sessiond/consumer.o
 ../../src/bin/lttng-sessiond/utils.o ../../src/bin/lttng-sessiond/fd-limit.o ../../src/bin/lttng-sessiond/notification-thread-events.o ../../src/bin/lttng-sessiond/event.o ../../src/bin/lttng-sessiond/timer.o ../../src/bin/lttng-sessiond/snapshot.o ../../src/bin/lttng-sessiond/sessiond-config.o ../../src/bin/lttng-sessiond/rotate.o ../../src/bin/lttng-sessiond/modprobe.o ../../src/bin/lttng-sessiond/session.o ../../src/bin/lttng-sessiond/globals.o ../../src/bin/lttng-sessiond/thread-utils.o ../../src/bin/lttng-sessiond/process-utils.o ../../src/bin/lttng-sessiond/thread.o ../../src/bin/lttng-sessiond/tracker.o ../../src/common/.libs/libcommon.a ../../src/common/testpoint/.libs/libtestpoint.a ../../src/common/compat/.libs/libcompat.a ../../src/common/health/.libs/libhealth.a ../../src/common/sessiond-comm/.libs/libsessiond-comm.a ../../src/bin/lttng-sessiond/trace-ust.o ../../src/bin/lttng-sessiond/ust-registry.o ../../src/bin/lttng-sessiond/ust-app.o ../../src/bin/lttng-sessiond/ust-consumer.o ../../src/bin/lttng-sessiond/notify-apps.o ../../src/bin/lttng-sessiond/ust-metadata.o ../../src/bin/lttng-sessiond/agent-thread.o ../../src/bin/lttng-sessiond/ust-field-utils.o -mcpu=neoverse-n1+crc+crypto -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot -Wall -Wno-incomplete-setjmp-declaration -Wdiscarded-qualifiers -Wmissing-declarations -Wmissing-prototypes -Wmissing-parameter-type -Wold-style-definition -Wstrict-prototypes -fno-strict-aliasing -pthread -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0=/usr/src/debug/lttng-tools/2.12.3-r0 -fdebug-prefix-map=/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0=/usr/src/debug/lttng-tools/2.12.3-r0 -fdebug-prefix-map=/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot= -fdebug-prefix-map=/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now -lurcu-cds -lrt -lxml2 -lurcu-cds -lrt -lurcu-common -lurcu -lurcu-cds -lrt -lurcu-common -ldl -lrt -lurcu-common -lurcu -llttng-ust-ctl -L../../src/lib/lttng-ctl/.libs -llttng-ctl -lurcu-cds -lrt -lxml2 -lurcu-common -lurcu -ldl -o .libs/test_ust_data
rlibtool: link: ln -s test_notification test_notification.exe.wrapper
rlibtool: link: ln -s test_fd_tracker test_fd_tracker.exe.wrapper
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/globals.o: in function `init_sessiond_uuid':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/globals.c:68: undefined reference to `lttng_uuid_generate'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/trace-kernel.o: in function `trace_kernel_create_event':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/trace-kernel.c:415: undefined reference to `lttng_userspace_probe_location_copy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/trace-kernel.c:416: undefined reference to `lttng_userspace_probe_location_tracepoint_set_binary_fd'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/trace-kernel.c:398: undefined reference to `lttng_userspace_probe_location_copy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/trace-kernel.c:399: undefined reference to `lttng_userspace_probe_location_function_set_binary_fd'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_socket_send':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:112: undefined reference to `lttcomm_send_unix_sock'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:122: undefined reference to `lttcomm_close_unix_sock'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_socket_recv':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:156: undefined reference to `lttcomm_recv_unix_sock'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:166: undefined reference to `lttcomm_close_unix_sock'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_find_socket':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:410: undefined reference to `lttng_ht_lookup'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:412: undefined reference to `lttng_ht_iter_get_node_ulong'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:410: undefined reference to `lttng_ht_lookup'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:412: undefined reference to `lttng_ht_iter_get_node_ulong'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_allocate_socket':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:436: undefined reference to `lttng_ht_node_init_ulong'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_add_socket':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:452: undefined reference to `lttng_ht_add_unique_ulong'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_find_socket':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:410: undefined reference to `lttng_ht_lookup'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:412: undefined reference to `lttng_ht_iter_get_node_ulong'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_del_socket':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:469: undefined reference to `lttng_ht_del'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_destroy_socket':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:501: undefined reference to `lttcomm_close_unix_sock'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_create_output':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:528: undefined reference to `lttng_ht_new'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_find_socket':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:410: undefined reference to `lttng_ht_lookup'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:412: undefined reference to `lttng_ht_iter_get_node_ulong'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_create_output':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:528: undefined reference to `lttng_ht_new'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_set_network_uri':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:734: undefined reference to `uri_compare'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:734: undefined reference to `uri_compare'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_send_fds':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:847: undefined reference to `lttcomm_send_fds_unix_sock'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_init_ask_channel_comm_msg':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:950: undefined reference to `lttng_trace_chunk_get_id'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_init_add_channel_comm_msg':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1033: undefined reference to `lttng_trace_chunk_get_id'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_send_relayd_socket':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1154: undefined reference to `relayd_create_session'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1165: undefined reference to `relayd_close'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_init':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1790: undefined reference to `lttng_uuid_copy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_create_trace_chunk':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1840: undefined reference to `lttng_trace_chunk_get_name'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1860: undefined reference to `lttng_trace_chunk_get_creation_timestamp'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1869: undefined reference to `time_to_iso8601_str'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1875: undefined reference to `lttng_trace_chunk_get_id'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1965: undefined reference to `lttng_directory_handle_put'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1888: undefined reference to `lttng_trace_chunk_borrow_chunk_directory_handle'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1894: undefined reference to `lttng_trace_chunk_get_credentials'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1904: undefined reference to `lttng_trace_chunk_create_subdirectory'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1912: undefined reference to `lttng_directory_handle_create_from_handle'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_close_trace_chunk':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:1993: undefined reference to `lttng_dynamic_buffer_init'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:2000: undefined reference to `lttng_trace_chunk_get_close_command'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:2088: undefined reference to `lttng_dynamic_buffer_reset'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:2015: undefined reference to `lttng_trace_chunk_get_id'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:2024: undefined reference to `lttng_trace_chunk_get_close_timestamp'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:2060: undefined reference to `lttng_dynamic_buffer_set_size'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:2035: undefined reference to `lttng_trace_chunk_command_type_get_name'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/consumer.o: in function `consumer_trace_chunk_exists':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/consumer.c:2120: undefined reference to `lttng_trace_chunk_get_id'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/utils.o: in function `notify_thread_pipe':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/utils.c:33: undefined reference to `lttng_write'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/utils.o: in function `ht_cleanup_push':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/utils.c:51: undefined reference to `lttng_write'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/tracker.o: in function `match_inclusion_set_value':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:159: undefined reference to `process_attr_tracker_value_equal'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/tracker.o: in function `process_attr_tracker_lookup':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:172: undefined reference to `process_attr_value_hash'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/tracker.o: in function `process_attr_tracker_remove_value_node':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:78: undefined reference to `process_attr_value_destroy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/tracker.o: in function `process_attr_tracker_inclusion_set_add_value':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:210: undefined reference to `process_attr_value_copy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:217: undefined reference to `process_attr_value_hash'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/tracker.o: in function `process_attr_tracker_remove_value_node':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:78: undefined reference to `process_attr_value_destroy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/tracker.o: in function `process_attr_tracker_get_inclusion_set':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:272: undefined reference to `lttng_process_attr_values_create'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:309: undefined reference to `lttng_process_attr_values_destroy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:310: undefined reference to `process_attr_value_destroy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/tracker.o: in function `lttng_dynamic_pointer_array_add_pointer':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/common/dynamic-array.h:133: undefined reference to `lttng_dynamic_array_add_element'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/tracker.o: in function `process_attr_tracker_get_inclusion_set':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/tracker.c:288: undefined reference to `process_attr_value_copy'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/notification-thread-commands.o: in function `run_command_wait':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/notification-thread-commands.c:37: undefined reference to `lttng_write'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/notification-thread-commands.c:50: undefined reference to `lttng_waiter_wait'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/notification-thread-commands.o: in function `init_notification_thread_command':
/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/notification-thread-commands.c:22: undefined reference to `lttng_waiter_init'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/notification-thread-commands.c:22: undefined reference to `lttng_waiter_init'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/notification-thread-commands.c:22: undefined reference to `lttng_waiter_init'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/notification-thread-commands.c:22: undefined reference to `lttng_waiter_init'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: /usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/notification-thread-commands.c:22: undefined reference to `lttng_waiter_init'
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: ../../src/bin/lttng-sessiond/notification-thread-commands.o:/usr/src/debug/lttng-tools/2.12.3-r0/build/src/bin/lttng-sessiond/../../../../lttng-tools-2.12.3/src/bin/lttng-sessiond/notification-thread-commands.c:22: more undefined references to `lttng_waiter_init' follow
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: .libs/test_kernel_data: hidden symbol `lttng_trace_chunk_create_subdirectory' isn't defined
/yocto/ross/build/tmp/work/neoversen1-poky-linux/lttng-tools/2.12.3-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/10.2.0/ld: final link failed: bad value

For future reference try rdlibtool for debugging, it provides more helpful logs :)

Most of this is a lttng-tools bug, they are linking tests directly with object files created while building lttng-sessiond and some other programs which is not correct. Additionally they forgot -Wl, for some linker commands.

The third issue might be a slibtool issue though.

rdlibtool --mode=execute objcopy --only-keep-debug prog prog.debug

rdlibtool: lconf: {.name="libtool"}.
rdlibtool: fdcwd: {.fdcwd=AT_FDCWD, .realpath="/tmp/lttng-tools/tests/regression/ust/baddr-statedump"}.
rdlibtool: lconf: fstatat(AT_FDCWD,".",...) = 0 {.st_dev = 45, .st_ino = 10586}.
rdlibtool: lconf: openat(AT_FDCWD,"libtool",O_RDONLY,0) = -1 [ENOENT].
rdlibtool: lconf: openat(AT_FDCWD,"../",O_DIRECTORY,0) = 3.
rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 45, .st_ino = 10584}.
rdlibtool: lconf: openat(3,"libtool",O_RDONLY,0) = -1 [ENOENT].
rdlibtool: lconf: openat(3,"../",O_DIRECTORY,0) = 4.
rdlibtool: lconf: fstat(4,...) = 0 {.st_dev = 45, .st_ino = 10420}.
rdlibtool: lconf: openat(4,"libtool",O_RDONLY,0) = -1 [ENOENT].
rdlibtool: lconf: openat(4,"../",O_DIRECTORY,0) = 3.
rdlibtool: lconf: fstat(3,...) = 0 {.st_dev = 45, .st_ino = 10407}.
rdlibtool: lconf: openat(3,"libtool",O_RDONLY,0) = -1 [ENOENT].
rdlibtool: lconf: openat(3,"../",O_DIRECTORY,0) = 4.
rdlibtool: lconf: fstat(4,...) = 0 {.st_dev = 45, .st_ino = 9617}.
rdlibtool: lconf: openat(4,"libtool",O_RDONLY,0) = 3.
rdlibtool: lconf: found "/tmp/lttng-tools/libtool".
rdlibtool: execute: objcopy --only-keep-debug prog prog.debug
objcopy: prog: file format not recognized
make[4]: *** [Makefile:807: prog.debug] Error 1
make[4]: Leaving directory '/tmp/lttng-tools/tests/regression/ust/baddr-statedump'
make[3]: *** [Makefile:566: install-recursive] Error 1
make[3]: Leaving directory '/tmp/lttng-tools/tests/regression/ust'
make[2]: *** [Makefile:825: install-recursive] Error 1
make[2]: Leaving directory '/tmp/lttng-tools/tests/regression'
make[1]: *** [Makefile:554: install-recursive] Error 1
make[1]: Leaving directory '/tmp/lttng-tools/tests'
make: *** [Makefile:650: install-recursive] Error 1

Note I added $(LIBTOOL) ---mode=execute myself, before that it was executing objcopy directly on the slibtool wrapper script instead of the real binary, but I would think slibtool should redirect to the real binary in this case with --mode=execute?

Login to comment on this ticket.

Metadata
Attachments 1
Attached 2 years ago View Comment