I'm trying to build a debug version of pydantic-core to troubleshoot a segfault.
I tried configuring a debug build in Cargo.toml and then running python -m build -o dist .. I also tried the make build-dev command that's provided. Both attempts fail with error[E0425]: cannot find type `c_int` in this scope during the compilation of pyo3-ffi-0.26.0.
Python version: 3.11.14 (debug build, from source)
Rustc version: rustc 1.93.1 (01f6ddf75 2026-02-11)
pydantic-core: In production, the pydantic-core version that's installed is 2.41.5, so to reproduce the segfault I'm trying to build at the v2.41.5 tag in the pydantic-core repo.
Full build logs: https://gist.github.com/fofoni/af1ff66279a1c5e1c41a396979f28e89
NOTE: Since this is an issue in pydantic-core 2.41.5, which was tagged in the pydantic-core repository, I first opened this issue there: pydantic/pydantic-core#1905 . Sorry for cross-posting but I'm unclear on where this issue should be opened. EDIT: the issue in the pydantic-core repository was marked as a duplicate.
I'm trying to build a debug version of pydantic-core to troubleshoot a segfault.
I tried configuring a debug build in Cargo.toml and then running
python -m build -o dist .. I also tried themake build-devcommand that's provided. Both attempts fail witherror[E0425]: cannot find type `c_int` in this scopeduring the compilation of pyo3-ffi-0.26.0.Python version: 3.11.14 (debug build, from source)
Rustc version: rustc 1.93.1 (01f6ddf75 2026-02-11)
pydantic-core: In production, the pydantic-core version that's installed is 2.41.5, so to reproduce the segfault I'm trying to build at the v2.41.5 tag in the pydantic-core repo.
Full build logs: https://gist.github.com/fofoni/af1ff66279a1c5e1c41a396979f28e89