Loading...
Loading...
Guide for building CompCert, the formally verified C compiler, from source. This skill should be used when compiling, building, or installing CompCert, or when working with Coq-based software that has strict dependency version requirements. Covers OCaml/opam setup, Coq version compatibility, memory management, and common build pitfalls.
npx skill4agent add letta-ai/skills compile-compcertconfiguregrep -i "coq" configureREADMEINSTALLuname -mfree -hapt-get update && apt-get install -y opam gcc g++ make libgmp-dev pkg-configopam init -y --disable-sandboxing
eval $(opam env)opam config set-global jobs 1opam install coq.X.Y.Z menhir./configure <target-arch> # e.g., x86_64-linux
make
make install PREFIX=<path>opam config set-global jobs 1opam installswaponwatch free -htest -x /path/to/ccomp && echo "exists"echo 'int main() { return 0; }' > /tmp/test.c
ccomp -o /tmp/test /tmp/test.c
/tmp/test && echo "success"configurejobs 1opam initmake installswapon failed: Operation not permittedconfigure