-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
#include <wasmtime/conf.h>
fails since conf.h
is not generated
#8890
Comments
Related: Homebrew/homebrew-core#175234 |
This changed in #8642 where |
Just to be clear: These changes need to happen here in wasmtime-c-api, right? |
I think there may be multiple issues in play here, so I'm not certain if a single fix in a single location will fix both issues here. One issue is that this line is no longer sufficient for the includes of Wasmtime because the As for the Homebrew PR I don't know what's going on there. That looks like a possibly buggy installation of the C API because it looks like it was built from source and installed but |
Yes. The main question is whether that is considered a regression to be fixed, or whether the official policy is now "use the
Sorry, that was just meant to show that the effect is not limited to one consumer: Homebrew had the same issue of no longer being able to build |
If CMake can be used that'd be best yeah, primarily because that's what we're testing in CI and it's what's used to produce the artifacts. If that's not feasible this is minor enough I think it's ok to add custom logic to the build script too. |
It seems like |
Yes |
All necessary for a build process files need to be fetched before the Previously it was easy enough just because |
As a workaround for the time being could you continue to run |
wasmtime v22.0.0 adds complexity to the C API build, see details bytecodealliance/wasmtime#8890 ChangeLog: bytecodealliance/wasmtime@v21.0.1...v22.0.0
Can I get some guidance on how to use this crate in its current state? As it stands, the wasmtime-c-api crate seems to be completely unusable. It doesn't seem to be possible to use the cmake crate to call cmake from the build.rs script, because the inner cargo will deadlock trying to lock the package folder. I could try calling cmake from tree-sitter's build.rs, but this feels wrong because it would then require keeping tree-sitter's build script up to date with the build script for wasmtime. Am I missing something obvious? Thanks for any pointers. Happy to do some tweaking of the build script and file a PR with the results once I get it working. |
I think #9031 should work well, thanks for opening a PR! I'll note though that one of the reasons this snuck in, which I think I was also mentioning on the original PR for this support, is that there are no tests in-tree so we can't guarantee that this will keep working. Despite that though assistance in maintaining it is much appreciated! |
When we try to bump to wasmtime v22.0.0 in tree-sitter/tree-sitter#3428 we get the following error:
When I checked this locally it seems that
conf.h
is not being generated when building the c-api via a crate as I could not find it incargo:warning=/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmtime-c-api-impl-22.0.0/include/
, which is where I assumed it would be as that's where the headers are looking for it.The text was updated successfully, but these errors were encountered: