Package Details: tree-sitter-git 0.20.9.r9.g78c297e6-1

Git Clone URL: https://aur.archlinux.org/tree-sitter-git.git (read-only, click to copy)
Package Base: tree-sitter-git
Description: An incremental parsing system for programming tools
Upstream URL: https://tree-sitter.github.io/tree-sitter/
Licenses: MIT
Conflicts: tree-sitter
Provides: libtree-sitter.so, tree-sitter
Submitter: FFY00
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 4
Popularity: 1.49
First Submitted: 2020-04-22 17:19 (UTC)
Last Updated: 2024-01-28 08:23 (UTC)

Dependencies (2)

Required by (67)

Sources (1)

Latest Comments

wbthomason commented on 2021-10-26 17:21 (UTC)

As a note to anyone else having new trouble building this package: it appears to be incompatible with the lto setting in the options=() array.

Armeeh commented on 2021-04-15 18:35 (UTC)

Currently this package doesn't build for me.

==> Starting pkgver()...
==> Updated version: tree-sitter-git v0.19.4.r3526.ca6e8d93-1
==> Sources are ready.
==> Making package: tree-sitter-git v0.19.4.r3526.ca6e8d93-1 (Thu 15 Apr 2021 08:35:22 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/get_changed_ranges.o lib/src/get_changed_ranges.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/language.o lib/src/language.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/lexer.o lib/src/lexer.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/node.o lib/src/node.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/parser.o lib/src/parser.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/query.o lib/src/query.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/stack.o lib/src/stack.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/subtree.o lib/src/subtree.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/tree.o lib/src/tree.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=gnu99 -fPIC -Ilib/src -Ilib/include -D_FORTIFY_SOURCE=2  -c -o lib/src/tree_cursor.o lib/src/tree_cursor.c
ar rcs libtree-sitter.a lib/src/get_changed_ranges.o lib/src/language.o lib/src/lexer.o lib/src/node.o lib/src/parser.o lib/src/query.o lib/src/stack.o lib/src/subtree.o lib/src/tree.o lib/src/tree_cursor.o
cc -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -shared -Wl,-soname,libtree-sitter.so.0 lib/src/get_changed_ranges.o lib/src/language.o lib/src/lexer.o lib/src/node.o lib/src/parser.o lib/src/query.o lib/src/stack.o lib/src/subtree.o lib/src/tree.o lib/src/tree_cursor.o  -o libtree-sitter.so.0.0
ln -sf libtree-sitter.so.0.0 libtree-sitter.so
ln -sf libtree-sitter.so.0.0 libtree-sitter.so.0
emcc: error: no input files
==> ERROR: A failure occurred in build().
    Aborting...
error making: tree-sitter-git

xzz53 commented on 2020-11-03 14:34 (UTC)

Hi! The package as is doesn't compile for me now, need the following patch to make it work:

--- a/PKGBUILD  2020-11-03 17:28:20.248555786 +0300
+++ b/PKGBUILD  2020-11-03 17:28:27.455316611 +0300
@@ -29,7 +29,7 @@
   make

   # emcc needs to be run at least one time before using to spit out their initial message .-.
-  /usr/lib/emscripten/emcc 2>&1 >/dev/null
+  /usr/lib/emscripten/emcc >/dev/null 2>&1 || true

   ./script/build-wasm