unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs
       [not found] <m1sfjwey56.fsf.ref@yahoo.es>
@ 2022-10-10 11:06 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-10-10 21:57   ` Yuan Fu
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-10-10 11:06 UTC (permalink / raw)
  To: 58411

[-- Attachment #1: Type: text/plain, Size: 429 bytes --]


When trying to compile the Emacs Treesiter branch, I got the following
compilation error:

In file included from emacs.c:140:
./treesit.h:23:10: fatal error: 'tree_sitter/api.h' file not found
#include <tree_sitter/api.h>
         ^~~~~~~~~~~~~~~~~~~
1 error generated.

The reason is that the Makefile is not referring to the correct C
compiler flags because of a typo.  I've attached a patch to correct the
problem.

Thanks.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-typo-in-Makefile.in.patch --]
[-- Type: text/x-patch, Size: 764 bytes --]

From 6abc91130d2035f2a86a40f9bed28cc68e17a06a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
Date: Mon, 10 Oct 2022 13:03:30 +0200
Subject: [PATCH] Fix typo in Makefile.in

* src/Makefile.in (TREE_SITTER_CFLAGS): Set the correct C flags.
---
 src/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile.in b/src/Makefile.in
index eb537e2127..0d27f3e6db 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -344,7 +344,7 @@ JSON_CFLAGS =
 JSON_OBJ = @JSON_OBJ@
 
 TREE_SITTER_LIBS = @TREE_SITTER_LIBS@
-TREE_SITTER_FLAGS = @TREE_SITTER_FLAGS@
+TREE_SITTER_CFLAGS = @TREE_SITTER_CFLAGS@
 TREE_SITTER_OBJ = @TREE_SITTER_OBJ@
 
 INTERVALS_H = dispextern.h intervals.h composite.h
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs
  2022-10-10 11:06 ` bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-10-10 21:57   ` Yuan Fu
  2022-10-11  0:41     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Yuan Fu @ 2022-10-10 21:57 UTC (permalink / raw)
  To: Daniel Martín; +Cc: 58411


Applied, thanks! The previous message didn’t cc debugs for some reason, sorry for the noise.

Yuan





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs
  2022-10-10 21:57   ` Yuan Fu
@ 2022-10-11  0:41     ` Lars Ingebrigtsen
  2022-10-11  2:35       ` Yuan Fu
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-11  0:41 UTC (permalink / raw)
  To: Yuan Fu; +Cc: 58411, Daniel Martín

Yuan Fu <casouri@gmail.com> writes:

> Applied, thanks! The previous message didn’t cc debugs for some
> reason, sorry for the noise.

The bug report was left open, so I'm closing it now.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs
  2022-10-11  0:41     ` Lars Ingebrigtsen
@ 2022-10-11  2:35       ` Yuan Fu
  2022-10-11  2:40         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Yuan Fu @ 2022-10-11  2:35 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 58411, Daniel Martín



> On Oct 10, 2022, at 5:41 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> Yuan Fu <casouri@gmail.com> writes:
> 
>> Applied, thanks! The previous message didn’t cc debugs for some
>> reason, sorry for the noise.
> 
> The bug report was left open, so I'm closing it now.

Thanks, I tried to close it with debbugs.el but it didn’t seem to work. I hit typed “C done RET” on the bug entry. Is that wrong?

Yuan




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs
  2022-10-11  2:35       ` Yuan Fu
@ 2022-10-11  2:40         ` Lars Ingebrigtsen
  2022-10-11  2:42           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-11  2:40 UTC (permalink / raw)
  To: Yuan Fu; +Cc: 58411, Daniel Martín

Yuan Fu <casouri@gmail.com> writes:

> Thanks, I tried to close it with debbugs.el but it didn’t seem to
> work. I hit typed “C done RET” on the bug entry. Is that wrong?

I think that's supposed to work -- I haven't tried that in a while.  I
always enter the debbugs group first and then use the `C' command there.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs
  2022-10-11  2:40         ` Lars Ingebrigtsen
@ 2022-10-11  2:42           ` Lars Ingebrigtsen
  2022-10-11  3:18             ` Yuan Fu
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-11  2:42 UTC (permalink / raw)
  To: Yuan Fu; +Cc: 58411, Daniel Martín

Lars Ingebrigtsen <larsi@gnus.org> writes:

> I think that's supposed to work -- I haven't tried that in a while.  I
> always enter the debbugs group first and then use the `C' command there.

I tried it now, and it worked for me.

Perhaps some temporary hiccup on the debbugs side?





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs
  2022-10-11  2:42           ` Lars Ingebrigtsen
@ 2022-10-11  3:18             ` Yuan Fu
  0 siblings, 0 replies; 7+ messages in thread
From: Yuan Fu @ 2022-10-11  3:18 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 58411, Daniel Martín



> On Oct 10, 2022, at 7:42 PM, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> Lars Ingebrigtsen <larsi@gnus.org> writes:
> 
>> I think that's supposed to work -- I haven't tried that in a while.  I
>> always enter the debbugs group first and then use the `C' command there.
> 
> I tried it now, and it worked for me.
> 
> Perhaps some temporary hiccup on the debbugs side?

Thanks, then it’s probably something I did wrong. I’ll try it again next time.

Yuan




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-11  3:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m1sfjwey56.fsf.ref@yahoo.es>
2022-10-10 11:06 ` bug#58411: 29.0.50; [PATCH] [Treesitter] tree_sitter/api.h file not found when compiling Emacs Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-10 21:57   ` Yuan Fu
2022-10-11  0:41     ` Lars Ingebrigtsen
2022-10-11  2:35       ` Yuan Fu
2022-10-11  2:40         ` Lars Ingebrigtsen
2022-10-11  2:42           ` Lars Ingebrigtsen
2022-10-11  3:18             ` Yuan Fu

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).