GNU bug report logs - #59532
28.2; Unable to build emacs with tree-sitter installed

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thievol <at> posteo.net>

Date: Thu, 24 Nov 2022 07:01:02 UTC

Severity: normal

Found in version 28.2

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 59532 <at> debbugs.gnu.org (full text, mbox):

From: Thierry Volpiatto <thievol <at> posteo.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 59532 <at> debbugs.gnu.org
Subject: Re: bug#59532: 28.2; Unable to build emacs with tree-sitter installed
Date: Thu, 24 Nov 2022 08:49:51 +0000
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Thierry Volpiatto <thievol <at> posteo.net>
>> Date: Thu, 24 Nov 2022 06:46:35 +0000
>> 
>> 
>> Then I ran make and had this error:
>> 
>> ,----
>> | cp -f temacs bootstrap-emacs
>> | rm -f bootstrap-emacs.pdmp
>> | ./temacs --batch  -l loadup --temacs=pbootstrap \
>> |         --bin-dest /usr/local/bin/ --eln-dest /usr/local/lib/emacs/29.0.50/
>> | ./temacs: error while loading shared libraries: libtree-sitter.so.0: cannot open shared object file: No such file or directory
>> | make[2]: *** [Makefile:915 : bootstrap-emacs.pdmp] Erreur 127
>> | make[2] : on quitte le répertoire « /home/thierry/tmp/emacs/src »
>> | make[1]: *** [Makefile:544 : src] Erreur 2
>> | make[1] : on quitte le répertoire « /home/thierry/tmp/emacs »
>> | make[1] : on entre dans le répertoire « /home/thierry/tmp/emacs »
>> | ***
>> | *** "make all" failed with exit status 2.
>> | ***
>> | *** You could try to:
>> | *** - run "make bootstrap", which might fix the problem
>> | *** - run "make V=1", which displays the full commands invoked by make,
>> | ***   to further investigate the problem
>> | ***
>> | make[1]: *** [Makefile:414 : advice-on-failure] Erreur 2
>> | make[1] : on quitte le répertoire « /home/thierry/tmp/emacs »
>> | make: *** [Makefile:370 : all] Erreur 2
>> `----
>> 
>> So ./configure is finding tree-sitter but not make.
>
> More accurately, temacs cannot find tree-sitter when it runs from Make.
>
>> NOTE: The only way I found to install tree-sitter was cloning from
>> github and run make && make install.
>
> When you do that, where are libtree-sitter.so and libtree-sitter.so.0
> installed? in which directory on your system?  Is that directory the same as
> the one where you have the other shared libraries used by Emacs, like the
> image libraries or GnuTLS?

No, these files are installed in /usr/local/lib.

-- 
Thierry
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 136 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.