Skip to content
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

WASM Build Failure #328

Open
toolCHAINZ opened this issue Dec 2, 2024 · 2 comments
Open

WASM Build Failure #328

toolCHAINZ opened this issue Dec 2, 2024 · 2 comments

Comments

@toolCHAINZ
Copy link
Contributor

I did a little bit of triage on the recent WASM build failures. I don't have a fix, but the cause seems to be this:

rust-lang/cc-rs#1284

Seems to have happened because:

  • z3.rs has no committed lock file or direct dependence on a version of cc.
  • rust-bindgen, which is what is actually using cc just targets the major version1.0.
  • cc 1.2.0 changed the flags passed to wasm targets, adding in -fno-exception

So the CI is pulling in cc 1.2.0, which is using that flag and failing on the z3 build.

@toolCHAINZ
Copy link
Contributor Author

Adding an explicit dependence on cc 1.1 in z3_sys as follows seems to fix it:

cc = "~1.1"

@toolCHAINZ
Copy link
Contributor Author

I've made #329 with this change.

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

No branches or pull requests

1 participant