emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ./configure --with-native-compilation on macos (11.5.2 Big Sur)


From: Alan Third
Subject: Re: ./configure --with-native-compilation on macos (11.5.2 Big Sur)
Date: Sun, 5 Sep 2021 14:07:11 +0100

On Sat, Aug 21, 2021 at 10:47:54AM +0100, Alan Third wrote:
> On Sat, Aug 21, 2021 at 01:43:17PM +0900, Jean-Christophe Helary wrote:
> > 
> > Apologies. I guess I was under the influence of my second vaccine shot... I 
> > forgot to use the --with-native-compilation when I reconfigured after 
> > patching...
> > 
> > And the result, with the patch and the flag, is:
> > 
> > checking for gcc_jit_context_acquire in -lgccjit... no
> > configure: error: ELisp native compiler was requested, but libgccjit was 
> > not found.
> > Please try installing libgccjit or a similar package.
> > 
> > :(
> 
> Can you send, I think, config.log? There should be an error message
> somewhere from the compiler that may give us a better idea of where
> it's going wrong.

I see this in your config.log:

configure:16825: checking for gcc_jit_context_acquire in -lgccjit
configure:16848: gcc -o conftest -g3 -O2 
-I/usr/local/Cellar/libffi/3.3_3/include 
-I/usr/local/Cellar/librsvg/2.50.7/include/librsvg-2.0 
-I/usr/local/Cellar/gdk-pixbuf/2.42.6/include/gdk-pixbuf-2.0 
-I/usr/local/Cellar/libpng/1.6.37/include/libpng16 
-I/usr/local/Cellar/libtiff/4.3.0/include 
-I/usr/local/Cellar/glib/2.68.3/include 
-I/usr/local/Cellar/cairo/1.16.0_5/include/cairo 
-I/usr/local/Cellar/glib/2.68.3/include 
-I/usr/local/Cellar/glib/2.68.3/include/glib-2.0 
-I/usr/local/Cellar/glib/2.68.3/lib/glib-2.0/include 
-I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include 
-I/usr/local/Cellar/pixman/0.40.0/include/pixman-1 
-I/usr/local/Cellar/fontconfig/2.13.1/include 
-I/usr/local/opt/freetype/include/freetype2 
-I/usr/local/Cellar/libpng/1.6.37/include/libpng16 
-I/usr/local/Cellar/libxcb/1.14_1/include 
-I/usr/local/Cellar/libxrender/0.9.10/include 
-I/usr/local/Cellar/libxext/1.3.4/include 
-I/usr/local/Cellar/libx11/1.7.2/include 
-I/usr/local/Cellar/libxcb/1.14_1/include 
-I/usr/local/Cellar/libxau/1.0.9/include 
-I/usr/local/Cellar/libxdmcp/1.1.3/include 
-I/usr/local/Cellar/xorgproto/2021.4/include 
-I/usr/local/Cellar/libgccjit/11.2.0/include -I   
-I/usr/local/opt/readline/include: -L/usr/local/opt/readline/lib: 
-L/usr/local/Cellar/libgccjit/11.2.0/lib/gcc/11 -L conftest.c -lgccjit    >&5
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
ld: warning: -L path 'conftest.c' is not a directory
ld: warning: dylib (/usr/local/Cellar/libgccjit/11.2.0/lib/gcc/11/libgccjit.so) 
was built for newer macOS version (11.5) than being linked (11.0)
Undefined symbols for architecture x86_64:
  "_main", referenced from:
     implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It looks like there's a spare "-L" at end of the gcc flags...

I have a suspicion here. You have both Homebrew and MacPorts
installed. Configure is picking up that you have both of them and is
trying to set up libgcc for both...

Perhaps the attached patch will fix it.
-- 
Alan Third

Attachment: 0001-Don-t-add-flags-when-MacPorts-is-installed-but-GCC-i.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]