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: Jean-Christophe Helary
Subject: Re: ./configure --with-native-compilation on macos (11.5.2 Big Sur)
Date: Tue, 14 Sep 2021 07:56:51 +0900


> On Sep 14, 2021, at 7:24, Jean-Christophe Helary <lists@traduction-libre.org> 
> wrote:
> 
>>>> Actually, it occurs to me that you said the problems occur when you
>>>> install llvm under Macports... I don't know how this stuff all ties
>>>> together, so is it possible that installing llvm is changing your
>>>> environment in some way that breaks the gcc install from brew?
>>> 
>>> I don't have gcc on brew.
>> 
>> Try installing gcc in brew. It doesn't break anything as clang will
>> still be the default.
> 
> :-)
> 
> It worked :-)
> 
> At least ./configure --with-native-compilation did :-)

I get error messages/warnings for the make process:

1)  AR       libgnu.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(u64.o) has 
no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(unistd.o) 
has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(u64.o) has 
no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libgnu.a(unistd.o) 
has no symbols
/Library/Developer/CommandLineTools/usr/bin/make -C lib-src all
  CCLD     etags
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
  CCLD     ctags
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
  CCLD     emacsclient
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
  CCLD     ebrowse
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
  CCLD     hexl
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
  CCLD     make-docfile
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
  CCLD     make-fingerprint
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
/Library/Developer/CommandLineTools/usr/bin/make -C src 
VCSWITNESS='$(srcdir)/../.git/logs/HEAD' 
BIN_DESTDIR=''/Users/suzume/Documents/Repositories/emacs/nextstep/Emacs.app/Contents/MacOS/''
 \
                 
ELN_DESTDIR='/Users/suzume/Documents/Repositories/emacs/nextstep/Emacs.app/Contents/Frameworks/'
 all


2)  CC       comp.o
comp.c:2645:24: warning: pragma diagnostic pop could not pop, no matching push 
[-Wunknown-pragmas]
#pragma GCC diagnostic pop
                       ^
comp.c:4385:24: warning: pragma diagnostic pop could not pop, no matching push 
[-Wunknown-pragmas]
#pragma GCC diagnostic pop
                       ^
comp.c:4401:24: warning: pragma diagnostic pop could not pop, no matching push 
[-Wunknown-pragmas]
#pragma GCC diagnostic pop
                       ^
comp.c:4655:24: warning: pragma diagnostic pop could not pop, no matching push 
[-Wunknown-pragmas]
#pragma GCC diagnostic pop
                       ^
4 warnings generated.

3)   CC       macfont.o
macfont.m:3547:15: warning: 'CTGetCoreTextVersion' is deprecated: first 
deprecated in macOS 11.0 - Use -[NSProcessInfo operatingSystemVersion] 
[-Wdeprecated-declarations]
          if (CTGetCoreTextVersion () >= kCTVersionNumber10_9)
              ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:61:10:
 note: 'CTGetCoreTextVersion' has been explicitly marked deprecated here
uint32_t CTGetCoreTextVersion( void ) CT_DEPRECATED("Use -[NSProcessInfo 
operatingSystemVersion]", macos(10.5, 11.0), ios(3.2, 14.0), watchos(2.0, 7.0), 
tvos(9.0, 14.0));
         ^

1 warning generated.

4)   CCLD     temacs
ld: warning: directory not found for option '-L/usr/local/opt/readline/lib:'
ld: warning: dylib (/usr/local/Cellar/libgccjit/11.2.0/lib/gcc/11/libgccjit.so) 
was built for newer macOS version (11.3) than being linked (11.0)

5) 2021-09-14 07:25:47.082 temacs[17826:2576579] Failed to initialize color 
list unarchiver: Error Domain=NSCocoaErrorDomain Code=4864 "*** 
-[NSKeyedUnarchiver _initForReadingFromData:error:throwLegacyExceptions:]: 
non-keyed archive cannot be decoded by NSKeyedUnarchiver" 
UserInfo={NSDebugDescription=*** -[NSKeyedUnarchiver 
_initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive cannot 
be decoded by NSKeyedUnarchiver}

======

but in the end it looks like make makes it to the end.

When I (re)launch Emacs after make install I get this (as I did before):

Warning (comp): libgccjit.so: error: error invoking gcc driver Disable showing 
Disable logging
Warning (comp): 
/Users/suzume/Documents/Repositories/emacs/nextstep/Emacs.app/Contents/Resources/lisp/emacs-lisp/cl-lib.el.gz:
 Error: Internal native compiler error failed to compile Disable showing 
Disable logging

Then I guess Emacs starts doing its thing in the background since it runs at 
about 2% of CPU use.

As far as I can tell, it looks like things are working as expected.


JC

> 
> 
> -- 
> Jean-Christophe Helary @brandelune
> https://mac4translators.blogspot.com
> https://sr.ht/~brandelune/omegat-as-a-book/
> 
> 

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/




reply via email to

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