`munmap_chunk(): invalid pointer` when wrapping a C++ package

The issue was due to libcxxwrrap_julia releasing a breaking change, see 0.15 not yet registered (was Regression with 0.15) · Issue #402 · JuliaInterop/CxxWrap.jl · GitHub

It seems that for jll packages depending on libcxxwrap_julia, one should always specify a compat in the build_tarballs.jl, e.g.

Dependency("libcxxwrap_julia_jll"; compat = "0.11.2")
1 Like