]> code.ossystems Code Review - openembedded-core.git/commit
lttng-ust: fix do_compile failure for arm32 with DEBUG_BUILD enabled
authorChangqing Li <changqing.li@windriver.com>
Fri, 8 Oct 2021 08:33:56 +0000 (16:33 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 9 Oct 2021 16:21:44 +0000 (17:21 +0100)
commit722d58bccd5616b3b3364845bbf1121d3cc0c3cd
tree0721fae40f8b64ce45ff8778b92da63ba7b9256b
parent4663f06c81285aeab8e8d33ec5338d7854b9dd9f
lttng-ust: fix do_compile failure for arm32 with DEBUG_BUILD enabled

After upgrade to 2.13.0, for arm32, with DEBUG_BUILD enabled, lttng-ust
build failed with error:
| /path/to/tmp/work/cortexa15t2hf-neon-poky-linux-gnueabi/lttng-ust/2_2.13.0-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/11.2.0/ld: ../../../src/lib/lttng-ust/.libs/liblttng-ust.so: undefined reference to `_uatomic_link_error'
| collect2: error: ld returned 1 exit status
| Makefile:399: recipe for target 'test_ust_error' failed
| make[3]: *** [test_ust_error] Error 1

The problem has reported to upstream, and upstream suggests to use
-DUATOMIC_NO_LINK_ERROR for the failure case, refer [1].

[1]https://lists.lttng.org/pipermail/lttng-dev/2021-September/030056.html

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb