From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: ./configure --with-native-compilation on macos (11.5.2 Big Sur) Date: Tue, 14 Sep 2021 07:56:51 +0900 Message-ID: <27B72EA2-F110-4579-A453-2F426AEF5F82@traduction-libre.org> References: <5F33DEC8-5272-41B7-A113-32A69A2E7357@traduction-libre.org> <07148D36-9963-4048-AF82-582FF09B5EB2@traduction-libre.org> <06FC1F7D-92CF-4722-AB6F-1B698F48082B@traduction-libre.org> <608CDAE6-7F71-4193-90A0-B145B5A0F0A3@traduction-libre.org> <4FEC66A3-E4B5-4770-A72A-D13F1ECA4248@traduction-libre.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34026"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 14 00:58:12 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mPutw-0008fv-DI for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Sep 2021 00:58:12 +0200 Original-Received: from localhost ([::1]:34560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPutu-0006fY-6G for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Sep 2021 18:58:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPusl-0005y5-AW for emacs-devel@gnu.org; Mon, 13 Sep 2021 18:56:59 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:50477) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPusi-00065B-S3 for emacs-devel@gnu.org; Mon, 13 Sep 2021 18:56:59 -0400 Original-Received: (Authenticated sender: lists@traduction-libre.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 7786AE0002; Mon, 13 Sep 2021 22:56:54 +0000 (UTC) In-Reply-To: <4FEC66A3-E4B5-4770-A72A-D13F1ECA4248@traduction-libre.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=217.70.183.196; envelope-from=lists@traduction-libre.org; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:274675 Archived-At: > On Sep 14, 2021, at 7:24, Jean-Christophe Helary = wrote: >=20 >>>> 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? >>>=20 >>> I don't have gcc on brew. >>=20 >> Try installing gcc in brew. It doesn't break anything as clang will >> still be the default. >=20 > :-) >=20 > It worked :-) >=20 > 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=3D'$(srcdir)/../.git/logs/HEAD' = BIN_DESTDIR=3D''/Users/suzume/Documents/Repositories/emacs/nextstep/Emacs.= app/Contents/MacOS/'' \ = ELN_DESTDIR=3D'/Users/suzume/Documents/Repositories/emacs/nextstep/Emacs.a= pp/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 () >=3D kCTVersionNumber10_9) ^ = /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Framewo= rks/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=3DNSCocoaErrorDomain Code=3D4864 = "*** -[NSKeyedUnarchiver = _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive = cannot be decoded by NSKeyedUnarchiver" UserInfo=3D{NSDebugDescription=3D*= ** -[NSKeyedUnarchiver = _initForReadingFromData:error:throwLegacyExceptions:]: non-keyed archive = cannot be decoded by NSKeyedUnarchiver} =3D=3D=3D=3D=3D=3D 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/Res= ources/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 >=20 >=20 > --=20 > Jean-Christophe Helary @brandelune > https://mac4translators.blogspot.com > https://sr.ht/~brandelune/omegat-as-a-book/ >=20 >=20 --=20 Jean-Christophe Helary @brandelune https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/