From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B91683858037; Fri, 5 Nov 2021 23:18:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B91683858037 From: "timturnerc at yahoo dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: enhancement X-Bugzilla-Who: timturnerc at yahoo dot com X-Bugzilla-Status: SUSPENDED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Nov 2021 23:18:23 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96168 Tim Turner changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timturnerc at yahoo dot com --- Comment #13 from Tim Turner --- amd64-linux-siginfo.c: Adjust include order to avoid gnulib error=20 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/=20=20 from /usr/include/signal.h:315, from ../gnulib/import/signal.h:52, http://www.slipstone.co.uk/=20=20 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/=20=20 ../gnulib/import/unistd.h:663:3: error: #error "Please include config.h first." 663 | #error "Please include config.h first." http://connstr.net/=20= =20 | ^~~~~ glibc-2.33 has changed signal.h to now include http://www.go-mk-websites.co.uk/ which, in turn, includes . 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 . http://www.jopspeech.com/=20 The fix is simple - we just rearrange the order of the header file includes to make sure that gdbsupport/ http://fishingnewsletters.co.uk/= =20 commondefs.h is included before attempting to include signal.h. Note that gdbsupport/commondefs.h includes . http://www.wearelondonmade.com/=20 Build and regression tested on Fedora 33. On Fedora rawhide, GDB builds again. https://waytowhatsnext.com/=20 gdb/ChangeLog: glibc-2.33 has changed signal.h to now include which, in turn, includes . 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 . http://www-look-4.com/=20 The fix is simple - we just rearrange the order of the header file https://www.webb-dev.co.uk/=20 includes to make sure that gdbsupport/commondefs.h is included before attempting to include signal.h. Note that gdbsupport/commondefs.h includes .=