unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Jean-Christophe Helary <lists@traduction-libre.org>,
	Emacs Devel <emacs-devel@gnu.org>
Subject: Re: ./configure --with-native-compilation on macos (11.5.2 Big Sur)
Date: Wed, 8 Sep 2021 21:59:15 +0100	[thread overview]
Message-ID: <YTkkIwmjahN6/6bx@idiocy.org> (raw)
In-Reply-To: <YTjXV9+hVJxDcyKe@idiocy.org>

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

On Wed, Sep 08, 2021 at 04:31:35PM +0100, Alan Third wrote:
> On Mon, Sep 06, 2021 at 06:45:58PM +0900, Jean-Christophe Helary wrote:
> > >>> What is the result of
> > >>> 
> > >>> port installed active | grep '^ *gcc@<:@0-9@:>@* ' | awk '{ print $1; }'
> > >> 
> > >> the result is a blank line
> <snip>
> > > Totally removing macports allowed me to properly run ./configure --with-native-compilation
> > > I am currently "make"ing emacs.
> > > 
> > > There are some apps that I need from macport so I'll reinstall it from scratch.
> > 
> > Alan,
> > 
> > I confirm that reinstalling llvm through macports makes the issue
> > appear again. So there is indeed a conflict between brew and
> > macports here.
> 
> Can you please send the output from 'port installed active'?

Actually, I took a second look at my change and may know why it wasn't
doing what I was expecting. Please try the attached.
-- 
Alan Third

[-- Attachment #2: v2-0001-Don-t-add-flags-when-MacPorts-is-installed-but-GC.patch --]
[-- Type: text/x-diff, Size: 1533 bytes --]

From 057f8b904de98e3133da6e9c1f82b1670ce8af5c Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Sun, 5 Sep 2021 14:04:45 +0100
Subject: [PATCH v2] Don't add flags when MacPorts is installed but GCC isn't

* configure.ac: Check whether there is any value in $PORT_PACKAGE
before trying to use it.
---
 configure.ac | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 418a62fd5e..38f9b69458 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3840,12 +3840,14 @@ AC_DEFUN
       # instance).
       PORT_PACKAGE=$(port installed active | grep '^ *gcc@<:@0-9@:>@* ' | \
                           awk '{ print $1; }')
-      MACPORTS_LIBGCCJIT_INCLUDE=$(dirname $(port contents $PORT_PACKAGE | \
-                                           grep libgccjit.h))
-      MACPORTS_LIBGCCJIT_LIB=$(dirname $(port contents $PORT_PACKAGE | \
+      if test -n "$PORT_PACKAGE"; then
+        MACPORTS_LIBGCCJIT_INCLUDE=$(dirname $(port contents $PORT_PACKAGE | \
+                                             grep libgccjit.h))
+        MACPORTS_LIBGCCJIT_LIB=$(dirname $(port contents $PORT_PACKAGE | \
                                               grep libgccjit.dylib))
-      CFLAGS="$CFLAGS -I${MACPORTS_LIBGCCJIT_INCLUDE}"
-      LDFLAGS="$LDFLAGS -L${MACPORTS_LIBGCCJIT_LIB}"
+        CFLAGS="$CFLAGS -I${MACPORTS_LIBGCCJIT_INCLUDE}"
+        LDFLAGS="$LDFLAGS -L${MACPORTS_LIBGCCJIT_LIB}"
+      fi
     fi
 
     # Check if libgccjit is available.
-- 
2.30.2


  reply	other threads:[~2021-09-08 20:59 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-15  6:10 ./configure --with-native-compilation on macos (11.5.2 Big Sur) Jean-Christophe Helary
2021-08-16 17:18 ` Alan Third
2021-08-17  0:59   ` Jean-Christophe Helary
2021-08-17  1:02     ` Jean-Christophe Helary
2021-08-17 19:45     ` Alan Third
2021-08-20  6:29       ` Jean-Christophe Helary
2021-08-21  4:43         ` Jean-Christophe Helary
2021-08-21  9:47           ` Alan Third
2021-09-05 13:07             ` Alan Third
2021-09-05 13:22               ` Jean-Christophe Helary
2021-09-06  3:24                 ` Alan Third
2021-09-06  3:46                   ` Jean-Christophe Helary
2021-09-06  6:27                     ` Jean-Christophe Helary
2021-09-06  6:43                       ` Jean-Christophe Helary
2021-09-06  7:10                         ` Jean-Christophe Helary
2021-09-06  7:34                           ` Stefan Kangas
2021-09-06  7:38                             ` Jean-Christophe Helary
2021-09-06  7:52                               ` Stefan Kangas
2021-09-06 10:33                         ` Eli Zaretskii
2021-09-06 12:12                           ` Jean-Christophe Helary
2021-09-06 12:34                             ` Eli Zaretskii
2021-09-06  9:45                       ` Jean-Christophe Helary
2021-09-06 20:01                         ` Alan Third
2021-09-06 23:50                           ` Jean-Christophe Helary
2021-09-13 22:55                             ` Jean-Christophe Helary
2021-09-08  7:34                           ` Lars Ingebrigtsen
2021-09-08 15:31                         ` Alan Third
2021-09-08 20:59                           ` Alan Third [this message]
2021-09-08 21:15                             ` Alan Third
2021-09-08 23:44                           ` Jean-Christophe Helary
2021-09-09 21:07                             ` Alan Third
2021-09-10  0:35                               ` Jean-Christophe Helary
2021-09-10 20:53                                 ` Alan Third
2021-09-11  5:54                                   ` Eli Zaretskii
2021-09-11  0:30                               ` Jean-Christophe Helary
2021-09-11 16:17                                 ` Alan Third
2021-09-12  8:47                                   ` Jean-Christophe Helary
2021-09-12 11:59                                     ` Alan Third
2021-09-13 12:06                                       ` Jean-Christophe Helary
2021-09-13 18:19                                         ` Alan Third
2021-09-13 18:42                                           ` Alan Third
2021-09-13 22:04                                             ` Jean-Christophe Helary
2021-09-13 22:08                                               ` Alan Third
2021-09-13 22:24                                                 ` Jean-Christophe Helary
2021-09-13 22:56                                                   ` Jean-Christophe Helary
2021-09-14 15:22                                           ` Alan Third
2021-09-14 17:10                                             ` Jean-Christophe Helary

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=YTkkIwmjahN6/6bx@idiocy.org \
    --to=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    --cc=lists@traduction-libre.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 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).