166 | static const char* morehelp __attribute__ ((used)); | ^ translate.cxx:6639:7: warning: variable 'cies' set but not used [-Wunused-but-set-variable] 6639 | int cies = 0; | ^ tapsets.cxx:69:17: error: expected namespace name 69 | using namespace __gnu_cxx; | ^ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_clang-20231129-092259 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 17.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/17/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/17 17.0.6+libcxx Python 3.11.6 php cli (if any): HEAD of ::gentoo commit fbe0f566d482553e39ed4e92f58296d4c75b9160 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Nov 29 09:18:46 2023 +0000 2023-11-29 09:18:46 UTC emerge -qpvO dev-util/systemtap [ebuild N ] dev-util/systemtap-4.9 USE="libvirt ssl (-selinux) -sqlite -test -zeroconf" PYTHON_SINGLE_TARGET="python3_11 -pypy3 -python3_10"
Created attachment 875964 [details] emerge-info.txt
Created attachment 875965 [details] dev-util:systemtap-4.9:20231130-025923.log
Created attachment 875966 [details] emerge-history.txt
Created attachment 875967 [details] environment
Created attachment 875968 [details] etc.clang.tar.xz
Created attachment 875969 [details] etc.portage.tar.xz
Created attachment 875970 [details] logs.tar.xz
Created attachment 875971 [details] qlist-info.txt
Created attachment 875972 [details] temp.tar.xz
Created attachment 875973 [details] var.tmp.clang.tar.xz
*** Bug 918910 has been marked as a duplicate of this bug. ***
Interesting, these are from a while ago: commit bf8407829ca3e28534752d9cf0c6af215a951b4d Author: Josh Stone <jistone@redhat.com> Date: Fri Sep 20 16:57:27 2013 -0700 Fixes for CC=clang CXX=clang++ We can compile almost everything with clang now, except: - loc2c.c due to nested functions. - stapdyn/ because dyninst pulls in __gnu_cxx::hash_map for GNUC < 4.3, which triggers -Wdeprecated in libstdc++-4.8.1. (clang #defines itself as GNUC 4.2.1.) * loc2c-test.c (fail): Indicate that this is itself a formatted function, so it doesn't complain about non-const 'fmt' passed to vfprintf. (The callers are in fact passing const strings.) * session.cxx (systemtap_session::parse_cmdline): Added braces so that the if-for-if-else doesn't have a dangling else. * stapregex-dfa.h: translator_output is a class. * stapregex.h: translator_output is a class; dfa is a struct. * tapset-method.cxx (java_builder): Remove unused cache_initialized. commit 30369ac1fe0ed4e022691eceaddb848689935f87 Author: Frank Ch. Eigler <fche@elastic.org> Date: Tue Mar 24 15:11:33 2009 -0400 build fix for RHEL4-era gcc 3.4.6 * tapsets.cxx (stringhash): Go to __gnu_cxx. (dwarf_cast_expanding_visitor::visit_cast_op): Use ~0 for all-ones.
(In reply to Sam James from comment #12) > Interesting, these are from a while ago: > > > commit bf8407829ca3e28534752d9cf0c6af215a951b4d > Author: Josh Stone <jistone@redhat.com> > Date: Fri Sep 20 16:57:27 2013 -0700 > > Fixes for CC=clang CXX=clang++ > > We can compile almost everything with clang now, except: > - loc2c.c due to nested functions. > - stapdyn/ because dyninst pulls in __gnu_cxx::hash_map for GNUC < 4.3, > which triggers -Wdeprecated in libstdc++-4.8.1. > (clang #defines itself as GNUC 4.2.1.) Oh, I see. Helps if you read the commit message properly...