All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/lttng-libust: set -DUATOMIC_NO_LINK_ERROR
@ 2021-12-26 18:06 Fabrice Fontaine
  2021-12-26 22:36 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-12-26 18:06 UTC (permalink / raw)
  To: buildroot; +Cc: Philippe Proulx, Fabrice Fontaine

Set -DUATOMIC_NO_LINK_ERROR as suggested by upstream in
https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg12950.html to
avoid the following build failure with lttng-tools raised since bump to
version 2.13.1 in commit 733bf73e3ff86dd80e68e22c0ccc2f43e4a3d475:

/home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-gnu/9.3.0/../../../../mips64el-buildroot-linux-gnu/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/mips64el-buildroot-linux-gnu/sysroot/usr/lib/liblttng-ust-ctl.so: undefined reference to `_uatomic_link_error'

Fixes:
 - http://autobuild.buildroot.org/results/066c72f04b4c82df3c5c6a75d2eef232d4468612

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/lttng-libust/lttng-libust.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/lttng-libust/lttng-libust.mk b/package/lttng-libust/lttng-libust.mk
index 690d18fe3d..8ce47021c9 100644
--- a/package/lttng-libust/lttng-libust.mk
+++ b/package/lttng-libust/lttng-libust.mk
@@ -17,6 +17,8 @@ LTTNG_LIBUST_CONF_OPTS = \
 	--disable-tests \
 	--with-lttng-system-rundir=/run/lttng
 LTTNG_LIBUST_AUTORECONF = YES
+# https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg12950.html
+LTTNG_LIBUST_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DUATOMIC_NO_LINK_ERROR"
 
 ifeq ($(BR2_PACKAGE_PYTHON),y)
 LTTNG_LIBUST_DEPENDENCIES += python
-- 
2.33.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/lttng-libust: set -DUATOMIC_NO_LINK_ERROR
  2021-12-26 18:06 [Buildroot] [PATCH 1/1] package/lttng-libust: set -DUATOMIC_NO_LINK_ERROR Fabrice Fontaine
@ 2021-12-26 22:36 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-12-26 22:36 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Philippe Proulx, buildroot

On Sun, 26 Dec 2021 19:06:21 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Set -DUATOMIC_NO_LINK_ERROR as suggested by upstream in
> https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg12950.html to
> avoid the following build failure with lttng-tools raised since bump to
> version 2.13.1 in commit 733bf73e3ff86dd80e68e22c0ccc2f43e4a3d475:
> 
> /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-gnu/9.3.0/../../../../mips64el-buildroot-linux-gnu/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/mips64el-buildroot-linux-gnu/sysroot/usr/lib/liblttng-ust-ctl.so: undefined reference to `_uatomic_link_error'
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/066c72f04b4c82df3c5c6a75d2eef232d4468612
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  package/lttng-libust/lttng-libust.mk | 2 ++
>  1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2021-12-26 22:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-26 18:06 [Buildroot] [PATCH 1/1] package/lttng-libust: set -DUATOMIC_NO_LINK_ERROR Fabrice Fontaine
2021-12-26 22:36 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.