unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Thierry Volpiatto <thievol@posteo.net>
Cc: 59532@debbugs.gnu.org
Subject: bug#59532: 28.2; Unable to build emacs with tree-sitter installed
Date: Thu, 24 Nov 2022 10:03:53 +0200	[thread overview]
Message-ID: <837czkye1i.fsf@gnu.org> (raw)
In-Reply-To: <87edtshm6z.fsf@posteo.net> (message from Thierry Volpiatto on Thu, 24 Nov 2022 06:46:35 +0000)

> From: Thierry Volpiatto <thievol@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?





  reply	other threads:[~2022-11-24  8:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-24  6:46 bug#59532: 28.2; Unable to build emacs with tree-sitter installed Thierry Volpiatto
2022-11-24  8:03 ` Eli Zaretskii [this message]
2022-11-24  8:49   ` Thierry Volpiatto
2022-11-24 10:19     ` Eli Zaretskii
2022-11-24 10:47       ` Thierry Volpiatto
2022-11-24 10:58         ` Eli Zaretskii
2022-12-04  7:59           ` Thierry Volpiatto
2022-12-04 10:03             ` Eli Zaretskii
2022-12-04 10:41               ` Thierry Volpiatto
2022-12-04 11:44                 ` Eli Zaretskii
2023-01-07 22:45 ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837czkye1i.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=59532@debbugs.gnu.org \
    --cc=thievol@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).