all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Fleischer <daniel.fleischer@amobee.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 50411@debbugs.gnu.org, nisoni@algon.dk,
	Daniel Fleischer <danflscr@gmail.com>
Subject: bug#50411: 28.0.50; emacs compilation
Date: Sun, 19 Sep 2021 17:30:40 +0300	[thread overview]
Message-ID: <m28rzswsbz.fsf@amobee.com> (raw)
In-Reply-To: <834kah5die.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Sep 2021 08:40:41 +0300")

[-- Attachment #1: Type: text/plain, Size: 302 bytes --]

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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Updated patch --]
[-- Type: text/x-patch, Size: 1318 bytes --]

From bf0fdd9ac6e1cc7b5b85dbe4977ec0fe6c58291f Mon Sep 17 00:00:00 2001
From: Daniel Fleischer <danflscr@gmail.com>
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


[-- Attachment #3: Type: text/plain, Size: 23 bytes --]


-- 

Daniel Fleischer

  reply	other threads:[~2021-09-19 14:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05 19:10 bug#50411: 28.0.50; emacs compilation Niels Søndergaard
2021-09-06  4:39 ` Eli Zaretskii
2021-09-06  8:30   ` Niels Søndergaard
2021-09-06  8:38   ` Niels Søndergaard
2021-09-06 10:58     ` Eli Zaretskii
2021-09-18 13:58       ` Daniel Fleischer
2021-09-18 14:20         ` Eli Zaretskii
2021-09-18 20:28           ` Niels Søndergaard
2021-09-18 21:25           ` Daniel Fleischer
2021-09-19  0:46             ` Niels Søndergaard
2021-09-19  7:08               ` Daniel Fleischer
2021-09-19  5:40             ` Eli Zaretskii
2021-09-19 14:30               ` Daniel Fleischer [this message]
2021-09-19 16:16                 ` Eli Zaretskii
2021-09-19 17:56                   ` Alan Third
2021-09-22  6:49                     ` Eli Zaretskii
2021-09-22  7:09                       ` Niels Søndergaard
2022-08-22 20:50                       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m28rzswsbz.fsf@amobee.com \
    --to=daniel.fleischer@amobee.com \
    --cc=50411@debbugs.gnu.org \
    --cc=danflscr@gmail.com \
    --cc=eliz@gnu.org \
    --cc=nisoni@algon.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.