poco: fix powerpc build
PATCH 1/2 poco: fix powerpc build
From: Peter Marko <[email protected]>
Add patch which was also submitted upstream to quill. Poco should get it when they update quill component.
Signed-off-by Peter Marko <[email protected]>
--- ...ll-rdtsc-fallback-for-32-bit-powerpc.patch | 35 +++++++++++++++++++ meta-oe/recipes-support/poco/poco_1.15.1.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-oe/recipes-support/poco/poco/0003-quill-rdtsc-fallback-for-32-bit-powerpc.patch
meta-oe/recipes-support/poco/poco/0003-quill-rdtsc-fallback-for-32-bit-powerpc.patch new file +35 -0
@@ -0,0 +1,35 @@ +From dce2cc2886a9097971856e69737cc5c05c9239ea Mon Sep 17 00:00:00 2001 +From: Peter Marko <[email protected]> +Date: Wed, 8 Apr 2026 10:54:25 +0200 +Subject: [PATCH] quill: use soft rdtsc fallback on 32-bit PowerPC + +Quill's rdtsc helper already avoids __rdtsc() on ARM and PPC64, but +32-bit PowerPC was not included in that guard. On powerpc targets this +falls through to the x86-specific intrinsic and fails with: + + error: '__rdtsc' was not declared in this scope + +Treat common 32-bit PowerPC compiler define the same way as PPC64 and +use the existing steady_clock-based fallback. + +Upstream-Status: Submitted [https://github.com/odygrd/quill/pull/911] +Signed-off-by: Peter Marko <[email protected]> +--- + dependencies/quill/include/quill/core/Rdtsc.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dependencies/quill/include/quill/core/Rdtsc.h b/dependencies/quill/include/quill/core/Rdtsc.h +index 3d0ae9f26..67f26cb89 100644 +--- a/dependencies/quill/include/quill/core/Rdtsc.h ++++ b/dependencies/quill/include/quill/core/Rdtsc.h +@@ -100,7 +100,7 @@ QUILL_NODISCARD QUILL_ATTRIBUTE_HOT inline uint64_t rdtsc() noexcept + __asm__ volatile("stck %0" : "=Q"(tsc) : : "cc"); + return tsc; + } +-#elif (defined(_M_ARM) || defined(_M_ARM64) || defined(__PPC64__)) ++#elif (defined(_M_ARM) || defined(_M_ARM64) || defined(__PPC64__) || defined(__PPC__)) + QUILL_NODISCARD QUILL_ATTRIBUTE_HOT inline uint64_t rdtsc() noexcept + { + // soft failover +-- +2.47.2
meta-oe/recipes-support/poco/poco_1.15.1.bb +1 -0
@@ -11,6 +11,7 @@ DEPENDS = "libpcre2 utf8proc zlib" SRC_URI = "git://github.com/pocoproject/poco.git;branch=poco-${PV};protocol=https;tag=poco-${PV}-release \ file://0001-cppignore.lnx-Ignore-PKCS12-and-testLaunch-test.patch \ file://0002-DataTest-disable-testSQLChannel-test.patch \ + file://0003-quill-rdtsc-fallback-for-32-bit-powerpc.patch \ file://run-ptest \ " SRCREV = "a1aacbba1bda4301db01bb1a2c2ab80677756b90"
PATCH 2/2 poco: add config for fastlogger
From: Peter Marko <[email protected]>
It is a new feature in 1.15.0, enabled upstream by default. It is part of Foundation library.
So this makes it possible to disable it.
Signed-off-by Peter Marko <[email protected]>
--- meta-oe/recipes-support/poco/poco_1.15.1.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-support/poco/poco_1.15.1.bb +2 -1
@@ -24,7 +24,7 @@ inherit cmake ptest # By default the most commonly used poco components are built # Foundation is built anyway and doesn't need to be listed explicitly # these don't have dependencies outside oe-core -PACKAGECONFIG ??= "XML JSON PDF Util Net NetSSL Crypto JWT Data DataPostgreSQL DataSQLite DNSSDAvahi Zip Encodings Prometheus" +PACKAGECONFIG ??= "XML JSON PDF Util Net NetSSL Crypto JWT Data DataPostgreSQL DataSQLite DNSSDAvahi Zip Encodings Prometheus FastLogger" # MongoDB does not build for all architectures yet keep in sync with COMPATIBLE_HOST list in mongodb recipe # and mongodb needs meta-python enabled as well PACKAGECONFIG:remove:riscv32 = "MongoDB"
@@ -49,6 +49,7 @@ PACKAGECONFIG[DNSSDAvahi] = "-DENABLE_DNSSD=ON -DENABLE_DNSSD_AVAHI=ON,-DENABLE_ PACKAGECONFIG[Zip] = "-DENABLE_ZIP=ON,-DENABLE_ZIP=OFF" PACKAGECONFIG[Encodings] = "-DENABLE_ENCODINGS=ON,-DENABLE_ENCODINGS=OFF" PACKAGECONFIG[Prometheus] = "-DENABLE_PROMETHEUS=ON,-DENABLE_PROMETHEUS=OFF" +PACKAGECONFIG[FastLogger] = "-DENABLE_FASTLOGGER=ON,-DENABLE_FASTLOGGER=OFF" # Additional components not build by default, # they might have dependencies not included in oe-core