From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.bugs Subject: bug#63762: 29.0.91; tty emacs on macOS fail to load tree-sitter Date: Sun, 28 May 2023 00:46:08 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29847"; mail-complaints-to="usenet@ciao.gmane.io" To: 63762@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 28 01:47:22 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1q33d4-0007dB-8Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 May 2023 01:47:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q33co-0001nI-E6; Sat, 27 May 2023 19:47:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q33cl-0001n6-W3 for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 19:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q33ck-0003u6-OH for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 19:47:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q33ck-0005if-7Q for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 19:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 May 2023 23:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63762 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168523118121927 (code B ref -1); Sat, 27 May 2023 23:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 May 2023 23:46:21 +0000 Original-Received: from localhost ([127.0.0.1]:52706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q33c5-0005hb-0V for submit@debbugs.gnu.org; Sat, 27 May 2023 19:46:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:60782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q33c3-0005hR-0F for submit@debbugs.gnu.org; Sat, 27 May 2023 19:46:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q33bx-0001jk-6x for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 19:46:13 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q33bv-0003he-8j for bug-gnu-emacs@gnu.org; Sat, 27 May 2023 19:46:12 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3f6094cb2ebso13413545e9.3 for ; Sat, 27 May 2023 16:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685231169; x=1687823169; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Lyy9qA/IuABBpnDsmAlR0CEo4SnVllXr+PHR+pRkxHo=; b=dd5dESoWwRwV5/AbHyxhTXDOfDdI+8ibcNpIbMJfzeC0LQUfRYdKpRDSy7rJiuvJQY aYyW18r/bu497Uk9qVHxsJQZeX6A4eWOTcOVJLA9+q9a94I9llZVoYWOHUq7TaNGp/ti FbfRtJQYYoPgIrs+yhT3ay4ktm1wn6TsGc23bJw0xrCDrtVRh8xR9CXogqYAAA+rITvn uJyHjfLrQSTFrChnxlnlRgOWm+kX5cvudtuu51OomLDQ72k4I5PgLW9xfNa81++CSwWU peZHIQJeWDuqdDA55RTs/CgF2zp4eoyzpn4sSzksXQ1hE8y1KeX92NckC7Nqi6i62T1o Hygg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685231169; x=1687823169; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Lyy9qA/IuABBpnDsmAlR0CEo4SnVllXr+PHR+pRkxHo=; b=HjH+7bTThpwAM2qeqAZ/cbWZvRk28SAms1C108w/nCFnisVvAIY7jCtJ6lavz9gDS/ RHwUTQIkHbnSlhtImyDQp8FxYlHLHK8cnNn9eGeiXjEExmDgN0Bjxan9q4OYULSdEwxn wgdcv5+uktVHAIyWhK0SA0CZ9xQC55uwKEY3EV5pJ5icTwVGfpsYPNwe1LHkhYjphN8d zxPoiGT1H+atW3SxKfQLO3Bu4utHz5eF+qxfAfAUD2VT2kyi+mJ6vBg78zXT/yVF0xrM acnlMMtiN9oR+QBQ+rH1QA6v5ckFyZ+d3oPjUhufr6SH2P9GACo5xt1dk8l3h78Aak+a 07pA== X-Gm-Message-State: AC+VfDxandhAO9gMPMVqARa2BIG3TKkUQ/OIkgjt7KtGdyqcpnPgCoY3 /yhHXReT8V/9DBDHk0Z+TweAF5dnbLY= X-Google-Smtp-Source: ACHHUZ6+qQH+zJevKxc6Mu0Cj7EpL1/UKHsCgergWUU4XW7oMHXc5iY1NieLqe1dv7QNwS4cD/dTwQ== X-Received: by 2002:a1c:f616:0:b0:3f6:82a:5d1b with SMTP id w22-20020a1cf616000000b003f6082a5d1bmr5932789wmc.34.1685231168702; Sat, 27 May 2023 16:46:08 -0700 (PDT) Original-Received: from MobileCat.localdomain ([2a01:4b00:89a0:2400:2475:e966:d579:bf7f]) by smtp.gmail.com with ESMTPSA id x21-20020a05600c21d500b003f6041f5a6csm9578106wmj.12.2023.05.27.16.46.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 May 2023 16:46:08 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=wyuenho@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262493 Archived-At: This is a bit of a strange one. I'm testing 2 custom compiled emacs on macOS, both were built via [this recipe](https://github.com/macports/macports-ports/blob/master/editors/emacs/Portfile) but with the latest emacs-29 commit and its corresponding checksums. The NS port built from the emacs-app-devel port (I'm submitting this report from the TTY port), is able to find the tree-sitter language libraries, but not the TTY port, despite both were configured using the exact same prefix, CFLAGS, LDFLAGS and the --with-tree-sitter flag on. ## TTY emacs 29 on macOS: ESC M-: (treesit-language-available-p 'java t) RET ``` (nil not-found ("libtree-sitter-java.so" "libtree-sitter-java.so.0" "libtree-sitter-java.so.0.0" "libtree-sitter-java.dylib" "libtree-sitter-java.dylib.0" "libtree-sitter-java.dylib.0.0") "No such file or directory") ``` ## NS emacs 29: ESC M-: (treesit-language-available-p 'java t) RET ``` t ``` ## Installed MacPorts tree-sitter library versions: ``` tree-sitter @0.20.8_1 (active) tree-sitter-bash @0.19.0_0 (active) tree-sitter-c @0.20.2_0 (active) tree-sitter-c-sharp @0.20.0_0 (active) tree-sitter-cmake @0.1.0_0 (active) tree-sitter-cpp @0.20.0_0 (active) tree-sitter-css @0.19.0_0 (active) tree-sitter-dockerfile @0.1.2_0 (active) tree-sitter-go @0.19.1_0 (active) tree-sitter-go-mod @20220517_0 (active) tree-sitter-html @0.19.0_0 (active) tree-sitter-java @0.20.1_0 (active) tree-sitter-javascript @0.20.0_0 (active) tree-sitter-json @0.19.0_0 (active) tree-sitter-python @0.20.0_0 (active) tree-sitter-ruby @0.19.0_0 (active) tree-sitter-rust @0.20.3_0 (active) tree-sitter-toml @0.5.1_0 (active) tree-sitter-tsx @0.20.2_0 (active) tree-sitter-typescript @0.20.2_0 (active) tree-sitter-yaml @0.5.0_0 (active) ``` ## TTY emacs configuration In GNU Emacs 29.0.91 (build 1, aarch64-apple-darwin22.4.0) of 2023-05-27 built on MobileCat.localdomain System Description: macOS 13.3.1 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-ns --without-x --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-libgmp --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-sqlite3 --with-webp --with-tree-sitter --with-native-compilation=aot 'CFLAGS=-pipe -Os -Wno-attributes -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath /opt/local/lib/gcc12 -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'' Configured features: ACL GMP GNUTLS JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE PDUMPER SQLITE3 THREADS TREE_SITTER ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix ## NS emacs configuration In GNU Emacs 29.0.91 (build 1, aarch64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3.1 (a) (Build 22E772610a)) of 2023-05-26 built on MobileCat.localdomain Windowing system distributor 'Apple', version 10.3.2299 System Description: macOS 13.3.1 Configured using: 'configure --prefix=/opt/local --disable-silent-rules --without-dbus --without-gconf --without-libotf --without-m17n-flt --with-libgmp --with-gnutls --with-json --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-sqlite3 --with-webp --with-ns --with-lcms2 --without-harfbuzz --without-imagemagick --without-xaw3d --with-tree-sitter --with-rsvg --with-xwidgets --with-native-compilation=aot 'CFLAGS=-pipe -Os -Wno-attributes -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64' 'CPPFLAGS=-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk' 'LDFLAGS=-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-rpath /opt/local/lib/gcc12 -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XWIDGETS ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix