public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Frederic Berat <fberat@redhat.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: libc-alpha@sourceware.org,
	 Adhemerval Zanella <adhemerval.zanella@linaro.org>,
	"Carlos O'Donell" <carlos@redhat.com>,
	 Siddhesh Poyarekar <siddhesh@redhat.com>
Subject: Re: Test suite failures with GCC 11 in header checks
Date: Thu, 20 Jul 2023 11:37:17 +0200	[thread overview]
Message-ID: <CAObJKZo5kWfBM_RHhwg94CJTOyCUH6QMGj0Ef95MTh1igJusGg@mail.gmail.com> (raw)
In-Reply-To: <87a5vrorwc.fsf@oldenburg.str.redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]

On Thu, Jul 20, 2023 at 11:26 AM Florian Weimer <fweimer@redhat.com> wrote:

> * Florian Weimer:
>
> > The test suite currently runs header checks with -D_FORTIFY_SOURCE=3
> > even if the compiler does not support it (such as GCC 11), leading to
> > failures.
> >
> > Has this already been discussed?  Should be resolved before the release?
>
> It's a regression introduced yesterday:
>
> commit 30379efad117b85cc56a255cac628d0ad745bfe3
> Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
> Date:   Wed Jul 19 11:37:01 2023 -0300
>
>     scripts: Add fortify checks on installed headers
>
>     The _FORTIFY_SOURCE is used as default by some system compilers,
>     and there is no way to check if some fortify extension does not
>     trigger any conformance issue.
>
>     Checked on x86_64-linux-gnu.
>
>     Reviewed-by: Carlos O'Donell <carlos@redhat.com>
>
>
Some suggestions for the fix, instead of reverting that:
One can probably make use of the variables created by configure to define
the maximum level to be tested.
There is "enable_fortify_source" that should hold the level used to
configure glibc, assuming configure is run using GCC11, then this variable
will be set to 2.
As of now, this variable isn't used outside of the configure script, but it
could be (either by substituting the values in the script or by passing it
as an argument through the makefile).


> Thanks,
> Florian
>
>

  reply	other threads:[~2023-07-20  9:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-20  8:01 Florian Weimer
2023-07-20  9:26 ` Florian Weimer
2023-07-20  9:37   ` Frederic Berat [this message]
2023-07-20 11:05     ` Adhemerval Zanella Netto
2023-07-20 11:09       ` Siddhesh Poyarekar
2023-07-20 13:25   ` MAHESH BODAPATI

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=CAObJKZo5kWfBM_RHhwg94CJTOyCUH6QMGj0Ef95MTh1igJusGg@mail.gmail.com \
    --to=fberat@redhat.com \
    --cc=adhemerval.zanella@linaro.org \
    --cc=carlos@redhat.com \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=siddhesh@redhat.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).