summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-11-04 13:33:25 -0800
committerKhem Raj <raj.khem@gmail.com>2024-11-05 09:42:51 -0800
commit127e672ddf6384eba5f7f91dd571de66bf47f665 (patch)
treed23e6bbcc95b6fbce7e108de44180a64cf820f3d
parentfd57ac6162253c6fbdcfdb33ab661311c8d612f6 (diff)
downloadmeta-openembedded-127e672ddf6384eba5f7f91dd571de66bf47f665.tar.gz
fluentbit: Add IPO option as a packageconfig knob
LTO seems to fail when using clang compiler, therefore disable it for now. | arm-yoe-linux-musleabi-ld.lld: error: undefined hidden symbol: co_swap_function.llvm.232435740610378447 | >>> referenced by arm.c:76 (lib/monkey/deps/flb_libco/arm.c:76) | >>> library/fluent-bit.lto.libfluent-bit.a(flb_input_thread.c.o at 1278594).o:(input_thread) | >>> referenced by flb_input_thread.c:0 (src/flb_input_thread.c:0) | >>> library/fluent-bit.lto.libfluent-bit.a(flb_input_thread.c.o at 1278594).o:(input_thread) | >>> referenced by arm.c:76 (lib/monkey/deps/flb_libco/arm.c:76) | >>> library/fluent-bit.lto.libfluent-bit.a(flb_output.c.o at 1447274).o:(.Lflb_output_task_flush$local) | >>> referenced 88 more times Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/fluentbit/fluentbit_3.1.9.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/fluentbit/fluentbit_3.1.9.bb b/meta-oe/recipes-extended/fluentbit/fluentbit_3.1.9.bb
index a70534e91c..9eea8d6daf 100644
--- a/meta-oe/recipes-extended/fluentbit/fluentbit_3.1.9.bb
+++ b/meta-oe/recipes-extended/fluentbit/fluentbit_3.1.9.bb
@@ -39,6 +39,7 @@ PACKAGECONFIG ??= "\
39 custom-calyptia \ 39 custom-calyptia \
40 http-server \ 40 http-server \
41 inotify \ 41 inotify \
42 ipo \
42 metrics \ 43 metrics \
43 parser \ 44 parser \
44 proxy-go \ 45 proxy-go \
@@ -51,6 +52,8 @@ PACKAGECONFIG ??= "\
51 tls \ 52 tls \
52 utf8-encoder \ 53 utf8-encoder \
53" 54"
55# See https://github.com/fluent/fluent-bit/issues/7248#issuecomment-1631280496
56PACKAGECONFIG:remove:toolchain-clang = "ipo"
54 57
55PACKAGECONFIG[all] = "-DFLB_ALL=Yes,-DFLB_ALL=No" 58PACKAGECONFIG[all] = "-DFLB_ALL=Yes,-DFLB_ALL=No"
56PACKAGECONFIG[arrow] = "-DFLB_ARROW=Yes,-DFLB_ARROW=No" 59PACKAGECONFIG[arrow] = "-DFLB_ARROW=Yes,-DFLB_ARROW=No"
@@ -69,6 +72,7 @@ PACKAGECONFIG[examples] = "-DFLB_EXAMPLES=Yes,-DFLB_EXAMPLES=No"
69PACKAGECONFIG[http-client-debug] = "-DFLB_HTTP_CLIENT_DEBUG=Yes,-DFLB_HTTP_CLIENT_DEBUG=No" 72PACKAGECONFIG[http-client-debug] = "-DFLB_HTTP_CLIENT_DEBUG=Yes,-DFLB_HTTP_CLIENT_DEBUG=No"
70PACKAGECONFIG[http-server] = "-DFLB_HTTP_SERVER=Yes,-DFLB_HTTP_SERVER=No" 73PACKAGECONFIG[http-server] = "-DFLB_HTTP_SERVER=Yes,-DFLB_HTTP_SERVER=No"
71PACKAGECONFIG[inotify] = "-DFLB_INOTIFY=Yes,-DFLB_INOTIFY=No" 74PACKAGECONFIG[inotify] = "-DFLB_INOTIFY=Yes,-DFLB_INOTIFY=No"
75PACKAGECONFIG[ipo] = "-DFLB_IPO=Yes,-DFLB_IPO=no"
72PACKAGECONFIG[jemalloc] = "-DFLB_JEMALLOC=Yes,-DFLB_JEMALLOC=No,jemalloc" 76PACKAGECONFIG[jemalloc] = "-DFLB_JEMALLOC=Yes,-DFLB_JEMALLOC=No,jemalloc"
73PACKAGECONFIG[luajit] = "-DFLB_LUAJIT=Yes,-DFLB_LUAJIT=No" 77PACKAGECONFIG[luajit] = "-DFLB_LUAJIT=Yes,-DFLB_LUAJIT=No"
74PACKAGECONFIG[metrics] = "-DFLB_METRICS=Yes,-DFLB_METRICS=No" 78PACKAGECONFIG[metrics] = "-DFLB_METRICS=Yes,-DFLB_METRICS=No"