public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Iain Sandoe <idsandoe@googlemail.com>
To: GCC Development <gcc@gcc.gnu.org>
Cc: Ben Boeckel <ben.boeckel@kitware.com>,
	Richard Biener <richard.guenther@gmail.com>
Subject: Re: isl 0.26 C++17 issues when bootstrapping with GCC
Date: Mon, 13 May 2024 16:05:13 +0100	[thread overview]
Message-ID: <D1CAE607-5123-47A1-A5A7-5C45F3FC780B@googlemail.com> (raw)
In-Reply-To: <ZO6AHc0gL8N1ivGZ@farprobe>

This 

> On 30 Aug 2023, at 00:32, Ben Boeckel via Gcc <gcc@gcc.gnu.org> wrote:
> 
> On Tue, Aug 29, 2023 at 18:57:37 +0200, Richard Biener wrote:
>> I suppose for bootstrapping we could disable ISL during stage1 since
>> it enables an optional feature only.  Other than that GCC only
>> requires a C++11 compiler for building, so ISL breaks that constraint
>> with requiring C++17.
> 
> Note that it doesn't *require* it per sé; the tests that try it are
> compiled if C++17 support was detected at all. The headers seem to just
> have optional header-only `std::any`-using APIs if C++17 is around.
> `isl` supporting a flag to disable the tests would also work, but that
> doesn't fix 0.26. It also doesn't mean it won't start requiring C++17 at
> some point in the future.

Perhaps, in the short-term (i.e. before it requires C++ > 11) we can
solve this by ensuring that we pass -std=c++11 to the configure stages
as well as to the build.  ISTM that configure is finding C++17-capability
(because we do not, I think, force C++11 for the configure) and then 
the build takes it away by forcing -std=c++11.

[ will try this out ]

> In light of that, I feel that skipping it for bootstrap is probably the
> right solution here. Alas, my skill with autotools is closer to the
> caveman-with-club level rather than that of a surgeon.

I am not sure we have an easy way to exclude a host module from
stage1 only (but ICBW).

Iain

> 
> --Ben


  reply	other threads:[~2024-05-13 15:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-29 14:29 Ben Boeckel
2023-08-29 16:57 ` Richard Biener
2023-08-29 23:32   ` Ben Boeckel
2024-05-13 15:05     ` Iain Sandoe [this message]
2024-05-13 16:00       ` Iain Sandoe
2024-05-13 17:46         ` Richard Biener
2024-05-13 18:43           ` Iain Sandoe
2024-05-13 19:37             ` Iain Sandoe

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=D1CAE607-5123-47A1-A5A7-5C45F3FC780B@googlemail.com \
    --to=idsandoe@googlemail.com \
    --cc=ben.boeckel@kitware.com \
    --cc=gcc@gcc.gnu.org \
    --cc=richard.guenther@gmail.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).