-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put libc FFI behind feature flag #40
Comments
Yep that should be no problem. |
Running polylabel v3.2.0 (/Users/sth/dev/polylabel-rs)
├── geo v0.28.0
│ ├── earcutr v0.4.3
│ │ ├── itertools v0.11.0
│ │ │ └── either v1.10.0
│ │ └── num-traits v0.2.18
│ │ └── libm v0.2.8
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ ├── float_next_after v1.0.0
│ ├── geo-types v0.7.13
│ │ ├── approx v0.5.1
│ │ │ └── num-traits v0.2.18 (*)
│ │ ├── num-traits v0.2.18 (*)
│ │ └── rstar v0.12.0
│ │ ├── heapless v0.8.0
│ │ │ ├── hash32 v0.3.1
│ │ │ │ └── byteorder v1.5.0
│ │ │ └── stable_deref_trait v1.2.0
│ │ ├── num-traits v0.2.18 (*)
│ │ └── smallvec v1.13.1
│ ├── geographiclib-rs v0.2.4
│ │ └── libm v0.2.8
│ ├── log v0.4.20
│ ├── num-traits v0.2.18 (*)
│ ├── robust v1.1.0
│ ├── rstar v0.12.0 (*)
│ └── spade v2.6.0
│ ├── hashbrown v0.14.3
│ │ ├── ahash v0.8.9
│ │ │ ├── cfg-if v1.0.0
│ │ │ ├── once_cell v1.19.0
│ │ │ └── zerocopy v0.7.32
│ │ │ [build-dependencies]
│ │ │ └── version_check v0.9.4
│ │ └── allocator-api2 v0.2.16
│ ├── num-traits v0.2.18 (*)
│ ├── robust v1.1.0
│ └── smallvec v1.13.1
├── num-traits v0.2.18 (*)
└── thiserror v1.0.57
└── thiserror-impl v1.0.57 (proc-macro)
├── proc-macro2 v1.0.78
│ └── unicode-ident v1.0.12
├── quote v1.0.35
│ └── proc-macro2 v1.0.78 (*)
└── syn v2.0.51
├── proc-macro2 v1.0.78 (*)
├── quote v1.0.35 (*)
└── unicode-ident v1.0.12 But with the polylabel v3.2.0 (/Users/sth/dev/polylabel-rs)
├── geo v0.28.0
│ ├── earcutr v0.4.3
│ │ ├── itertools v0.11.0
│ │ │ └── either v1.10.0
│ │ └── num-traits v0.2.18
│ │ └── libm v0.2.8
│ │ [build-dependencies]
│ │ └── autocfg v1.1.0
│ ├── float_next_after v1.0.0
│ ├── geo-types v0.7.13
│ │ ├── approx v0.5.1
│ │ │ └── num-traits v0.2.18 (*)
│ │ ├── num-traits v0.2.18 (*)
│ │ └── rstar v0.12.0
│ │ ├── heapless v0.8.0
│ │ │ ├── hash32 v0.3.1
│ │ │ │ └── byteorder v1.5.0
│ │ │ └── stable_deref_trait v1.2.0
│ │ ├── num-traits v0.2.18 (*)
│ │ └── smallvec v1.13.1
│ ├── geographiclib-rs v0.2.4
│ │ └── libm v0.2.8
│ ├── log v0.4.20
│ ├── num-traits v0.2.18 (*)
│ ├── robust v1.1.0
│ ├── rstar v0.12.0 (*)
│ └── spade v2.6.0
│ ├── hashbrown v0.14.3
│ │ ├── ahash v0.8.9
│ │ │ ├── cfg-if v1.0.0
│ │ │ ├── once_cell v1.19.0
│ │ │ └── zerocopy v0.7.32
│ │ │ [build-dependencies]
│ │ │ └── version_check v0.9.4
│ │ └── allocator-api2 v0.2.16
│ ├── num-traits v0.2.18 (*)
│ ├── robust v1.1.0
│ └── smallvec v1.13.1
├── libc v0.2.153
├── num-traits v0.2.18 (*)
└── thiserror v1.0.57
└── thiserror-impl v1.0.57 (proc-macro)
├── proc-macro2 v1.0.78
│ └── unicode-ident v1.0.12
├── quote v1.0.35
│ └── proc-macro2 v1.0.78 (*)
└── syn v2.0.51
├── proc-macro2 v1.0.78 (*)
├── quote v1.0.35 (*)
└── unicode-ident v1.0.12 |
|
Right... I'm kinda lost at what's happening. It looks like the core error is
but I can't see what's causing that. |
Will it build something like a stub library? I'm very confused. |
I don't know... FWIW this isn't high priority to me right now, but I'd never seen this error before, so I figured I might as well log it 🤷♂️ |
I depend on polylabel-rs from geoarrow-rs. While making updates to compile the geoarrow Python bindings for emscripten (for use in pyodide), I discovered that this crate can't compile for
wasm32-unknown-emscripten
.Would you be able to separate out the FFI parts?
I see that
libc
is marked asoptional = true
but it still fails to compile with emcc:The text was updated successfully, but these errors were encountered: