Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918909 - dev-debug/systemtap-4.9: fails to build with clang (tapsets.cxx: error: expected namespace name)
Summary: dev-debug/systemtap-4.9: fails to build with clang (tapsets.cxx: error: expec...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
: 918910 (view as bug list)
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2023-11-30 17:24 UTC by Toralf Förster
Modified: 2024-08-21 05:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.08 KB, text/plain)
2023-11-30 17:24 UTC, Toralf Förster
Details
dev-util:systemtap-4.9:20231130-025923.log (dev-util:systemtap-4.9:20231130-025923.log,26.55 KB, text/plain)
2023-11-30 17:24 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,14.25 KB, text/plain)
2023-11-30 17:24 UTC, Toralf Förster
Details
environment (environment,139.12 KB, text/plain)
2023-11-30 17:24 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2023-11-30 17:24 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,21.04 KB, application/x-xz)
2023-11-30 17:24 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,10.84 KB, application/x-xz)
2023-11-30 17:24 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,48.42 KB, text/plain)
2023-11-30 17:24 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,43.04 KB, application/x-xz)
2023-11-30 17:24 UTC, Toralf Förster
Details
var.tmp.clang.tar.xz (var.tmp.clang.tar.xz,1.49 KB, application/x-xz)
2023-11-30 17:24 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-11-30 17:24:20 UTC
  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"
Comment 1 Toralf Förster gentoo-dev 2023-11-30 17:24:21 UTC
Created attachment 875964 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-11-30 17:24:22 UTC
Created attachment 875965 [details]
dev-util:systemtap-4.9:20231130-025923.log
Comment 3 Toralf Förster gentoo-dev 2023-11-30 17:24:23 UTC
Created attachment 875966 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-11-30 17:24:25 UTC
Created attachment 875967 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-11-30 17:24:26 UTC
Created attachment 875968 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-11-30 17:24:27 UTC
Created attachment 875969 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-11-30 17:24:28 UTC
Created attachment 875970 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2023-11-30 17:24:29 UTC
Created attachment 875971 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2023-11-30 17:24:30 UTC
Created attachment 875972 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2023-11-30 17:24:31 UTC
Created attachment 875973 [details]
var.tmp.clang.tar.xz
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-19 00:38:22 UTC
*** Bug 918910 has been marked as a duplicate of this bug. ***
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-21 05:05:04 UTC
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.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-21 05:05:22 UTC
(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...