From 191de15452463848832fd137de5859dd969b0d29 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 9 Jul 2023 10:20:35 -0700 Subject: apt: Do not use libc++ runtime for now With clang17, it does not work with libc++ headers, until its fixed use libstdc++ Signed-off-by: Khem Raj --- conf/nonclangable.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index db2d081..2a19368 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -362,6 +362,10 @@ COMPILER_RT:pn-tsocks:libc-glibc:toolchain-clang:x86-64 = "-rtlib=libgcc --unwin #clang-8: error: linker command failed with exit code 1 (use -v to see invocation) COMPILER_RT:pn-libhugetlbfs:libc-glibc:toolchain-clang:arm = "--unwindlib=libgcc" +# Does not compile with libc++ from clang 17+ anymore see +# https://github.com/llvm/llvm-project/issues/63743 +LIBCPLUSPLUS:pn-apt: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 # | gcc: error: unrecognized command line option ‘-Qunused-arguments’ -- cgit v1.2.3-54-g00ecf