This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Open
Conversation
With this patch it's possible to run `CC=clang13 gmake examples' and get wasm files. However, `CC=clang13 gmake all' requires a bit more work.
Member
|
Hi Sergey, Thanks, let me take a look because I thought I did have it building under FreeBSD... |
ac000
reviewed
Nov 3, 2023
Member
|
Hmm, does $ gmake CC=clang13 rustwork for you? I get an error about not finding stddef.h, which I can hack around with diff --git a/src/rust/unit-wasm-sys/build.rs b/src/rust/unit-wasm-sys/build.rs
index 1f41afa..0e65f58 100644
--- a/src/rust/unit-wasm-sys/build.rs
+++ b/src/rust/unit-wasm-sys/build.rs
@@ -39,6 +39,7 @@ fn generate_bindings() {
.default_enum_style(bindgen::EnumVariation::Rust {
non_exhaustive: false,
})
+ .clang_arg("-I/usr/local/share/wasi-sysroot/include")
.generate()
.expect("Unable to generate bindings");
But then I get a bunch of other errors starting with Perhaps some other package needs to be installed to provide the wasm32-wasi target? Although $ rustc --print target-list | grep wasm
wasm32-unknown-emscripten
wasm32-unknown-unknown
wasm32-wasi
wasm64-unknown-unknownSo maybe my FreeBSD install is just messed up as I'm sure this used to work... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this patch it's possible to run `CC=clang13 gmake examples' and get wasm files. However,
requires a bit more work.