Received: (at 81700) by debbugs.gnu.org; 25 Aug 2026 11:17:46 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 25 07:17:45 2026 Received: from localhost ([127.0.0.1]:52027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1wypA1-0000g2-IE for submit <at> debbugs.gnu.org; Tue, 25 Aug 2026 07:17:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35464) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wyp9y-0000fg-9F for 81700 <at> debbugs.gnu.org; Tue, 25 Aug 2026 07:17:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1wyp9r-0001Ng-O2; Tue, 25 Aug 2026 07:17:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=c1pjRaizADIP8Bk8fB/LipslnqtmszWvOL9CGEi0/cs=; b=VxKS4TXLoYJDFiB3YND/ BA2bpRpua6vn+XEE0mHQpJ10bjVmZUzwVMPVukx7FrUP/0mytDJ90nMaJi5ibqWC+TEcsZjkK2Egf kRTmQmRGn9RmsqpN+IocZ/pMZQIpRxod1hW/n6sgTLXuVW1TsTBF2SxzCz0ZxTzVUF+kPmLuif+W/ Z/JgclIG8lws4qTkS+vqYBXbaCn81DcvcsWjmD+oA7LAjlBts3uwPoWc/VCCL0fJdJq7aJWM7vFab ZSCCeaoMCmBaxS6b38pJ854xAVIAJKfX/VWA9nBCqBF+NSqabmaUvsI1g/wlVUf3mxa9kzNpE3SbL 1k+RdQiMdivUiA==; Date: Tue, 25 Aug 2026 14:17:30 +0300 Message-Id: <86qzjmphyt.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?utf-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= <b@HIDDEN>, Yuan Fu <casouri@HIDDEN> In-Reply-To: <9c6204fad16ec57a9aff94275714278753406e36.camel@HIDDEN> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#81700: temacs 31.1 does not link dynamically with libtree-sitter.so.0.26 References: <9c6204fad16ec57a9aff94275714278753406e36.camel@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 81700 Cc: 81700 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > Date: Mon, 24 Aug 2026 19:41:36 +0300 > From: Дилян Палаузов via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > Hello, > > according to https://github.com/tree-sitter/tree-sitter/issues/5783 tree-sitter is a “zerover” project. The hyperlink says “Emacs must explicitly link to an exact (minor) version (ideally statically; This Is The Way).” > > Compiling from source and installing it, creates /usr/local/lib/libtree-sitter.so.0.26, I delete the static .a file . There are no /usr/local/lib/libtree-sitter.so.0 and no /usr/local/lib/libtree-sitter.so . > > With that setup, I build emacs 31.1, and linking temacs fails: Thanks, but I wonder how come no one else is experiencing this problem on Posix platforms. Tree-sitter is supported since Emacs 29, and Tree-sitter was always a "zerover" project. And yet no one complained. So maybe this is an installation issue on your system after all, regardless of what the Tree-sitter developers say in that issue? Yuan, any comments or suggestions? > Eventually I install the static libtree-sitter.a, and then the linking of temacs completes. Which is a perfectly fine solution, IMO.
bug-gnu-emacs@HIDDEN:bug#81700; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 24 Aug 2026 23:00:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 24 19:00:17 2026
Received: from localhost ([127.0.0.1]:47677 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1wydeI-00078C-1b
for submit <at> debbugs.gnu.org; Mon, 24 Aug 2026 19:00:16 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:60838)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <b@HIDDEN>) id 1wyXk6-00055M-2P
for submit <at> debbugs.gnu.org; Mon, 24 Aug 2026 12:41:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <b@HIDDEN>) id 1wyXk0-0007pw-8R
for bug-gnu-emacs@HIDDEN; Mon, 24 Aug 2026 12:41:44 -0400
Received: from mail.aegee.org ([144.76.142.78])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <b@HIDDEN>) id 1wyXjy-0008VG-3I
for bug-gnu-emacs@HIDDEN; Mon, 24 Aug 2026 12:41:44 -0400
Authentication-Results: mail.aegee.org/67OGfbkG3417051;
auth=pass (PLAIN) smtp.auth=didopalauzov@HIDDEN
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bapha.be; s=d1;
t=1787589698; i=d1@HIDDEN;
bh=nqlN3NVY+zNCd+gr2H0Tf1czgmkFEW0vODCE61aoZFo=;
h=Subject:From:To:Date;
b=AKu9VTiOI7agZ0u+dOzAEE9QXOUOeTi+bUSkWzojA8jidwE756MqDpGQQ6u8cnSBC
9iM+gSvJ5QfB9VVXeAMxx8cfswDYTIYloEFBoeULrh9m+D6oApc+qX230UnyNQEFFH
B/FFx6NbOaz2yq+v6oVVJLUd/UaMuau0pypFf4vXI8LaN39y9VivYWVP3QPyWG5eN/
891rf4ds78pgKOpKIGHotw0DrSulFQu4uwdVsvkl29pQVbxIQow3oUsm/41ISJqW+8
WlPlUpEURDS5lyQJ47ov8Qw9g0Ars/cXScKWf7aMuAY/ta7Ui1bSf1uOCrCftEhB+L
zXBL1HiFWcdFVV+s1CCMBqxQbVF92gr8bE7K6STZ5cfu389vG6fwpwpSqXLrI0Rnt4
FNUH+trHqqb12OtgIhdcGyADSLPwCp5SjWgjHSYGQdNUrgMAqnetOG32guUMcDvHFe
TL9hQH1azRdCB37Q3s9a8rxQOyvfA3CHRROmp0VYVGV/DDVyr0Zhej6r0BUq20nW/M
L85Uv4+gHg09KPhpsLaxoaKCrnG2Kl6hQet0b1EXNXI0m9fZQcrC5RInXclZzyIEMO
8Ob9Xr/hvKf/vsv+fiAiYqY4TJkByktsy4gwP+pVK27Chf2E5Snr6MrkqUgFz0gZww
dEMQ25Ayb8gVh4kpQlVz57nA=
Authentication-Results: mail.aegee.org/67OGfbkG3417051; dkim=none
Received: from [192.168.0.199] (95-43-114-153.ip.btc-net.bg [95.43.114.153])
(authenticated bits=0)
by mail.aegee.org (8.18.1/8.18.1) with ESMTPSA id 67OGfbkG3417051
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO)
for <bug-gnu-emacs@HIDDEN>; Mon, 24 Aug 2026 16:41:37 GMT
Message-ID: <9c6204fad16ec57a9aff94275714278753406e36.camel@HIDDEN>
Subject: temacs 31.1 does not link dynamically with libtree-sitter.so.0.26
From: =?UTF-8?Q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD_?=
=?UTF-8?Q?=D0=9F=D0=B0=D0=BB=D0=B0=D1=83=D0=B7=D0=BE=D0=B2?= <b@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Date: Mon, 24 Aug 2026 19:41:36 +0300
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.61.3
MIME-Version: 1.0
Received-SPF: none client-ip=144.76.142.78; envelope-from=b@HIDDEN;
helo=mail.aegee.org
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, SPF_HELO_PASS=-0.001,
SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 24 Aug 2026 19:00:09 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
Hello,
according to https://github.com/tree-sitter/tree-sitter/issues/5783 tree-si=
tter is a =E2=80=9Czerover=E2=80=9D project. The hyperlink says =E2=80=9CE=
macs must explicitly link to an exact (minor) version (ideally statically; =
This Is The Way).=E2=80=9D
Compiling from source and installing it, creates /usr/local/lib/libtree-sit=
ter.so.0.26, I delete the static .a file . There are no /usr/local/lib/lib=
tree-sitter.so.0 and no /usr/local/lib/libtree-sitter.so .
With that setup, I build emacs 31.1, and linking temacs fails:
gcc -o temacs.tmp \ =
=20
-Demacs -I. -I../../src -I../lib -I../../lib -I/usr/local/includ=
e/libxml2 -I/usr/local/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0=
/include -MMD -MF deps/.d -MP -I/usr/local/include -I/usr/l=
ocal/include -I/usr/local/include/p11-kit-1 -I/usr/local/include =
-g3 -O2 dispnew.o frame.o scroll.o xdisp.o menu.o window.o char=
set.o coding.o category.o ccl.o character.o chartab.o bidi.o cm.o term.o te=
rminal.o xfaces.o dbusbind.o emacs.o keyboard.o
macros.o keymap.o sysdep.o bignum.o buffer.o filelock.o insdel.o marker.o m=
inibuf.o fileio.o dired.o cmds.o casetab.o casefiddle.o indent.o search.o r=
egex-emacs.o undo.o alloc.o pdumper.o data.o doc.o editfns.o callint.o eval=
.o floatfns.o fns.o sort.o font.o print.o lread.o emacs-module.o syntax.o b=
ytecode.o comp.o dynlib.o process.o gnutls.o callproc.o region-cache.o soun=
d.o timefns.o atimer.o doprnt.o intervals.o textprop.o composite.o xml.o lc=
ms.o inotify.o profiler.o decompress.o thread.o
systhread.o sqlite.o treesit.o itree.o json.o terminfo.o =
../lib/libgnu.a -ldbus-1 -L/usr/local/lib -lxml2 -ltinfow =
-L/usr/local/lib -lgnutls -lanl -lm -lz -ldl -L/usr/lib64 -lsystemd -l=
gmp -lgccjit -ldl -L/usr/local/lib -ltree-sitter -lsqlite3
/usr/local/x86_64-pc-linux-gnu/bin/ld: cannot find -ltree-sitter: No such f=
ile or directory
collect2: error: ld returned 1 exit status
./configure prints: checking for tree-sitter >=3D 0.20.2... yes
config.log contains:
configure:21707: checking for tree-sitter >=3D 0.20.2
configure:21714: $PKG_CONFIG --exists --print-errors "tree-sitter >=3D 0.20=
.2"
configure:21717: $? =3D 0
configure:21731: $PKG_CONFIG --exists --print-errors "tree-sitter >=3D 0.20=
.2"
configure:21734: $? =3D 0
configure:21772: result: yes
configure:21986: checking for ts_tree_cursor_goto_previous_sibling
configure:21986: gcc -o conftest -g3 -O2 -I/usr/local/include conftest.=
c -L/usr/local/lib -ltree-sitter -lsqlite3 >&5
/usr/local/x86_64-pc-linux-gnu/bin/ld: cannot find -ltree-sitter: No such f=
ile or directory
collect2: error: ld returned 1 exit status
configure:21986: $? =3D 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU Emacs"
| #define PACKAGE_TARNAME "emacs"
| #define PACKAGE_VERSION "31.1"
=E2=80=A6
| return ts_tree_cursor_goto_previous_sibling ();
| ;
| return 0;
| }
configure:21986: result: no
Eventually I install the static libtree-sitter.a, and then the linking of t=
emacs completes.
Kind regards // Dilyan
Дилян Палаузов <b@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#81700; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.