unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Doug Davis <ddavis@ddavis.io>
To: Alan Third <alan@idiocy.org>
Cc: "Niels Søndergaard" <nisoni@algon.dk>,
	konrad.podczeck@univie.ac.at, 48804@debbugs.gnu.org
Subject: bug#48804: 27.2; compilation emacs on macOS
Date: Fri, 04 Jun 2021 12:04:01 -0400	[thread overview]
Message-ID: <m2o8clobv2.fsf@ddavis.io> (raw)
In-Reply-To: <YLo7/LQjEaGTAarL@breton.holly.idiocy.org> (Alan Third's message of "Fri, 4 Jun 2021 15:43:08 +0100")

Alan Third <alan@idiocy.org> writes:

> On Fri, Jun 04, 2021 at 05:15:23PM +0300, Eli Zaretskii wrote:
>> > From: Niels Søndergaard <nisoni@algon.dk>
>> > Date: Fri, 4 Jun 2021 16:08:10 +0200
>> > Cc: Niels Søndergaard <nisoni@algon.dk>,
>> >  Alan Third <alan@idiocy.org>,
>> >  Konrad Podczeck <konrad.podczeck@univie.ac.at>,
>> >  48804@debbugs.gnu.org
>> >
>> > Yes, 10.2.0_4
>> >
>> > installed by Homebrew ben default on my machine

Homebrew provides binaries for gcc 11.1 and libgccjit 11.1. The
libgccjit page quotes 11.1 as the current version
(https://formulae.brew.sh/formula/libgccjit) Perhaps try to track down
why your Homebrew installation isn't finding the latest formula?

>>
>> That's the problem: AFAIK Emacs cannot be built on macOS with GCC.
>> And I don't think not specifying --with-ns avoids that problem.
>
> --with-ns is the default on macOS, so to build with GCC you need to
> specify --without-ns. But that's probably not what's wanted here.
>
> Neils, if you followed the suggestion elsewhere in this thread to set
> CC, please undo that and let configure find clang.
>
> Make sure you have the latest libgccjit installed with homebrew
> (version 11?).

With the latest gcc & libgccjit installed I'm writing this email from
the Emacs master branch on an M1 MacBook Air compiled with:

$ CFLAGS="-O3 -g3 -I/opt/homebrew/opt/libgccjit/include" LDFLAGS="-L/opt/homebrew/opt/libgccjit/lib/gcc/11/" ./configure --with-native-compilation
$ make -j7
$ src/emacs





  parent reply	other threads:[~2021-06-04 16:04 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-03  5:54 bug#48804: 27.2; compilation emacs on macOS Niels Søndergaard
2021-06-03  6:46 ` Eli Zaretskii
2021-06-03  6:51   ` Niels Søndergaard
2021-06-03  7:49     ` Eli Zaretskii
2021-06-03  8:12       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-03  9:10         ` Niels Søndergaard
2021-06-03  9:21           ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-03  7:57     ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-03  8:22 ` Konrad Podczeck
2021-06-03 21:34   ` Alan Third
2021-06-04  6:00     ` Eli Zaretskii
2021-06-04 11:52       ` Konrad Podczeck
2021-06-04 12:19         ` Niels Søndergaard
2021-06-04 12:23           ` Eli Zaretskii
2021-06-04 12:26             ` Alan Third
2021-06-04 12:32               ` Eli Zaretskii
2021-06-04 12:59                 ` Alan Third
2021-06-04 13:03                   ` Niels Søndergaard
2021-06-04 12:59                 ` Niels Søndergaard
2021-06-04 13:56                   ` Eli Zaretskii
2021-06-04 14:08                     ` Niels Søndergaard
2021-06-04 14:15                       ` Eli Zaretskii
2021-06-04 14:43                         ` Alan Third
2021-06-04 15:02                           ` Niels Søndergaard
2021-06-04 15:15                             ` Niels Søndergaard
2021-06-04 18:55                               ` Eli Zaretskii
2021-06-04 16:04                           ` Doug Davis [this message]
2021-06-04 14:33             ` Konrad Podczeck

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m2o8clobv2.fsf@ddavis.io \
    --to=ddavis@ddavis.io \
    --cc=48804@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    --cc=konrad.podczeck@univie.ac.at \
    --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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).