From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Artem Loenko via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45455: [nextstep]: Emacs master does not compile on Apple Silicon (arm64) Date: Sun, 27 Dec 2020 11:53:26 +0000 Message-ID: <4F964265-C862-43DE-A1BB-252C0649167D@mac.com> Reply-To: Artem Loenko Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_422397ED-AA12-4118-A82F-0F2AB45C3B3C" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6824"; mail-complaints-to="usenet@ciao.gmane.io" To: 45455@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 27 12:54:25 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktUcz-0001ee-Iw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Dec 2020 12:54:25 +0100 Original-Received: from localhost ([::1]:43156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktUcy-0006Z8-LD for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Dec 2020 06:54:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktUcc-0006Yx-VQ for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2020 06:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktUcc-0001no-Mf for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2020 06:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ktUcc-0002TO-LF for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2020 06:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artem Loenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Dec 2020 11:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45455 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16090700149460 (code B ref -1); Sun, 27 Dec 2020 11:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Dec 2020 11:53:34 +0000 Original-Received: from localhost ([127.0.0.1]:60382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktUcA-0002SW-8z for submit@debbugs.gnu.org; Sun, 27 Dec 2020 06:53:34 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktUc9-0002SP-Cq for submit@debbugs.gnu.org; Sun, 27 Dec 2020 06:53:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktUc9-0006Xc-5E for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2020 06:53:33 -0500 Original-Received: from mr85p00im-ztdg06011801.me.com ([17.58.23.199]:52973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktUc7-0001dw-FY for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2020 06:53:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1609070009; bh=ZqFamcin0mtAldqa1Bo8vmebvgBNyHGNUg6o69VGvQc=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=EBpOiAsLjZBVUMyzyRiWeNAo19n9F/FSqeVI8vGJms+P1hvIlIIRelzJxuzuj5tN4 64ydgysbEE/EJ4vGQObL3mkvyr3IprlB8BNetLMBEIKA7X9xFhVj3pfRyBWosekD/4 QLGZTOK14XY56p/7DhDPrtiHGJj+5ciqL723U+KT18u8+WptcAe+kUYvctrIdUX6ck X1geNCl1fIutVhGCsgSa0BLD4uAB9RQUpajWQqIGlB2E/rYFy+kfvXDSo1Mx2aoFVb D/raQhIIxadHRHOFhWFlUMizopJEiCCn9jaOV8rJdkbzWL49cTIbyD82OCiVJQzmsM yWRiSSucmhmPg== Original-Received: from [192.168.1.21] (cpc157823-brnt5-2-0-cust20.4-2.cable.virginm.net [86.25.108.21]) by mr85p00im-ztdg06011801.me.com (Postfix) with ESMTPSA id CA0BFC0510 for ; Sun, 27 Dec 2020 11:53:28 +0000 (UTC) X-Mailer: Apple Mail (2.3654.40.0.2.32) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2020-12-27_09:2020-12-24, 2020-12-27 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2012270075 Received-SPF: pass client-ip=17.58.23.199; envelope-from=artyom.loenko@mac.com; helo=mr85p00im-ztdg06011801.me.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196794 Archived-At: --Apple-Mail=_422397ED-AA12-4118-A82F-0F2AB45C3B3C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello there, Emacs master (as of 8bc727d0b4 "Fix the recent `length' doc string = addition" commit) does not compile on Apple Silicon (M1) anymore. = Compilation fails with the following error: ./temacs --batch -l loadup --temacs=3Dpbootstrap make[1]: *** [bootstrap-emacs.pdmp] Killed: 9 make: *** [src] Error 2 When you try to run the `temacs` under lldb, it shows the following = problem: (lldb) process launch Process 75320 launched: '/Users/dive/Projects/emacs/src/temacs' (arm64) Loading loadup.el (source)... ... Eager macro-expansion failure: (void-variable search-slow-speed) Eager macro-expansion failure: (void-variable search-slow-speed) Symbol=E2=80=99s value as variable is void: search-slow-speed Process 75320 exited with status =3D 255 (0x000000ff)=20 The problem was introduced in the "Merge from origin/emacs-27=E2=80=9D = commit =E2=80=93 = https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D90ec81f5b243b6b7b= 3ebe2de394b20e8078ebc96 and I believe it was unintentional revert of = DO_CODESIGN within src/Makefile.in: diff --git a/src/Makefile.in b/src/Makefile.in index 39c0f12fe6..19304cca04 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -338,7 +338,7 @@ HAVE_PDUMPER =3D @HAVE_PDUMPER@ =20 ## ARM Macs require that all code have a valid signature. Since pump ## invalidates the signature, we must re-sign to fix it. -DO_CODESIGN=3D$(patsubst aarch64-apple-darwin%,yes,@configuration@) +DO_CODESIGN=3D$(patsubst arm-apple-darwin%,yes,@configuration@) The following patch reverts the change and fixes the problem: diff --git a/src/Makefile.in b/src/Makefile.in index 19304cca04..39c0f12fe6 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -338,7 +338,7 @@ HAVE_PDUMPER =3D =20 ## ARM Macs require that all code have a valid signature. Since pump ## invalidates the signature, we must re-sign to fix it. -DO_CODESIGN=3D$(patsubst arm-apple-darwin%,yes,@configuration@) +DO_CODESIGN=3D$(patsubst aarch64-apple-darwin%,yes,@configuration@) =20 # 'make' verbosity. AM_DEFAULT_VERBOSITY =3D @AM_DEFAULT_VERBOSITY@ Regards, Artem Loenko --Apple-Mail=_422397ED-AA12-4118-A82F-0F2AB45C3B3C Content-Disposition: attachment; filename=path_do_codesign.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="path_do_codesign.patch" Content-Transfer-Encoding: 7bit diff --git a/src/Makefile.in b/src/Makefile.in index 19304cca04..39c0f12fe6 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -338,7 +338,7 @@ HAVE_PDUMPER = ## ARM Macs require that all code have a valid signature. Since pump ## invalidates the signature, we must re-sign to fix it. -DO_CODESIGN=$(patsubst arm-apple-darwin%,yes,@configuration@) +DO_CODESIGN=$(patsubst aarch64-apple-darwin%,yes,@configuration@) # 'make' verbosity. AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ --Apple-Mail=_422397ED-AA12-4118-A82F-0F2AB45C3B3C--