From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp002.apm-internet.net (smtp002.apm-internet.net [85.119.248.221]) by sourceware.org (Postfix) with ESMTPS id 7B1BD3858C50 for ; Sat, 14 Jan 2023 14:34:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7B1BD3858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sandoe.co.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=sandoe.co.uk Received: (qmail 71929 invoked from network); 14 Jan 2023 14:34:54 -0000 X-APM-Out-ID: 16737068947192 X-APM-Authkey: 257869/1(257869/1) 3 Received: from unknown (HELO smtpclient.apple) (81.138.1.83) by smtp002.apm-internet.net with SMTP; 14 Jan 2023 14:34:54 -0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: get make error when build gcc-13 on m1 MacOS 13 From: Iain Sandoe In-Reply-To: Date: Sat, 14 Jan 2023 14:34:54 +0000 Cc: gcc-help@gcc.gnu.org, Jonathan Wakely Content-Transfer-Encoding: quoted-printable Message-Id: <1061A598-B3EF-4F79-9500-E8EC53AD1DFA@sandoe.co.uk> References: To: =?utf-8?B?5b6Q5L+d6ZKw?= X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,BODY_8BITS,KAM_COUK,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,KAM_SHORT,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > On 14 Jan 2023, at 14:23, Jonathan Wakely = wrote: >=20 > On Sat, 14 Jan 2023 at 13:31, =E5=BE=90=E4=BF=9D=E9=92=B0 via Gcc-help = wrote: >> I want to build gcc-13 on my M1 MacBook Pro. Following official = document >> , I download source code using git, = configure >> and make. >>=20 >> For configure, I refer to the way of Homebrew configure gcc-12 on = link >> = . >=20 > I think Homebrew uses a patched version of GCC, because there are > changes for M1 support that are not yet available in upstream GCC. So > the same config used for the Homebrew build will not necessarily work > for the unpatched upstream sources. As Jonathan says, the M1 (Arm64 / aarch64) support for macOS is not yet = upstreamed. The prototype / experimental branch is here: = https://github.com/iains/gcc-darwin-arm64 I rebase that work from time to time, (should be an update in the next = week or so). NOTE you might run into = https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107568 with the macOS13 SDK - the work-around is to: make BOOT_CFLAGS=3D"-O2 -g -Wno-error=3Ddeprecated-declarations=E2=80=9D= =20 (with your -jXX and any other flags you use unchanged) HTH, Iain