mbutrovich commented on issue #3646: URL: https://github.com/apache/iceberg-rust/issues/3646#issuecomment-6695792424
I rebuilt the wheel on `main` at [`5370b61`](https://github.com/apache/iceberg-rust/tree/5370b61638e205d7caf97889affe5da63aea9b16) on macOS arm64. The toolchain was `nightly-2026-04-16` from `rust-toolchain.toml` and Command Line Tools `ld-27106.1`. Two of the three problems in the description are gone, and the strip problem is still there. #3143 removed DataFusion, OpenDAL, and Tokio from the binding, which now [depends only on `arrow`, `iceberg`, and `pyo3`](https://github.com/apache/iceberg-rust/blob/5370b61638e205d7caf97889affe5da63aea9b16/bindings/python/Cargo.toml#L36-L39). The `opendal_core` recursion limit no longer applies, and the wheel is about a tenth of its `v0.10.1` size. | `opt-level` | `strip` | Wheel | `.so` | Imports | |---|---|--:|--:|---| | `"z"` | `true` | 1.2 MB | 3.1 MB | yes | | `3` | `true` | 1.6 MB | 4.4 MB | yes | | `3` | `false` | 1.7 MB | 5.3 MB | yes | The strip failure depends on the binary's layout. `main` happens to load, but the branch that adds the Arrow manifest readers to the binding (#3647 and #3648) fails to import with "mis-aligned LINKEDIT string pool" under every `strip` mode at both `opt-level` settings. | `opt-level` | `strip` | Wheel | `.so` | Imports | |---|---|--:|--:|---| | `"z"` | `true` | 2.2 MB | 5.3 MB | no | | `"z"` | `"debuginfo"` | 2.8 MB | 10.3 MB | no | | `"z"` | `false` | 2.7 MB | 10.6 MB | yes | | `3` | `true` | 3.4 MB | 10.1 MB | no | | `3` | `"debuginfo"` | 3.6 MB | 12.0 MB | no | | `3` | `false` | 3.6 MB | 12.1 MB | yes | `"debuginfo"` fails too, so the failure comes from running the strip step at all, not from what it removes. The macOS `.so` has no `__debug_` sections in any of these builds. I propose changing the [release profile in `pyproject.toml`](https://github.com/apache/iceberg-rust/blob/5370b61638e205d7caf97889affe5da63aea9b16/bindings/python/pyproject.toml?plain=1#L51-L57) to `opt-level = 3` with `strip = false`. The wheel stays under 4 MB with the Arrow readers included, and panic backtraces keep function names. I haven't checked whether the `macos-latest` runners in [the binding CI](https://github.com/apache/iceberg-rust/blob/5370b61638e205d7caf97889affe5da63aea9b16/.github/workflows/bindings_python_ci.yml#L77) hit the strip failure, and I haven't built the manylinux wheels. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
