public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "timturnerc at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96168] GCC support for Apple Silicon (Arm64) on macOS requested Date: Fri, 05 Nov 2021 23:18:22 +0000 [thread overview] Message-ID: <bug-96168-4-K0XgtJCP7j@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-96168-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96168 Tim Turner <timturnerc at yahoo dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timturnerc at yahoo dot com --- Comment #13 from Tim Turner <timturnerc at yahoo dot com> --- amd64-linux-siginfo.c: Adjust include order to avoid gnulib error http://www.compilatori.com/ On Fedora rawhide, after updating to glibc-2.33, I'm seeing the following build failure: http://www.acpirateradio.co.uk/ CXX nat/amd64-linux-siginfo.o In file included from /usr/include/bits/sigstksz.h:24, http://www.logoarts.co.uk/ from /usr/include/signal.h:315, from ../gnulib/import/signal.h:52, http://www.slipstone.co.uk/ from /ironwood1/sourceware-git/rawhide-gnulib http://www.mconstantine.co.uk /bld/../../worktree-gnulib/gdbserver/../gdb/nat/amd64-linux-siginfo.c:20: http://embermanchester.uk/ ../gnulib/import/unistd.h:663:3: error: #error "Please include config.h first." 663 | #error "Please include config.h first." http://connstr.net/ | ^~~~~ glibc-2.33 has changed signal.h to now include http://www.go-mk-websites.co.uk/ <bits/sigstksz.h> which, in turn, includes <unistd.h>. http://joerg.li/ For a gdb build, this causes the gnulib version of unistd.h to be pulled in first. The build failure shown https://www.mktrade.fi/ above happens because gnulib's config.h has not been included before the include of <signal.h>. http://www.jopspeech.com/ The fix is simple - we just rearrange the order of the header file includes to make sure that gdbsupport/ http://fishingnewsletters.co.uk/ commondefs.h is included before attempting to include signal.h. Note that gdbsupport/commondefs.h includes <gnulib/config.h>. http://www.wearelondonmade.com/ Build and regression tested on Fedora 33. On Fedora rawhide, GDB builds again. https://waytowhatsnext.com/ gdb/ChangeLog: glibc-2.33 has changed signal.h to now include <bits/sigstksz.h> which, in turn, includes <unistd.h>. http://www.iu-bloomington.com/ For a gdb build, this causes the gnulib version of unistd.h to be http://the-hunters.org/ pulled in first. The build failure shown above happens because gnulib's https://komiya-dental.com/ config.h has not been included before the include of <signal.h>. http://www-look-4.com/ The fix is simple - we just rearrange the order of the header file https://www.webb-dev.co.uk/ includes to make sure that gdbsupport/commondefs.h is included before attempting to include signal.h. Note that gdbsupport/commondefs.h includes <gnulib/config.h>.
next prev parent reply other threads:[~2021-11-05 23:18 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-07-11 16:32 [Bug bootstrap/96168] New: Cannot bootstrap with Xcode 12 Beta on aarch64, macOS 11.0/Darwin, Apple Silicon gcczilla at cpellegrino dot de 2020-07-11 16:39 ` [Bug bootstrap/96168] " gcczilla at cpellegrino dot de 2020-07-11 16:40 ` pinskia at gcc dot gnu.org 2020-07-11 16:42 ` pinskia at gcc dot gnu.org 2020-07-11 16:50 ` gcczilla at cpellegrino dot de 2020-07-11 20:19 ` egallager at gcc dot gnu.org 2020-07-11 20:56 ` [Bug bootstrap/96168] GCC support for Apple Silicon (Arm64) on macOS requested iains at gcc dot gnu.org 2020-07-11 21:40 ` [Bug target/96168] " gcczilla at cpellegrino dot de 2020-07-11 23:40 ` keno at juliacomputing dot com 2020-07-12 0:48 ` pinskia at gcc dot gnu.org 2020-08-18 6:45 ` tkoenig at gcc dot gnu.org 2020-08-18 7:47 ` iains at gcc dot gnu.org 2021-04-26 18:19 ` noloader at gmail dot com 2021-11-05 23:18 ` timturnerc at yahoo dot com [this message] 2023-02-20 17:41 ` iains 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-96168-4-K0XgtJCP7j@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: linkBe 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).