all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Fleischer <danflscr@gmail.com>
To: Jonathon McKitrick <jcm@SDF.ORG>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Help with native compilation
Date: Tue, 19 Oct 2021 22:24:49 +0300	[thread overview]
Message-ID: <m24k9crf5q.fsf@gmail.com> (raw)
In-Reply-To: <YW6lKX26boccos40@SDF.ORG> (Jonathon McKitrick's message of "Tue,  19 Oct 2021 10:59:53 +0000")

Jonathon McKitrick [2021-10-19 Tue 10:59] wrote:

> I'm trying to build emacs 28 or 29 with native compilation on macos.

From "etc/PROBLEMS" in the Emacs project:

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 initialization
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") ":"))


You might need to adjust the version numbers.

-- 

Daniel Fleischer



  reply	other threads:[~2021-10-19 19:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-19 10:59 Help with native compilation Jonathon McKitrick
2021-10-19 19:24 ` Daniel Fleischer [this message]
2021-10-21 15:04   ` jcm
2021-10-27 11:04     ` Jonathon McKitrick

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=m24k9crf5q.fsf@gmail.com \
    --to=danflscr@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jcm@SDF.ORG \
    /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.