When doing an emerge --update... on ARM MUSL (Asus TinkerBoard S), I get this error building dev-python/tree-sitter-0.22.3 2024-07-02 14:59:18,039 root INFO running build_ext 2024-07-02 14:59:18,861 root INFO building 'tree_sitter._binding' extension 2024-07-02 14:59:18,863 root INFO creating /var/tmp/portage/dev-python/tree-sitter-0.22.3/work/py-tree-sitter-0.22.3-python3_12/build/temp.linux-armv7l-cpython-312 2024-07-02 14:59:18,863 root INFO creating /var/tmp/portage/dev-python/tree-sitter-0.22.3/work/py-tree-sitter-0.22.3-python3_12/build/temp.linux-armv7l-cpython-312/tree_sitter 2024-07-02 14:59:18,864 root INFO creating /var/tmp/portage/dev-python/tree-sitter-0.22.3/work/py-tree-sitter-0.22.3-python3_12/build/temp.linux-armv7l-cpython-312/tree_sitter/binding 2024-07-02 14:59:18,866 root INFO armv7a-unknown-linux-musleabihf-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -pipe -fomit-frame-pointer -march=armv7ve+neon-vfpv3 -mcpu=cortex-a17 -mfpu=neon-vfpv3 -mfloat-abi=hard -DNDEBUG -fPIC -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -UTREE_SITTER_FEATURE_WASM -Itree_sitter/binding -I/usr/include/python3.12 -c tree_sitter/binding/language.c -o /var/tmp/portage/dev-python/tree-sitter-0.22.3/work/py-tree-sitter-0.22.3-python3_12/build/temp.linux-armv7l-cpython-312/tree_sitter/binding/language.o -std=c11 -fvisibility=hidden -Wno-cast-function-type -Werror=implicit-function-declaration In file included from tree_sitter/binding/language.c:1: tree_sitter/binding/types.h:98:5: error: unknown type name 'TSLookaheadIterator' 98 | TSLookaheadIterator *lookahead_iterator; | ^~~~~~~~~~~~~~~~~~~ tree_sitter/binding/language.c: In function 'language_dealloc': tree_sitter/binding/language.c:28:5: error: implicit declaration of function 'ts_language_delete'; did you mean 'ts_language_version'? [-Werror=implicit-function-declaration] 28 | ts_language_delete(self->language); | ^~~~~~~~~~~~~~~~~~ | ts_language_version tree_sitter/binding/language.c: In function 'language_get_parse_state_count': tree_sitter/binding/language.c:73:36: error: implicit declaration of function 'ts_language_state_count'; did you mean 'ts_language_field_count'? [-Werror=implicit-function-declaration] 73 | return PyLong_FromUnsignedLong(ts_language_state_count(self->language)); | ^~~~~~~~~~~~~~~~~~~~~~~ | ts_language_field_count tree_sitter/binding/language.c: In function 'language_next_state': tree_sitter/binding/language.c:154:5: error: unknown type name 'TSStateId' 154 | TSStateId state = ts_language_next_state(self->language, state_id, symbol); | ^~~~~~~~~ tree_sitter/binding/language.c:154:23: error: implicit declaration of function 'ts_language_next_state'; did you mean 'language_next_state'? [-Werror=implicit-function-declaration] 154 | TSStateId state = ts_language_next_state(self->language, state_id, symbol); | ^~~~~~~~~~~~~~~~~~~~~~ | language_next_state tree_sitter/binding/language.c: In function 'language_lookahead_iterator': tree_sitter/binding/language.c:163:5: error: unknown type name 'TSLookaheadIterator'; did you mean 'LookaheadIterator'? 163 | TSLookaheadIterator *lookahead_iterator = ts_lookahead_iterator_new(self->language, state_id); | ^~~~~~~~~~~~~~~~~~~ | LookaheadIterator tree_sitter/binding/language.c:163:47: error: implicit declaration of function 'ts_lookahead_iterator_new' [-Werror=implicit-function-declaration] 163 | TSLookaheadIterator *lookahead_iterator = ts_lookahead_iterator_new(self->language, state_id); | ^~~~~~~~~~~~~~~~~~~~~~~~~ tree_sitter/binding/language.c:163:47: warning: initialization of 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] cc1: some warnings being treated as errors error: command '/usr/bin/armv7a-unknown-linux-musleabihf-gcc' failed with exit code 1 Reproducible: Always
Please attach a full build log and provide emerge --info.
Created attachment 896971 [details] emerge --info
Created attachment 896972 [details] build log
Attached emerge --info and build log.
Last version that works is dev-python/tree-sitter-0.20.1-r1
Got the same error on a non musl setup. Eventually fixed it by manually updating dev-libs/tree-sitter. I had picked dev-libs/tree-sitter-9999 in the past as a oneshot and it hadn't been rebuilt since. For some reason emerge wasn't rebuilding the 9999 dependency, but doing it manually fixed the error.
(In reply to Ankit Goel from comment #6) > Got the same error on a non musl setup. Eventually fixed it by manually > updating dev-libs/tree-sitter. I had picked dev-libs/tree-sitter-9999 in the > past as a oneshot and it hadn't been rebuilt since. For some reason emerge > wasn't rebuilding the 9999 dependency, but doing it manually fixed the error. Yes, you have to do emerge @live-rebuild for that, or use smart-live-rebuild.