Skip to content

Upgrade memmap2 version#3021

Merged
messense merged 1 commit intoPyO3:mainfrom
amy-kwan:amy-kwan/upgrade-memmap2
Feb 20, 2026
Merged

Upgrade memmap2 version#3021
messense merged 1 commit intoPyO3:mainfrom
amy-kwan:amy-kwan/upgrade-memmap2

Conversation

@amy-kwan
Copy link
Copy Markdown
Contributor

maturin fails on build on AIX due to the following:

error[E0308]: mismatched types
    --> /home/amyk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/memmap2-0.9.9/src/unix.rs:429:30
     |
 429 |             if libc::madvise(self.ptr.offset(offset), len, advice) != 0 {
     |                ------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut c_void`
     |                |
     |                arguments to this function are incorrect
     |
     = note: expected raw pointer `*mut u8`
                found raw pointer `*mut c_void`
note: function defined here
    --> /home/amyk/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.180/src/unix/aix/mod.rs:3010:12
     |
3010 |     pub fn madvise(addr: caddr_t, len: size_t, advice: c_int) -> c_int;
     |            ^^^^^^^

This issue is resolved thanks to RazrFalcon/memmap2-rs@d2054a2, which is available in v0.9.10.

@messense messense merged commit 468a6e5 into PyO3:main Feb 20, 2026
45 checks passed
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Feb 22, 2026
## 1.12.4

* Upgrade memmap2 version ([#3021](PyO3/maturin#3021))
* Fix: platform tag detection for Android targets ([#3023](PyO3/maturin#3023))
* Fix: only ignore maturin-generated native libraries on all platforms ([#3025](PyO3/maturin#3025))
* Fix: ignore develop artifacts for all binding types during build ([#3026](PyO3/maturin#3026))
* Feat: support conditional cargo features based on Python version ([#3027](PyO3/maturin#3027))

## 1.12.3

* Ci: set crt-static for riscv64 and loongarch64 musl targets ([#3009](PyO3/maturin#3009))
* Fix: support `maturin develop` on Windows ARM with x86 Python ([#3011](PyO3/maturin#3011))
* Fix: exclude `external_packages` bindings from uniffi wheels ([#3013](PyO3/maturin#3013))
* Update cargo-zigbuild to 0.22.1 ([#3015](PyO3/maturin#3015))
* Feat: build wheels from sdist with `--sdist` flag ([#3014](PyO3/maturin#3014))
* Feat: add `include-import-lib` option to bundle Windows import libraries in wheels ([#3017](PyO3/maturin#3017))
* Fix: auditwheel external lib check respects musllinux and reports symbol versions ([#3019](PyO3/maturin#3019))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants