From 590f13fc65591e0fdfeab0efd76b3717d2e8d725 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 9 Jul 2023 10:20:35 -0700 Subject: [PATCH] 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 b8334ee10..67068168c 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -347,6 +347,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’