public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/111141] Compiling gcc-13.2.0 on Ubuntu 22.04.3 LTS, problem asm-generic/errno.h
Date: Thu, 24 Aug 2023 21:03:01 +0000	[thread overview]
Message-ID: <bug-111141-4-HR9pTdi8mC@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-111141-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111141

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I think we should improve the toplevel configure to error out if including
errno.h fails.

So instead of:
```
    echo "int main () { return 0; }" > conftest.c
```

We should do:
```
    echo "#include <errno.h>" > conftest.c
    echo "int main () { return 0; }" >> conftest.c
```

I don't have a way to test this but this should at least cause the failure to
happen earlier during configure rather than later on.

  parent reply	other threads:[~2023-08-24 21:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24 19:58 [Bug bootstrap/111141] New: " etienne_lorrain at yahoo dot fr
2023-08-24 20:09 ` [Bug bootstrap/111141] " redi at gcc dot gnu.org
2023-08-24 21:03 ` pinskia at gcc dot gnu.org [this message]
2023-08-28 20:40 ` etienne_lorrain at yahoo dot fr
2023-08-28 20:44 ` pinskia at gcc dot gnu.org
2023-09-12 21:55 ` hp at gcc dot gnu.org
2023-09-12 21:59 ` hp at gcc dot gnu.org

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-111141-4-HR9pTdi8mC@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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).