From: Arthur Cohen <arthur.cohen@embecosm.com>
To: Thomas Schwinge <thomas@codesourcery.com>,
Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Cc: gcc-patches@gcc.gnu.org, gcc-rust@gcc.gnu.org
Subject: Re: GCC/Rust libgrust-v2/to-submit branch
Date: Tue, 21 Nov 2023 16:20:22 +0100 [thread overview]
Message-ID: <c03a4a18-c889-43b6-a4f4-4b4b5b137fc9@embecosm.com> (raw)
In-Reply-To: <871qcktqxd.fsf@euler.schwinge.homeip.net>
Hi Thomas!
A newer version of the library has been force-pushed to the branch
`libgrust-v2/to-submit`.
On 11/20/23 15:55, Thomas Schwinge wrote:
> Hi!
>
> Arthur and Pierre-Emmanuel have prepared a GCC/Rust libgrust-v2/to-submit
> branch: <https://github.com/Rust-GCC/gccrs/tree/libgrust-v2/to-submit>.
> In that one, most of the issues raised have been addressed, and which
> I've now successfully "tested" in my different GCC configurations,
> requiring just one additional change (see end of this email). I'm using
> "tested" in quotes here, as libgrust currently is still missing its
> eventual content, and still is without actual users, so we may still be
> up for surprises later on. ;-)
>
> On 2023-10-27T22:41:52+0200, I wrote:
>> On 2023-09-27T00:25:16+0200, I wrote:
>>> don't we also directly need to
>>> incorporate here a few GCC/Rust master branch follow-on commits, like:
>>>
>>> - commit 171ea4e2b3e202067c50f9c206974fbe1da691c0 "fixup: Fix bootstrap build"
>>> - commit 61cbe201029658c32e5c360823b9a1a17d21b03c "fixup: Fix missing build dependency"
>>
>> I've not yet run into the need for these two. Let's please leave these
>> out of the upstream submission for now, until we understand what exactly
>> these are necessary for.
>
> (Still the same.)
Do you mean that we should remove the content of these commits from the
submission? If so, I believe it's now done.
>
>> However:
>>
>>> - commit 6a8b207b9ef7f9038e0cae7766117428783825d8 "libgrust: Add dependency to libstdc++"
>>
>> ... this one definitely is necessary right now; see discussion in
>> <https://inbox.sourceware.org/8734xv24dd.fsf@euler.schwinge.homeip.net>
>> "Disable target libgrust if we're not building target libstdc++".
>
> This one still isn't in the GCC/Rust libgrust-v2/to-submit branch -- but
> having now tested that branch, I'm now no longer seeing the respective
> build failure. Isn't that change "libgrust: Add dependency to libstdc++"
> still necessary, conceptually? (Maybe we're just lucky, currently?)
> I'll be sure to re-test in my different GCC configurations once libgrust
> gains actual content and use. (..., which might then re-expose the
> original problem?)
This commit was integrated into another one:
fb31093105e build: Add libgrust as compilation modules
(on libgrust-v2/to-submit as of 2 minutes ago)
>
>> And:
>>
>>> (Not sure if all of these are necessary and/or if that's the complete
>>> list; haven't looked up the corresponding GCC/Rust GitHub PRs.)
>>>
>>>> --- a/gcc/rust/config-lang.in
>>>> +++ b/gcc/rust/config-lang.in
>>>
>>>> +target_libs="target-libffi target-libbacktrace target-libgrust"
>>>
>>> Please don't add back 'target-libffi' and 'target-libbacktrace' here;
>>> just 'target-libgrust'. (As is present in GCC/Rust master branch, and
>>> per commit 7411eca498beb13729cc2acec77e68250940aa81
>>> "Rust: Don't depend on unused 'target-libffi', 'target-libbacktrace'".)
>>
>> ... that change is necessary, too.
>
> That's still unchanged in the GCC/Rust libgrust-v2/to-submit branch;
> please apply to 'gcc/rust/config-lang.in':
>
> -target_libs="target-libffi target-libbacktrace target-libgrust"
> +target_libs=target-libgrust
>
> Then, still should re-order the commits so that (re)generation of
> auto-generated files comes before use of libgrust (so that later
> bisection doesn't break), and move the 'contrib/gcc_update' update into
> the commit that adds the auto-generated files.
Do you mean that the regeneration should happen before the commit adding
the proc_macro library? Or that when we keep going and adding more
commits on top of this, we need to make sure the regeneration commit
happens before any code starts using/depending on libgrust/?
And alright, we'll move the changes to contrib/gcc_update into the
regeneration commit.
All the best, and thanks again for testing :)
Arthur
>
>
> Grüße
> Thomas
> -----------------
> Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
next prev parent reply other threads:[~2023-11-21 14:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-20 11:59 [PATCH 1/3] librust: Add libproc_macro and build system Arthur Cohen
2023-09-20 11:59 ` [PATCH 2/3] build: Add libgrust as compilation modules Arthur Cohen
2023-09-26 11:42 ` Richard Biener
2023-09-26 22:25 ` Thomas Schwinge
2023-10-27 20:41 ` Thomas Schwinge
2023-11-20 14:55 ` GCC/Rust libgrust-v2/to-submit branch (was: [PATCH 2/3] build: Add libgrust as compilation modules) Thomas Schwinge
2023-11-21 15:20 ` Arthur Cohen [this message]
2023-11-27 15:46 ` GCC/Rust libgrust-v2/to-submit branch Thomas Schwinge
2023-12-12 9:39 ` Thomas Schwinge
2023-12-12 15:25 ` Thomas Schwinge
2023-09-20 11:59 ` [PATCH 3/3] build: Regenerate build files Arthur Cohen
2023-09-26 11:40 ` [PATCH 1/3] librust: Add libproc_macro and build system Richard Biener
2023-09-26 22:42 ` Thomas Schwinge
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=c03a4a18-c889-43b6-a4f4-4b4b5b137fc9@embecosm.com \
--to=arthur.cohen@embecosm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gcc-rust@gcc.gnu.org \
--cc=pierre-emmanuel.patry@embecosm.com \
--cc=thomas@codesourcery.com \
/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).