Skip to contentSkip to conversation

package/fluent-bit: fix build with libexecinfo

PATCH In review Fabrice Fontaine 3 participants 4 messages Feb 16, 2023 – Feb 19, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/fluent-bit: fix build with libexecinfo

Fix the following build failure with libexecinfo raised since commit d649bcd3805a26cedb30120ebbdcf12f8fbf449f:

/home/autobuild/autobuild/instance-9/output-1/host/lib/gcc/mips-buildroot-linux-musl/10.4.0/../../../../mips-buildroot-linux-musl/bin/ld: ../lib/monkey/library/libmonkey.a(mk_utils.c.o): in function `mk_utils_stacktrace':
mk_utils.c:(.text+0x1578): undefined reference to `backtrace'

Fixes:
- http://autobuild.buildroot.org/results/63a6ba9104dfddbd7f6a7debadc0c6ef6e3a21f5

---
 package/fluent-bit/fluent-bit.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/fluent-bit/fluent-bit.mk +5 -0
index d618fdf1e2..8ba16399bb 100644
@@ -56,6 +56,11 @@ FLUENT_BIT_CXXFLAGS += -fcommon
 FLUENT_BIT_CFLAGS += -U_FILE_OFFSET_BITS
 FLUENT_BIT_CXXFLAGS += -U_FILE_OFFSET_BITS
 
+ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
+FLUENT_BIT_DEPENDENCIES += libexecinfo
+FLUENT_BIT_LDFLAGS += -lexecinfo
+endif
+
 ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
 FLUENT_BIT_DEPENDENCIES += musl-fts
 FLUENT_BIT_LDFLAGS += -lfts
Signature · 6 lines
2.39.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hi,

Perhaps I'm missing something, but why is it not needed to select BR2_PACKAGE_LIBEXECINFO in the Config.in file?
(Similar to select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC)

The ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),) can be re-used to add and select execinfo.

Kr,

Thomas Devoogdt

Op do 16 feb. 2023 om 18:41 schreef Fabrice Fontaine <[email protected]>:

Quoted 32 lines

Fix the following build failure with libexecinfo raised since commit d649bcd3805a26cedb30120ebbdcf12f8fbf449f:

/home/autobuild/autobuild/instance-9/output-1/host/lib/gcc/mips-buildroot-linux-musl/10.4.0/../../../../mips-buildroot-linux-musl/bin/ld: ../lib/monkey/library/libmonkey.a(mk_utils.c.o): in function `mk_utils_stacktrace':
mk_utils.c:(.text+0x1578): undefined reference to `backtrace'

Fixes:
- http://autobuild.buildroot.org/results/63a6ba9104dfddbd7f6a7debadc0c6ef6e3a21f5

---
 package/fluent-bit/fluent-bit.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/fluent-bit/fluent-bit.mk +5 -1
index d618fdf1e2..8ba16399bb 100644
@@ -56,6 +56,11 @@ FLUENT_BIT_CXXFLAGS += -fcommon
 FLUENT_BIT_CFLAGS += -U_FILE_OFFSET_BITS
 FLUENT_BIT_CXXFLAGS += -U_FILE_OFFSET_BITS
 
+ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
+FLUENT_BIT_DEPENDENCIES += libexecinfo
+FLUENT_BIT_LDFLAGS += -lexecinfo
+endif
+
 ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
 FLUENT_BIT_DEPENDENCIES += musl-fts
 FLUENT_BIT_LDFLAGS += -lfts
--
Quoted 3 lines

2.39.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw

Hi Thomas,

Le jeu. 16 févr. 2023 à 20:34, Thomas Devoogdt <[email protected]> a écrit :

Quoted 6 lines

Hi,

Perhaps I'm missing something, but why is it not needed to select BR2_PACKAGE_LIBEXECINFO in the Config.in file?
(Similar to select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC)

libexecinfo is not a mandatory dependency, fluent-bit builds perfectly fine without it, that's why a select is not needed.

Quoted 38 lines

The ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),) can be re-used to add and select execinfo.

Kr,

Thomas Devoogdt

Op do 16 feb. 2023 om 18:41 schreef Fabrice Fontaine <[email protected]>:

Quoted 5 lines

Fix the following build failure with libexecinfo raised since commit d649bcd3805a26cedb30120ebbdcf12f8fbf449f:

/home/autobuild/autobuild/instance-9/output-1/host/lib/gcc/mips-buildroot-linux-musl/10.4.0/../../../../mips-buildroot-linux-musl/bin/ld:
../lib/monkey/library/libmonkey.a(mk_utils.c.o): in function
`mk_utils_stacktrace':

Quoted 4 lines

mk_utils.c:(.text+0x1578): undefined reference to `backtrace'

Fixes:
-

http://autobuild.buildroot.org/results/63a6ba9104dfddbd7f6a7debadc0c6ef6e3a21f5

package/fluent-bit/

Quoted 7 lines
---
 package/fluent-bit/fluent-bit.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/fluent-bit/ renamed from package/fluent-bit/fluent-bit.mk +0 -0

fluent-bit.mk

Quoted 7 lines

index d618fdf1e2..8ba16399bb 100644

package/fluent-bit/fluent-bit.mk +0 -0
@@ -56,6 +56,11 @@ FLUENT_BIT_CXXFLAGS += -fcommon
 FLUENT_BIT_CFLAGS += -U_FILE_OFFSET_BITS
 FLUENT_BIT_CXXFLAGS += -U_FILE_OFFSET_BITS
 
Quoted 13 lines
Quoted 9 lines
package/fluent-bit/fluent-bit.mk +5 -1
+ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
+FLUENT_BIT_DEPENDENCIES += libexecinfo
+FLUENT_BIT_LDFLAGS += -lexecinfo
+endif
+
 ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
 FLUENT_BIT_DEPENDENCIES += musl-fts
 FLUENT_BIT_LDFLAGS += -lfts
--
Quoted 3 lines

2.39.0

Best Regards,

Fabrice

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Fabrice Fontaine
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Fix the following build failure with libexecinfo raised since commit d649bcd3805a26cedb30120ebbdcf12f8fbf449f:

/home/autobuild/autobuild/instance-9/output-1/host/lib/gcc/mips-buildroot-linux-musl/10.4.0/../../../../mips-buildroot-linux-musl/bin/ld:
../lib/monkey/library/libmonkey.a(mk_utils.c.o): in function
`mk_utils_stacktrace':
mk_utils.c:(.text+0x1578): undefined reference to `backtrace'

Quoted 4 lines

Fixes:
- http://autobuild.buildroot.org/results/63a6ba9104dfddbd7f6a7debadc0c6ef6e3a21f5

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot