mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
crash: build bundled GDB with GNU C++17
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 <wangmy@fujitsu.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -44,6 +44,7 @@ COMPATIBLE_HOST:riscv32 = "null"
|
|||||||
COMPATIBLE_HOST:mipsarchn64 = "null"
|
COMPATIBLE_HOST:mipsarchn64 = "null"
|
||||||
COMPATIBLE_HOST:mipsarchn32 = "null"
|
COMPATIBLE_HOST:mipsarchn32 = "null"
|
||||||
|
|
||||||
|
CXXFLAGS += "-std=gnu++17"
|
||||||
|
|
||||||
EXTRA_OEMAKE = 'RPMPKG="${PV}" \
|
EXTRA_OEMAKE = 'RPMPKG="${PV}" \
|
||||||
GDB_TARGET="${TARGET_SYS}" \
|
GDB_TARGET="${TARGET_SYS}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user