From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konrad Podczeck Newsgroups: gmane.emacs.bugs Subject: bug#48804: 27.2; compilation emacs on macOS Date: Fri, 4 Jun 2021 13:52:23 +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=_59D06580-37C8-4109-92F3-D2B1E1046200" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14388"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alan Third , nisoni@algon.dk, 48804@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 04 13:53:15 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 1lp8O2-0003Wm-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Jun 2021 13:53:14 +0200 Original-Received: from localhost ([::1]:48772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lp8Nx-0001Bu-5b for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Jun 2021 07:53:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lp8Nq-0001BR-KS for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 07:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34108) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lp8Nq-0006j1-Ct for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 07:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lp8Nq-0005bd-9e for bug-gnu-emacs@gnu.org; Fri, 04 Jun 2021 07:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Konrad Podczeck Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Jun 2021 11:53: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.162280755121482 (code B ref 48804); Fri, 04 Jun 2021 11:53:02 +0000 Original-Received: (at 48804) by debbugs.gnu.org; 4 Jun 2021 11:52:31 +0000 Original-Received: from localhost ([127.0.0.1]:45647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp8NK-0005aG-Mp for submit@debbugs.gnu.org; Fri, 04 Jun 2021 07:52:31 -0400 Original-Received: from grace.univie.ac.at ([131.130.3.115]:58162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lp8NI-0005a6-DB for 48804@debbugs.gnu.org; Fri, 04 Jun 2021 07:52:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=univie.ac.at; s=rev2; h=References:To:Cc:In-Reply-To:Date:Subject: Mime-Version:Content-Type:Message-Id:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=BQs5EJi5UUcOuaCvPb92TvUAyKafzlbtsW9fajP5gc0=; b=B48VqS4Lis5LVCILB05AZdakPK Y9LxYk24M5ezpPkdZNBfTxiU6XzIbP82JasIlrRWqPibbnaXLSVNKogv3SO16yI52xhbDEJt7eSbg aR23a6712KEtGOKylHBcHFYWYrmwAfeUUP/MXrpsbrl6M+j+/hjb6rXxULfrJ+HRSfFQ=; Original-Received: from justin.univie.ac.at ([131.130.3.111] helo=justin.univie.ac.at) by grace.univie.ac.at with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.94.2) (envelope-from ) id 1lp8NE-00G1WS-4R; Fri, 04 Jun 2021 13:52:24 +0200 Original-Received: from 188-22-170-60.adsl.highway.telekom.at ([188.22.170.60] helo=smtpclient.apple) by justin.univie.ac.at with esmtpsa (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.94.2) (envelope-from ) id 1lp8ND-00Glng-L3; Fri, 04 Jun 2021 13:52:23 +0200 In-Reply-To: <8335tyw4mk.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Univie-Virus-Scan: scanned by ClamAV on justin.univie.ac.at 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:208002 Archived-At: --Apple-Mail=_59D06580-37C8-4109-92F3-D2B1E1046200 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > 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. 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. >=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). --Apple-Mail=_59D06580-37C8-4109-92F3-D2B1E1046200 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

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).

= --Apple-Mail=_59D06580-37C8-4109-92F3-D2B1E1046200--