-
Notifications
You must be signed in to change notification settings - Fork 112
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
Feature gate pkg-config for wasm32-unknown-unknown #205
Comments
Hi, and thanks for the report! To be honest I'm not entirely sure what's causing this. Is the mere presence of pkg-config in the build-dependency tree the issue with wasm-pack? It should only be used during the build step, not included in the actual compiled artifact, so I'm not sure why it would cause this. Might need some more investigation to better understand the issue. |
I've also faced the similar issue (not related to Luckily, building with |
Even if it is not your issue, you may try to disasm wasm module with wabt and grep wasm2wat you_binary.wasm | grep import Then grep found symbols the same way, it may hint you where these imports come from. |
It seems related to the changes in optimization that caused the breakage #151 (comment) |
Finally getting back to this. In kylebarron/parquet-wasm#275 I can confirm that the issue happens between zstd-sys 2.0.1 and 2.0.3. Pinning to 2.0.3 brings in This means that the root cause is not |
Well it looks like passing (It took me a while to realize that it's possible to pass the features on even though |
updating
zstd-sys
from 2.0.1 to 2.0.6 now brings inpkg-config
. I'm not entirely sure why, but updating 2.0.1 to 2.0.6 causes wasm-pack to addat the beginning of the file, which crashes in various environments. See related issues like rustwasm/wasm-pack#743, rustwasm/wasm-bindgen#2215.
I don't know the details here but was able to track this down where it worked in Node with 2.0.1 and failed in Node with 2.0.6, using
cargo update --package zstd-sys
🤷♂️The text was updated successfully, but these errors were encountered: