From: Wang Mingyu <[email protected]> The GDB 10.2 sources still rely on std::allocator::construct, which was removed in C++20.
This causes the build to fail with errors such as: default-init-alloc.h:52:12: error: 'construct' has not been declared in 'class std::allocator<...>' Explicitly build the C++ sources with GNU C++17 to retain compatibility with the bundled GDB sources. Signed-off-by: Wang Mingyu <[email protected]> --- meta-oe/recipes-kernel/crash/crash.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-kernel/crash/crash.inc b/meta-oe/recipes-kernel/crash/crash.inc index 3c9a99ae4a..cd40ffb9e0 100644 --- a/meta-oe/recipes-kernel/crash/crash.inc +++ b/meta-oe/recipes-kernel/crash/crash.inc @@ -44,6 +44,7 @@ COMPATIBLE_HOST:riscv32 = "null" COMPATIBLE_HOST:mipsarchn64 = "null" COMPATIBLE_HOST:mipsarchn32 = "null" +CXXFLAGS += "-std=gnu++17" EXTRA_OEMAKE = 'RPMPKG="${PV}" \ GDB_TARGET="${TARGET_SYS}" \ -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#127605): https://lists.openembedded.org/g/openembedded-devel/message/127605 Mute This Topic: https://lists.openembedded.org/mt/119829667/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
