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: Sun, 12 Sep 2021 17:47:45 +0900 Message-ID: <06FC1F7D-92CF-4722-AB6F-1B698F48082B@traduction-libre.org> References: <6266D349-AE54-452E-AFE4-AA9BA52BE291@traduction-libre.org> <9DC1AA65-7DCF-439D-8891-8787C28F03D6@traduction-libre.org> <5F33DEC8-5272-41B7-A113-32A69A2E7357@traduction-libre.org> <07148D36-9963-4048-AF82-582FF09B5EB2@traduction-libre.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33274"; 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 Sun Sep 12 10:48:59 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 1mPLAZ-0008PU-79 for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Sep 2021 10:48:59 +0200 Original-Received: from localhost ([::1]:57818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPLAY-00012H-9p for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Sep 2021 04:48:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPL9b-0000N0-5r for emacs-devel@gnu.org; Sun, 12 Sep 2021 04:47:59 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:33073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPL9Y-00005B-B0 for emacs-devel@gnu.org; Sun, 12 Sep 2021 04:47:58 -0400 Original-Received: (Authenticated sender: lists@traduction-libre.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id A483B240003; Sun, 12 Sep 2021 08:47:50 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.13) Received-SPF: pass client-ip=217.70.183.193; envelope-from=lists@traduction-libre.org; helo=relay1-d.mail.gandi.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, 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:274584 Archived-At: > On Sep 12, 2021, at 1:17, Alan Third wrote: >=20 > On Sat, Sep 11, 2021 at 09:30:44AM +0900, Jean-Christophe Helary = wrote: >>=20 >>=20 >>> On Sep 10, 2021, at 6:07, Alan Third wrote: >>>=20 >>> On Thu, Sep 09, 2021 at 08:44:47AM +0900, Jean-Christophe Helary = wrote: >>>>=20 >>>> And the third version of the patch you sent produced the same = error... :( >>>>=20 >>>> I have just totally removed brew and macports to remove all the >>>> cruft and reinstalled only the packages that I needed (and their >>>> dependencies). >>>=20 >>> What about running >>>=20 >>> HAVE_MACPORTS=3D"" ./configure >>=20 >> That worked, but >>=20 >> HAVE_MACPORTS=3D"" ./configure --with-native-compilation=20 >>=20 >> did not work. >>=20 >> And your latest patch did not either... :( >=20 > I'm out of ideas. >=20 > Are you definitely applying the patch correctly? I think I am. > Do you need to rerun autogen.sh? Make should automatically rerun it > when configure.ac has changed. >=20 > Does this print "GOOD" if you run it in the terminal? >=20 > PORT_PACKAGE=3D$(port installed active | grep '^ *gcc@<:@0-9@:>@* ' = | \ > awk '{ print $1; }') > if test -n "$PORT_PACKAGE"; then > echo "SOMETHING'S BROKEN" > else > echo "GOOD" > fi It does: emacs on =EE=82=A0 master [$=E2=9C=98!?]=20 =E2=9E=9C PORT_PACKAGE=3D$(port installed active | grep '^ = *gcc@<:@0-9@:>@* ' | \ awk '{ print $1; }') if test -n "$PORT_PACKAGE"; then echo "SOMETHING'S BROKEN" else echo "GOOD" fi GOOD What I'll do when I have some time is try again from scratch: 1) remove macports and brew 2) reinstall only the required dependencies, along with Xcode command = line tools 3) apply your last patch I think I have a "minimal" set of commands now, still, with the = dependencies it all adds up to quite something: emacs on =EE=82=A0 master [$=E2=9C=98!?] took 3s=20 =E2=9E=9C port installed The following ports are currently installed: bzip2 @1.0.8_0 (active) gettext @0.19.8.1_2 (active) icu @67.1_4 (active) libcxx @5.0.1_4 (active) libedit @20210216-3.1_0 (active) libffi @3.4.2_0 (active) libiconv @1.16_1 (active) libxml2 @2.9.12_1 (active) llvm-10 @10.0.1_2 (active) llvm_select @2_0 (active) ncurses @6.2_1 (active) openssl @1.1.1l_0 (active) readline @8.1.000_0 (active) xar @1.8.0.452_0 (active) xz @5.2.5_0 (active) zlib @1.2.11_0 (active) emacs on =EE=82=A0 master [$=E2=9C=98!?]=20 =E2=9E=9C brew list --versions ant 1.10.11 aom 3.1.2 autoconf 2.71 bdw-gc 8.0.4_2 berkeley-db 18.1.40 brotli 1.0.9 c-ares 1.17.2 cairo 1.16.0_5 docbook 5.1_1 docbook-xsl 1.79.2_1 fontconfig 2.13.1 freetype 2.11.0 fribidi 1.0.10 gdbm 1.20 gdk-pixbuf 2.42.6 gettext 0.21 ghostscript 9.54.0 giflib 5.2.1 git 2.33.0 glib 2.68.4 gmp 6.2.1 gnu-getopt 2.37.2 gnutls 3.6.16 gobject-introspection 1.68.0_1 graphite2 1.3.14 gsasl 1.10.0 guile 3.0.7 harfbuzz 2.9.0 icu4c 69.1 imagemagick 7.1.0-6 imath 3.1.3 isl 0.24 jansson 2.13.1 jbig2dec 0.19 jemalloc 5.2.1_1 jpeg 9d libde265 1.0.8 libev 4.33 libevent 2.1.12 libffi 3.3_3 libgccjit 11.2.0 libgcrypt 1.9.4 libgpg-error 1.42 libheif 1.12.0 libidn 1.38 libidn2 2.3.2 liblqr 0.4.2_1 libmpc 1.2.1 libomp 12.0.1 libpng 1.6.37 libpthread-stubs 0.4 librsvg 2.50.7 libtasn1 4.17.0 libtiff 4.3.0 libtool 2.4.6_4 libunistring 0.9.10 libuv 1.42.0 libx11 1.7.2 libxau 1.0.9 libxcb 1.14_1 libxdmcp 1.1.3 libxext 1.3.4 libxpm 3.5.13 libxrender 0.9.10 little-cms2 2.12 lynx 2.8.9rel.1_1 lzo 2.10 m4 1.4.19 mailutils 3.13 mpdecimal 2.5.1 mpfr 4.1.0 nettle 3.7.3 nghttp2 1.44.0 node 16.8.0 openexr 3.1.1 openjdk 16.0.2 openjpeg 2.4.0 openssl@1.1 1.1.1l p11-kit 0.24.0 pandoc 2.14.2 pango 1.48.9 pcre 8.45 pcre2 10.37_1 perl 5.34.0 pixman 0.40.0 pkg-config 0.29.2_3 po4a 0.63_2 python@3.9 3.9.7 readline 8.1 saxon 10.5 shared-mime-info 2.1 sqlite 3.36.0 texinfo 6.8 unbound 1.13.2 webp 1.2.1 wget 1.21.1_1 x265 3.5 xmlto 0.0.28 xorgproto 2021.4 xz 5.2.5 youtube-dl 2021.6.6 Then I have this for gcc: emacs on =EE=82=A0 master [$=E2=9C=98!?]=20 =E2=9E=9C gcc --version Configured with: --prefix=3D/Library/Developer/CommandLineTools/usr = --with-gxx-include-dir=3D/Library/Developer/CommandLineTools/SDKs/MacOSX.s= dk/usr/include/c++/4.2.1 Apple clang version 12.0.5 (clang-1205.0.22.11) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin JC --=20 Jean-Christophe Helary @brandelune https://mac4translators.blogspot.com https://sr.ht/~brandelune/omegat-as-a-book/