public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "tbaeder at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug server/26839] Systemtap build failures with clang
Date: Fri, 14 May 2021 07:57:58 +0000	[thread overview]
Message-ID: <bug-26839-6586-WLQmvIcN4Y@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26839-6586@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=26839

--- Comment #10 from Timm Bäder <tbaeder at redhat dot com> ---
(In reply to Aaron Merey from comment #9)
> (In reply to Timm Bäder from comment #8)
> > Hey Frank do you have any update on this? We've been carrying the patches
> > around for a while now and they need maintenance and start to collide with
> > upstream changes, e.g.
> > https://sourceware.org/git/?p=systemtap.git;a=commit;
> > h=439fb4cc4c08166dccb85ba202a5762c4c46ba42
> > 
> > I think only the probe::printsig() problems need clarification, the other
> > ones are straight forward.
> 
> Hi Timm. When I merged that commit I didn't realise you had a similar patch
> pending. Regarding the printsig patch, I would suggest dropping the 'bool
> nest = true' definitions and instead call printsig_nested unconditionally.

No problem, in the end it's one patch less we carry around. Dropping the nest
bool is fine with me of course, I have a patch doing that. I can't seem to find
where to send patches however, the mailing list seems to have remarkably few of
them and the HACKING document doesn't seem to mention? Where does systemtap
development happen?

> Otherwise the patch set looks ok. With it, gcc still compiles systemtap
> without error and we are closer to being able to compile systemtap with
> clang. I still get an errors when compiling with clang however. ex.
> `unsupported argument 'auto' to option 'flto='` when compiling
> systemtap/python/HelperSDT/_HelperSDT.c

I can't seem to find where -flto=auto could come from within the systemtap
sources, is that in your env somehow? That shouldn't be used when compiling
with clang. If you need a workaround, setting
CCC_OVERRIDE_OPTIONS="x-flto=auto" should work.

Later versions of clang will also ignore -flto=auto:
https://github.com/llvm/llvm-project/commit/1628486548420f85b3467026d54663d1516404f5

-- 
You are receiving this mail because:
You are the assignee for the bug.

  parent reply	other threads:[~2021-05-14  7:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-04  8:27 [Bug server/26839] New: " tbaeder at redhat dot com
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 [this message]
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-WLQmvIcN4Y@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).