From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id D5E363858D28; Sat, 30 Apr 2022 22:27:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D5E363858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: by gnu.wildebeest.org (Postfix, from userid 1000) id 0A295302BBED; Sun, 1 May 2022 00:27:30 +0200 (CEST) Date: Sun, 1 May 2022 00:27:30 +0200 From: Mark Wielaard To: Nick Alcock via Overseers Cc: Nick Alcock , "gdb@sourceware.org" , binutils@sourceware.org, Luis Machado Subject: Re: Adding binutils to the GNU Toolchain buildbot on sourceware Message-ID: <20220430222730.GD11996@gnu.wildebeest.org> References: <5c1f217a-109c-2973-6c69-abf412133dee@arm.com> <524b04b7-a78c-7aae-4605-b40f61e6830c@arm.com> <16fe426d-c436-f030-dc43-0e81e7f0e853@arm.com> <87pml1jdx1.fsf@esperi.org.uk> <20220429175448.GA7305@gnu.wildebeest.org> <87levnig3d.fsf@esperi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87levnig3d.fsf@esperi.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2022 22:27:32 -0000 Hi Nick, On Sat, Apr 30, 2022 at 01:12:54AM +0100, Nick Alcock via Overseers wrote: > On 29 Apr 2022, Mark Wielaard uttered the following: > > On Thu, Apr 28, 2022 at 06:50:02PM +0100, Nick Alcock wrote: > >> On 28 Apr 2022, Luis Machado via Binutils outgrape: > >> > It would make sense to build-test gdb if any of the following changes: > >> [...] > >> > libctf/ > >> > >> This won't do much with gdb without a (much) newer compiler. (I > >> build-test gdb before every libctf commit -- every commit that I do, > >> anyway. I do actual gdb test runs rather less often. I should fix that, > >> at least for the CTF tests...) > >> > >> It doesn't change anywhere near as often as GDB though so the cost of > >> adding it is low. > > > > How much newer compiler are we talking? There are other builders that > > use workers which might have newer gcc installed. > > Oh, quite a lot newer -- CTF support in GCC has been in progress since > the GCC 10 days, but it only landed in GCC proper after GCC 11 branched, > so it'll be in GCC 12. It's not in a released GCC yet, but we're > counting the days :) OK, and it looks like Fedora 36 will also be released in the next couple of weeks using GCC12. So once one of the fedora workers is upgraded to Fedora 36 we can add a new libctf specific builder. > > A change in libctf is tested against a build of gdb (but no tests > > yet). Should a change in libctf also cause a check of a build of > > gas/ld/binutils/gold and tests of gas/ld/binutils? > > That's probably fairly pointless without GCC 12 in the mix. Even then, > checking ld and GDB is worthwhile but not the others: gas doesn't depend > on it at all, gold doesn't have CTF dedup support (yet: I do mean to add > it), and binutils's objcopy CTF support is only tested by the ld > testsuite's usage of objcopy. Even so it seems important to test that everything at least builds when libctf is changed and that none of the tests fail. Even if there aren't that many to begin with. I have added libctf/ to the binutils files for now. > Also, note that GDB doesn't have very many CTF tests yet: you might want > to build it but not run the *entire* testsuite, just tests matching > *ctf*, just to save time, since the GDB testsuite is so huge. Changes to > the CTF code aren't going to break the rest of GDB (I hope!). Mind you, > if it *does*, finding that out is exactly what buildbots are for. > I'm vacillating. For now we don't have any "stable subset" of gdb tests that we run. If the ctf-constvars.exp and ctf-ptype.exp are stable (and quick) maybe they could be part of that stable set? > > Are there any specific ctf tests that aren't part of the above > > testsuite? If so would it make sense to make libctf its own "project" > > so that a change to libctf (and any depended directoy/config files) > > would cause a "just build libctf and run the ctf testsuite"? > > Hm. That's probably a good idea -- most of the libctf tests require a > compiler supporting -gctf, but there *are* a few that test the writable > dict API (the same one used by ld to emit CTF after deduplication). > They're not exactly comprehensive tests (they're checking for write-time > regressions that are not triggered by ld's usage of libctf) but they do > cover a surprising percentage of libctf nonetheless. It even tests some > of the ctf_link API, though not the complicated deduplicating part. And > libctf does build quickly :) OK. Lets look at that in a couple of weeks when we have a builder that can use a GCC12 using distro. Cheers, Mark