Skip to content

Commit

Permalink
recipes: Use gcc or clang/libstdc++ for some recipes
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kraj committed Sep 18, 2024
1 parent 185e954 commit f0f9bb2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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<type-parameter-0-0, void, true>'
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f0f9bb2

Please sign in to comment.