Skip to content

fails to build on i686 #88

Open
Open

Description

@classabbyamp

I am attempting to compile this grammar for i686, but it runs out of memory with GCC 14.2.1:

cc -fPIC -Wall -I ./ -std=c11 -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=i686 -O2 -pipe -g -ffile-prefix-map=/builddir/tree-sitter-gitcommit-0.5.0=. -c ./src/*.c
cc1: out of memory allocating 65536 bytes after a total of 3848364032 bytes

I have tried both the latest release and HEAD of master

Activity

  1. toupeira commented on Apr 24, 2026

    @toupeira

    Same here on a memory-constrained VPS (1GB RAM / 2GB swap), using Debian sid / amd64 / GCC 15.2.0 / tree-sitter 0.26.8:

    Out of memory: Killed process 6824 (cc1) total-vm:3021248kB, anon-rss:736112kB, file-rss:132kB, shmem-rss:0kB, UID:1000 pgtables:5912kB oom_score_adj:0
    

    All the other 30 parsers I use compiled without problems. Adding another 2GB of swap also let gitcommit finish.

    (note that more people will probably run into this now that nvim-treesitter switched to compiling with the tree-sitter CLI)

  2. Crysthamus commented on May 24, 2026

    @Crysthamus

    Yep this error also occurs on github actions(when building the wasm), fails to build with what I presume is 7GB of memory in https://github.com/Crysthamus/tree-sitter-wasm

    I believe this is due to the various locales?

  3. DisturbedOcean commented on May 28, 2026

    @DisturbedOcean

    Same here. Constraint VPS. This is the only parser that fails (and locks up my system)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions