bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66549: 29.1.50; SIGABRT received parsing file with tree-sitter in PG


From: Eli Zaretskii
Subject: bug#66549: 29.1.50; SIGABRT received parsing file with tree-sitter in PGTK Emacs
Date: Mon, 16 Oct 2023 14:29:00 +0300

> From: Erik Overdahl <erik.overdahl@gmail.com>
> Date: Sun, 15 Oct 2023 15:03:09 -0500
> Cc: 66549@debbugs.gnu.org
> 
> I am unable to reproduce this; a manually built shared object still
> crashes for me. I am not sure what steps you took to build the
> grammar.

After cloning the repository, I ran the following commands:

 cd src
 gcc -O2 -I. -MMD -MF ./parser.d -MP   -c -o parser.o parser.c
 gcc -O2 -I. -MMD -MF ./scanner.d -MP   -c -o scanner.o scanner.c
 gcc  -shared parser.o scanner.o  -ltree-sitter -o libtree-sitter-hcl.dll

(This is on Windows, thus the .dll extension and no -fPIC compiler
switch.)  Your link command line, viz.:

  cc -fPIC -shared *.o -o libtree-sitter-hcl.so

lacks the -ltree-sitter switch, though, which may or may not be the
problem.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]