From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Niels =?UTF-8?Q?S=C3=B8ndergaard?= Newsgroups: gmane.emacs.bugs Subject: bug#48804: 27.2; compilation emacs on macOS Date: Fri, 4 Jun 2021 14:19:54 +0200 Message-ID: References: <2AF45A3E-8412-437F-A903-F314C934E618@univie.ac.at> <8335tyw4mk.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_4E2A9E3F-D369-45FF-A875-EE2AF4C8CA10" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35095"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Niels =?UTF-8?Q?S=C3=B8ndergaard?= , Alan Third , 48804@debbugs.gnu.org To: Konrad Podczeck Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 04 14:21:16 2021 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 1lp8pA-000907-2k for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Jun 2021 14:21:16 +0200 Original-Received: from localhost ([::1]:41072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lp8p9-0000D3-3g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Jun 2021 08:21:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lp8ow-00007r-R2 for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 08:21:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lp8ow-0007r6-Hy for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 08:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lp8ow-0006Ld-CY for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 08:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Niels =?UTF-8?Q?S=C3=B8ndergaard?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2021 12:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48804 X-GNU-PR-Package: emacs Original-Received: via spool by 48804-submit@debbugs.gnu.org id=B48804.162280922624338 (code B ref 48804); Fri, 04 Jun 2021 12:21:02 +0000 Original-Received: (at 48804) by debbugs.gnu.org; 4 Jun 2021 12:20:26 +0000 Original-Received: from localhost ([127.0.0.1]:45719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp8oI-0006KQ-AP for submit@debbugs.gnu.org; Fri, 04 Jun 2021 08:20:26 -0400 Original-Received: from algon.dk ([212.99.233.66]:55426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp8oC-0006K3-JJ for 48804@debbugs.gnu.org; Fri, 04 Jun 2021 08:20:20 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by algon.dk (Postfix) with ESMTP id 900022004F; Fri, 4 Jun 2021 14:20:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at algon.dk Original-Received: from algon.dk ([127.0.0.1]) by localhost (odin.algon.dk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id IL-vodasPnfr; Fri, 4 Jun 2021 14:20:08 +0200 (CEST) Original-Received: from smtpclient.apple (unknown [85.83.136.51]) by algon.dk (Postfix) with ESMTPA id 71EEC20048; Fri, 4 Jun 2021 14:20:08 +0200 (CEST) In-Reply-To: X-Mailbutler-Message-Id: 8ADFF61C-1FDA-4A3D-8000-E06B03FABDA4 X-Mailer: Apple Mail (2.3654.100.0.2.22) 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:208004 Archived-At: --Apple-Mail=_4E2A9E3F-D369-45FF-A875-EE2AF4C8CA10 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks, I=E2=80=99ve gcc 10.2.0_4 installed by Homebrew on my new iMac 24=E2=80=9D= (with M1), and can=E2=80=99t get a newer version, so I=E2=80=99ll = properly have to wait =E2=80=A6..=20 but thanks mvh Niels=20 > Den 4. jun. 2021 kl. 13.52 skrev Konrad Podczeck = : >=20 >=20 >=20 >> Am 04.06.2021 um 08:00 schrieb Eli Zaretskii >: >>=20 >>> Date: Thu, 3 Jun 2021 22:34:44 +0100 >>> From: Alan Third > >>> Cc: nisoni@algon.dk , 48804@debbugs.gnu.org = >>>=20 >>>> in addition to libgccjit, you need to install gcc-11, and to insert = somethin like the following into your .bash_profile >>>>=20 >>>> export CC=3D"/usr/local/Cellar/gcc/11.1.0/bin/gcc-11=E2=80=9D >>>>=20 >>>> (assuming you use homebrew to install additional unix tools). >>>=20 >>> FYI GCC is unable to build GUI emacs on macOS (or at least the = native >>> GUI). And there's no requirement to build Emacs with GCC for native >>> compilation to work, as long as libgccjit was installed with = Homebrew, >>> Emacs configure should be able to find it. >>=20 >> That is true, but AFAIK libgccjit invokes gcc as part of the native >> compilation, so GCC does need to be installed, even if Emacs is built >> with another compiler. >=20 >=20 > For this reason, I mailed to the homebrew people, and got this = response: >=20 > "What compiler are you using? Do you have Homebrew gcc installed?" >=20 > After installing gcc-11 from homebrew, and inserting the line >=20 > export CC=3D"/usr/local/Cellar/gcc/11.1.0/bin/gcc-11=E2=80=9D >=20 > in my .bash_profile, the =E2=80=9Csmoke test" error message (about = which this disussion started) was gone and I could build Emacs with the = native compile option. >>=20 >> (And maybe we should ping the GCC developers to finish the work on = the >> features needed to build Emacs -- there's a Bugzilla PR, where, last >> time I checked, there was some work being done). >=20 --Apple-Mail=_4E2A9E3F-D369-45FF-A875-EE2AF4C8CA10 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks,
I=E2=80=99ve gcc 10.2.0_4 installed by = Homebrew on my new iMac 24=E2=80=9D (with M1), and can=E2=80=99t get a = newer version, so I=E2=80=99ll properly have to wait = =E2=80=A6.. 

but thanks

mvh
Niels 

Den 4. = jun. 2021 kl. 13.52 skrev Konrad Podczeck <konrad.podczeck@univie.ac.at>:



Am 04.06.2021 um 08:00 schrieb Eli Zaretskii <eliz@gnu.org>:

Date: Thu, 3 Jun 2021 = 22:34:44 +0100
From: Alan Third <alan@idiocy.org>
Cc: nisoni@algon.dk, 48804@debbugs.gnu.org

in addition to = libgccjit, you need to install gcc-11, and to insert somethin like the = following into your .bash_profile

export = CC=3D"/usr/local/Cellar/gcc/11.1.0/bin/gcc-11=E2=80=9D

(assuming you use homebrew to install additional unix = tools).

FYI GCC is unable to = build GUI emacs on macOS (or at least the native
GUI). And = there's no requirement to build Emacs with GCC for native
compilation to work, as long as libgccjit was installed with = Homebrew,
Emacs configure should be able to find it.

That is true, but AFAIK libgccjit = invokes gcc as part of the native
compilation, so GCC does = need to be installed, even if Emacs is built
with another = compiler.


For this reason, I = mailed to the homebrew people, and got this response:

"What compiler are you = using? Do you have Homebrew gcc installed?"

After installing gcc-11 from homebrew, = and inserting the line

export = CC=3D"/usr/local/Cellar/gcc/11.1.0/bin/gcc-11=E2=80=9D

in my .bash_profile, the = =E2=80=9Csmoke test" error message (about which this disussion started) = was gone and I could build Emacs with the native compile option.

(And maybe we should ping the GCC developers = to finish the work on the
features needed to build Emacs = -- there's a Bugzilla PR, where, last
time I checked, = there was some work being done).


3D""= --Apple-Mail=_4E2A9E3F-D369-45FF-A875-EE2AF4C8CA10--