[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tree-sitter doc question
From: |
Tim Cross |
Subject: |
Re: Tree-sitter doc question |
Date: |
Tue, 13 Dec 2022 14:25:33 +1100 |
User-agent: |
mu4e 1.9.6; emacs 29.0.60 |
João Paulo Labegalini de Carvalho <jaopaulolc@gmail.com> writes:
> 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.
Thanks, that did the trick.
- Re: Tree-sitter doc question, (continued)
- Re: Tree-sitter doc question, Eric S Fraga, 2022/12/12
- Re: Tree-sitter doc question, Stefan Monnier, 2022/12/12
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/12
- Re: Tree-sitter doc question, Stefan Monnier, 2022/12/12
- Re: Tree-sitter doc question, Óscar Fuentes, 2022/12/12
- Re: Tree-sitter doc question, Juanma Barranquero, 2022/12/12
- Re: Tree-sitter doc question, Óscar Fuentes, 2022/12/12
- Re: Tree-sitter doc question, Eli Zaretskii, 2022/12/12
- Re: Tree-sitter doc question, Tim Cross, 2022/12/12
- Re: Tree-sitter doc question, João Paulo Labegalini de Carvalho, 2022/12/12
- Re: Tree-sitter doc question,
Tim Cross <=
- Re: Tree-sitter doc question, Fraga, Eric, 2022/12/12