emacs-devel
[Top][All Lists]
Advanced

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

Re: Tree-sitter doc question


From: João Paulo Labegalini de Carvalho
Subject: Re: Tree-sitter doc question
Date: Mon, 12 Dec 2022 16:34:19 -0700


Building c
/usr/bin/ld: parser.o: relocation R_X86_64_32S against `.rodata' can not
be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
cp: cannot stat 'libtree-sitter-c.so': No such file or directory

Looking at the scripts, it isn't clear where I need to add the -fPIC (it
already seems to be there?).

You need to add to the like that builds the parser.c file, like in the attached patch.

--
João Paulo L. de Carvalho
Ph.D Computer Science |  IC-UNICAMP | Campinas , SP - Brazil
Postdoctoral Research Fellow | University of Alberta | Edmonton, AB - Canada
joao.carvalho@ic.unicamp.br
joao.carvalho@ualberta.ca

Attachment: 0001-Fix-scripts-that-builds-language-parsers.patch
Description: Text Data


reply via email to

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