From f0f9bb250045f55c018f2e65d651c63369eaecd3 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 8 Sep 2024 23:54:40 -0700 Subject: recipes: Use gcc or clang/libstdc++ for some recipes These recipes do not yet build with libc++-19, for now use libstdc++, poco and netdata do not compile with clang-19 at all Signed-off-by: Khem Raj --- conf/nonclangable.conf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 74cfd53..33a737c 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -201,6 +201,11 @@ TOOLCHAIN:pn-gcc-for-nvcc-runtime:tegra = "gcc" #| | ^ TOOLCHAIN:pn-optee-os:imx-nxp-bsp = "gcc" +# Fails with clang-19+ +# Poco/PriorityDelegate.h:203:10: error: no member named '_pTarget' in 'PriorityDelegate' +TOOLCHAIN:pn-poco = "gcc" +TOOLCHAIN:pn-netdata = "gcc" + CFLAGS:append:pn-liboil:toolchain-clang:x86-64 = " -fheinous-gnu-extensions " # TOPDIR/build/tmp/work/core2-32-yoe-linux/gnu-efi/3.0.17-r0/gnu-efi-3.0.17//lib/ctors.S:11:41: error: expected the entry size @@ -403,8 +408,15 @@ COMPILER_RT:pn-libhugetlbfs:libc-glibc:toolchain-clang:arm = "--unwindlib=libgcc # https://github.com/llvm/llvm-project/issues/63743 LIBCPLUSPLUS:pn-apt:toolchain-clang = "-stdlib=libstdc++" -# https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals +# All following need to use libstdc++ with clang-19 +# see https://libcxx.llvm.org/ReleaseNotes/19.html#deprecations-and-removals LIBCPLUSPLUS:pn-pbzip2:toolchain-clang = "-stdlib=libstdc++" +LIBCPLUSPLUS:pn-nlohmann-json:toolchain-clang = "-stdlib=libstdc++" +LIBCPLUSPLUS:pn-paho-mqtt-cpp:toolchain-clang = "-stdlib=libstdc++" +LIBCPLUSPLUS:pn-poco:toolchain-clang = "-stdlib=libstdc++" +LIBCPLUSPLUS:pn-netdata:toolchain-clang = "-stdlib=libstdc++" +LIBCPLUSPLUS:pn-cpp-netlib:toolchain-clang = "-stdlib=libstdc++" +LIBCPLUSPLUS:pn-cpprest:toolchain-clang = "-stdlib=libstdc++" # Uses gcc for native tools, e.g. nsinstall and passes clang options which fails so # let same compiler ( gcc or clang) be native/cross compiler -- cgit v1.2.3-54-g00ecf