<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    There is a macports ticket open for emacs/emacs-app on Sequoia:<br>
    <br>
    <a class="moz-txt-link-freetext" href="https://trac.macports.org/ticket/71047">https://trac.macports.org/ticket/71047</a><br>
    <br>
    It is interesting that you were able to install and activate
    emacs-app +nativecomp, but later experienced warnings and errors,
    whereas the reported behavior in the ticket is failing at the
    activate step. In any case, disabling nativecomp provided a
    successful workaround.<br>
    <br>
    Alan, thanks for the reddit link. That might be a solution for a
    patch to the port. I suggest sharing that link on the ticket.<br>
    <br>
    Regards,<br>
    Jonathan<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12/24/24 05:00,
      <a class="moz-txt-link-abbreviated" href="mailto:macports-users-request@lists.macports.org">macports-users-request@lists.macports.org</a> wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:mailman.1.1735041601.28181.macports-users@lists.macports.org">
      <pre class="moz-quote-pre" wrap=""><pre wrap=""
      class="moz-quote-pre">Date: Mon, 23 Dec 2024 11:36:07 -0800
From: Alan Bram <a class="moz-txt-link-rfc2396E"
      href="mailto:alan.bram@cornell.edu" moz-do-not-send="true"><alan.bram@cornell.edu></a>
To: <a class="moz-txt-link-abbreviated moz-txt-link-freetext"
      href="mailto:rcobbe@rcobbe.net" moz-do-not-send="true">rcobbe@rcobbe.net</a>
Cc: <a class="moz-txt-link-abbreviated moz-txt-link-freetext"
      href="mailto:macports-users@lists.macports.org"
      moz-do-not-send="true">macports-users@lists.macports.org</a>
Subject: Re: emacs-app: error invoking gcc driver
Message-ID:
        <a class="moz-txt-link-rfc2396E"
href="mailto:CACHqOS8PtqzNT4kCj2qfs3bnEnEq7W0AxsCerRDH_cQghdCKAg@mail.gmail.com"
      moz-do-not-send="true"><CACHqOS8PtqzNT4kCj2qfs3bnEnEq7W0AxsCerRDH_cQghdCKAg@mail.gmail.com></a>
Content-Type: text/plain; charset="utf-8"

Have a look at this comment from user 0dBgain on Reddit. I had the same
problem a couple of months ago, but didn't find this Reddit thread until
yesterday, so I haven't tried it yet. (Instead, I reinstalled Sonoma,
because the machine was new and there wasn't yet much new data on it.)

<a class="moz-txt-link-freetext"
href="https://www.reddit.com/r/emacs/comments/u28dji/comment/lv0au2o/"
      moz-do-not-send="true">https://www.reddit.com/r/emacs/comments/u28dji/comment/lv0au2o/</a>

If you do try this I would love to hear whether it works.

On Mon, Dec 23, 2024 at 8:02?AM Richard Cobbe <a
      class="moz-txt-link-rfc2396E" href="mailto:rcobbe@rcobbe.net"
      moz-do-not-send="true"><rcobbe@rcobbe.net></a> wrote:

</pre><blockquote type="cite" style="color: #007cff;"><pre wrap=""
      class="moz-quote-pre">I recently upgraded one of my machines to Sequoia 15.0 (there's an update
pending to 15.1.1 that I haven't yet installed) and am in the process of
reinstalling macports.  (I originally tried 'macports migrate' but I ran
into the Apple CLI installer bug preventing a lot of C++ compilation and
deleted my previous macports installation before I discovered the fix for
that.)

I just reinstalled emacs-app @29.4_2+nativecomp+rsvg+treesitter.  It built
correctly, and the resulting executable starts, but after a brief time, the
<b class="moz-txt-star"><span class="moz-txt-tag">*</span>Warnings<span
      class="moz-txt-tag">*</span></b> buffer pops up, and it's full of a bunch of messages like the
following:

? Warning (comp): libgccjit.so: error: error invoking gcc driver
? Warning (comp): <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>Users/r.cobbe<span
      class="moz-txt-tag">/</span></i>.emacs.d/elpa/auctex-14.0.8/tex-site.el:
Error: Internal native compiler error failed to compile
? Warning (comp): libgccjit.so: error: error invoking gcc driver
? Warning (comp): <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>Users/r.cobbe<span
      class="moz-txt-tag">/</span></i>.emacs.d/elpa/auctex-14.0.8/texmathp.el:
Error: Internal native compiler error failed to compile

Has anyone seen this?  Is there a workaround, or should I file a bug?
Rebuild without the nativecomp variant?

MacOS 15.0, Apple M2 chip.

Thanks,

Richard</pre></blockquote></pre>
    </blockquote>
    <br>
  </body>
</html>