[lttng-dev] 2.13-rc2 fails to build with buildroot crosscompiler
Norbert Lange
nolange79 at gmail.com
Thu May 20 09:52:27 EDT 2021
Hello,
many tests fail to build, apparently because transitive dependencies
are not found.
I managed to patch out building the test sub-directory, at which
points the errors are gone,
I dont know how to fix it with automake, seems like
/tmp/ZBuild/build/lttng-libust-2.13.0-rc2/src/lib/lttng-ust/.libs
should be added to library search paths.
Norbert
bin/bash ../../../../libtool --tag=CC --mode=link
/tmp/ZBuild/host/bin/x86_64-linux-gnu-gcc -Werror=old-style-definition
-DLTTNG_UST_COMPAT_API_VERSION=1 -fno-strict-aliasing -Wall -Wextra
-Wmissing-prototypes -Wmissing-declarations -Wnull-dereference -Wundef
-Wshadow -Wjump-misses-init -Wsuggest-attribute=format
-Wnested-externs -Wwrite-strings -Wformat=2 -Wstrict-aliasing
-Wmissing-noreturn -Winit-self -Wduplicated-cond -Wduplicated-branches
-Wlogical-op -Wno-sign-compare -Wno-missing-field-initializers
-Wno-null-dereference -Wold-style-definition -Wstrict-prototypes
-pthread -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=1 -o
ust-fields-compatapi1 ust_fields_compatapi1-ust-fields.o
ust_fields_compatapi1-tp.o
../../../../src/lib/lttng-ust/liblttng-ust.la -ldl
libtool: link: /tmp/ZBuild/host/bin/x86_64-linux-gnu-gcc
-Werror=old-style-definition -DLTTNG_UST_COMPAT_API_VERSION=1
-fno-strict-aliasing -Wall -Wextra -Wmissing-prototypes
-Wmissing-declarations -Wnull-dereference -Wundef -Wshadow
-Wjump-misses-init -Wsuggest-attribute=format -Wnested-externs
-Wwrite-strings -Wformat=2 -Wstrict-aliasing -Wmissing-noreturn
-Winit-self -Wduplicated-cond -Wduplicated-branches -Wlogical-op
-Wno-sign-compare -Wno-missing-field-initializers
-Wno-null-dereference -Wold-style-definition -Wstrict-prototypes
-pthread -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=1 -o
ust-fields-compatapi1 ust_fields_compatapi1-ust-fields.o
ust_fields_compatapi1-tp.o
../../../../src/lib/lttng-ust/.libs/liblttng-ust.so -ldl -pthread
-Wl,-rpath -Wl,/tmp/ZBuild/build/lttng-libust-2.13.0-rc2/src/lib/lttng-ust/.libs
x86_64-linux-gnu/bin/ld: warning: liblttng-ust-common.so.1, needed by
../../../src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try using
-rpath or -rpath-link)
x86_64-linux-gnu/bin/ld: warning: liblttng-ust-tracepoint.so.1, needed
by ../../../src/lib/lttng-ust/.libs/liblttng-ust.so, not found (try
using -rpath or -rpath-link)
More information about the lttng-dev
mailing list