From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Fleischer Newsgroups: gmane.emacs.bugs Subject: bug#50411: 28.0.50; emacs compilation Date: Sun, 19 Sep 2021 17:30:40 +0300 Message-ID: References: <83y28as4g9.fsf@gnu.org> <83bl56rmw8.fsf@gnu.org> <83k0je55jl.fsf@gnu.org> <834kah5die.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21822"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: 50411@debbugs.gnu.org, nisoni@algon.dk, Daniel Fleischer To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 19 17:29:11 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 1mRykg-0005Ol-Nt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 17:29:10 +0200 Original-Received: from localhost ([::1]:36932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRykf-0006vr-Cj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 11:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRykY-0006vZ-GK for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 11:29:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRykY-000404-9P for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRykY-00050o-6p for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Fleischer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Sep 2021 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50411 X-GNU-PR-Package: emacs Original-Received: via spool by 50411-submit@debbugs.gnu.org id=B50411.163206530519194 (code B ref 50411); Sun, 19 Sep 2021 15:29:02 +0000 Original-Received: (at 50411) by debbugs.gnu.org; 19 Sep 2021 15:28:25 +0000 Original-Received: from localhost ([127.0.0.1]:39568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRyjw-0004zR-SJ for submit@debbugs.gnu.org; Sun, 19 Sep 2021 11:28:25 -0400 Original-Received: from mail-wm1-f53.google.com ([209.85.128.53]:40771) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRxqE-0003VH-Qq for 50411@debbugs.gnu.org; Sun, 19 Sep 2021 10:30:51 -0400 Original-Received: by mail-wm1-f53.google.com with SMTP id b21-20020a1c8015000000b003049690d882so13635486wmd.5 for <50411@debbugs.gnu.org>; Sun, 19 Sep 2021 07:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amobee.com; s=google; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=W49Qk58SJ4euSUvRO4KCi42hf7HrCC6cn5H0/qfwQeM=; b=ATVeBltLvjtA7LG8+xe/xT3IwimDprh4uRGM2ZUA7eWvQoP8yFaQKlCMC9zHWJmqxe ZnXGlNVEl/clb/Y53+LRdQNv0WBaUJ5bypiRXErz7N2nO25uhnEa7kw9ugnX1AADiVpy mnAy+SQ6ybLrp743t5DY2h2JwONzIIH+WRsE0KoUScBEcMsToEi+vVXQZyfScYing5Ja EUDIjfCvCORK3AH7xPJB+W9NDzIlKCJGPrL/FGrsYqybhqs5Kattw5zRlu+Xge6EI7ZN 6xLim+rsLL9NINXqZ/UFLQ16tfT6Hfi202wHJwkqOgre9Jtm1lYNrybE174OZ4IXI39o Pxow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=W49Qk58SJ4euSUvRO4KCi42hf7HrCC6cn5H0/qfwQeM=; b=0yRcvfOk0j1b5hDqN8mOGccABu5EA/Ht0XjnVdxdt5C1FHu+21L7yYm8AKbErfbufm HW25b4/UOAHMDckxIrCBbgzatibHzFJn2Qger5/38SVrvp649b5rve54ywv91gy7Hc9f jzIPuoA1OHWF+KD2yw1TJq+FWw2JgJpX9JkDT6Syr8QTn3BN7eC/4hmwW4LSvQ1PaVZn BuBEsqom0mr0+GEuCJs34CrK2lXTGEogyS8NqN7DAgKF9/ymrgrLOthxvPidXJigwJ5A mYmaba8ynC+Zia1PHz1nKcWt7HBPu9wR+La8upX5e6Cv46y24H3psUrEj1MWbRvUnLYT Gv7A== X-Gm-Message-State: AOAM532JltMxWpSUP7WPjOsOBBIpqp3SzvuPAbCWs6bsX/J44t2P91MB 8cpcAqGdFgNGHSZPusxSGXH/1Q== X-Google-Smtp-Source: ABdhPJwZF7V8+Neadil8aHqx9FopfdqqDfrd4gOQ/7rFGHTdthEqUIPUNSv31N0AUIPkwT+xw6QcaA== X-Received: by 2002:a1c:a747:: with SMTP id q68mr20181229wme.180.1632061844845; Sun, 19 Sep 2021 07:30:44 -0700 (PDT) Original-Received: from Home-Mac ([141.226.13.159]) by smtp.gmail.com with ESMTPSA id f18sm15555471wrw.63.2021.09.19.07.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 07:30:44 -0700 (PDT) In-Reply-To: <834kah5die.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Sep 2021 08:40:41 +0300") X-Mailman-Approved-At: Sun, 19 Sep 2021 11:28:19 -0400 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:214728 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii [2021-09-19 Sun 08:40] wrote: > Thanks, this LGTM, but could you also include in the entry the > indications of the problem which this fixes? PROBLEMS is supposed to > be searched for error messages and other problematic indications users > see when they build or use Emacs. Attached. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Native-compilation-on-macOS-libgccjit-in-path.patch Content-Description: Updated patch >From bf0fdd9ac6e1cc7b5b85dbe4977ec0fe6c58291f Mon Sep 17 00:00:00 2001 From: Daniel Fleischer Date: Sun, 19 Sep 2021 00:17:49 +0300 Subject: [PATCH] Native compilation on macOS: libgccjit in path * etc/PROBLEMS: libgccjit should be in LIBRARY_PATH; example code for early initialization. --- etc/PROBLEMS | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/etc/PROBLEMS b/etc/PROBLEMS index f90418798d..42d714bf1e 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS @@ -2671,6 +2671,24 @@ something like the following in your init file: (push "\\`-[^-]*-monaco-bold-" face-ignored-fonts) +** Native Compilation on macOS + +Native complitation requires the libgccjit library to be installed and +its path available to Emacs. Errors such as: + + libgccjit.so: error: error invoking gcc driver + Error: Internal native compiler error failed to compile + +indicate Emacs can't find the library in running time. One can set +the "LIBRARY_PATH" environment variable in the early initalization +file; for example: + +(setenv "LIBRARY_PATH" + (string-join + '("/usr/local/opt/gcc/lib/gcc/11" + "/usr/local/opt/libgccjit/lib/gcc/11" + "/usr/local/opt/gcc/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0") ":")) + * Build-time problems ** Configuration -- 2.33.0 --=-=-= Content-Type: text/plain -- Daniel Fleischer --=-=-=--