What configuration are you using for nvim-treesitter, if it’s different?
Also, how’d you install tree-sitter and neovim? I’m using a native homebrew install under /opt/homebrew; if you’re using Rosetta for tree-sitter and/or neovim, maybe that’s breaking things?
At the very least, based on the error, it seems like you’re trying to compile/use the parser for arm64 with cc, but it’s expecting to run under x86. My (admittedly not that educated) guess is that maybe you’re using tree-sitter under Rosetta, but I’m really not sure.
Yes, the most commonly available pre-built binaries for the nightly version are Intel-only.
Building from source is pretty easy. If you use brew, it’ll take under a minute. You can also build straight from the repo, which takes slightly longer (but not by much) as you’ll also need to build the dependencies.