From: "tbaeder at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug server/26839] New: Systemtap build failures with clang
Date: Wed, 04 Nov 2020 08:27:02 +0000 [thread overview]
Message-ID: <bug-26839-6586@http.sourceware.org/bugzilla/> (raw)
https://sourceware.org/bugzilla/show_bug.cgi?id=26839
Bug ID: 26839
Summary: Systemtap build failures with clang
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: server
Assignee: systemtap at sourceware dot org
Reporter: tbaeder at redhat dot com
Target Milestone: ---
systemtap currently fails to build with clang.
$ clang --version
clang version 10.0.1 (Fedora 10.0.1-3.fc32)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
The output is (I tried deduplicating):
./elaborate.h:47:1: error: 'symresolution_info' defined as a struct here but
previously declared as a class; this is valid, but may result in linker errors
under the Microsoft C++ ABI [-Werror,-Wmismatched-tags]
struct symresolution_info: public traversing_visitor
^
./session.h:126:1: note: did you mean struct here?
class symresolution_info;
^~~~~
struct
./elaborate.h:206:16: error: 'derived_probe::printsig' hides overloaded virtual
function [-Werror,-Woverloaded-virtual]
virtual void printsig (std::ostream &o, bool nest=true) const;
^
./staptree.h:913:16: note: hidden overloaded virtual function 'probe::printsig'
declared here: different number of parameters (1 vs 2)
virtual void printsig (std::ostream &o) const;
^
2 errors generated.
./dwflpp.h:185:1: error: struct 'location_context' was previously declared as a
class; this is valid, but may result in linker errors under the Microsoft C++
ABI [-Werror,-Wmismatched-tags]
struct location_context;
^
./loc2stap.h:45:7: note: previous use is here
class location_context
^
./dwflpp.h:185:1: note: did you mean class here?
struct location_context;
^~~~~~
class
./dwflpp.h:187:1: error: 'dwflpp' defined as a struct here but previously
declared as a class; this is valid, but may result in linker errors under the
Microsoft C++ ABI [-Werror,-Wmismatched-tags]
struct dwflpp
^
./loc2stap.h:44:1: note: did you mean struct here?
class dwflpp;
^~~~~
struct
translate.cxx:303:8: error: 'emit_function' overrides a member function but is
not marked 'override' [-Werror,-Winconsistent-missing-override]
void emit_function (functiondecl* fd);
^
translate.cxx:155:8: note: overridden virtual function is here
void emit_function (functiondecl* v);
^
translate.cxx:304:8: error: 'emit_probe' overrides a member function but is not
marked 'override' [-Werror,-Winconsistent-missing-override]
void emit_probe (derived_probe* dp);
^
translate.cxx:161:8: note: overridden virtual function is here
void emit_probe (derived_probe* v);
^
util.cxx:1545:28: error: taking the absolute value of unsigned type 'unsigned
long' has no effect [-Werror,-Wabsolute-value]
unsigned min_score = labs(target.size() - it->size());
^
util.cxx:1545:28: note: remove the call to 'labs' since unsigned values cannot
be negative
unsigned min_score = labs(target.size() - it->size());
^~~~
Fixing the class/struct mixups is easy and shouldn't cause any problems.
I'm not so sure about the others though. How do you handle the missing override
or the hidden overloaded virtual function in this codebase? I can work on this
if it's easier for you.
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
next reply other threads:[~2020-11-04 8:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-04 8:27 tbaeder at redhat dot com [this message]
2020-11-05 1:11 ` [Bug server/26839] " fche at redhat dot com
2020-11-05 1:23 ` fche at redhat dot com
2020-11-05 9:21 ` tbaeder at redhat dot com
2020-11-23 19:12 ` tstellar at redhat dot com
2020-11-24 7:52 ` tbaeder at redhat dot com
2021-01-18 12:06 ` tbaeder at redhat dot com
2021-01-18 15:10 ` tstellar at redhat dot com
2021-05-11 12:00 ` tbaeder at redhat dot com
2021-05-13 2:17 ` amerey at redhat dot com
2021-05-14 7:57 ` tbaeder at redhat dot com
2021-05-19 21:46 ` amerey at redhat dot com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-26839-6586@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).