After just crating a new Rust project and importing the mozangle dependency I get the following build error:
Updating crates.io index
... crates
Compiling mozangle v0.5.3
warning: mozangle@0.5.3: clang++: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
error: failed to run custom build command for `mozangle v0.5.3`
Caused by:
process didn't exit successfully: `/Users/severingebesmair/rust/angle_test/target/debug/build/mozangle-63ea97bac514622e/build-script-build` (exit status: 101)
--- stdout
... cargo spam
--- stderr
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:1140:8: error: "No thread API"
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:1037:2: error: Unsupported architecture
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h:36:2: error: architecture not supported
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:67:9: error: unknown type name '__int64_t'
... more types
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:88:9: error: unknown type name '__uint32_t'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types/_intptr_t.h:32:9: error: unknown type name '__darwin_intptr_t'
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__availability:315:4: error: "It looks like you're trying to enable vendor availability markup, but you haven't defined the corresponding macros yet!"
fatal error: too many errors emitted, stopping now [-ferror-limit=]
thread 'main' panicked at /Users/severingebesmair/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bindgen-0.71.1/lib.rs:890:13:
assertion `left == right` failed: "arm64-apple-darwin" "aarch64-apple-darwin"
left: 4
right: 8
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
full output: https://pastebin.com/TwJMnFfB
This error first occurred after following the servo setup guide so I think I should have the environment set up correctly.
System:
CPU: Apple M3
OS: MacOS Sequoia 15.1
Model: MacBook Air
After just crating a new Rust project and importing the mozangle dependency I get the following build error:
full output: https://pastebin.com/TwJMnFfB
This error first occurred after following the servo setup guide so I think I should have the environment set up correctly.
System:
CPU: Apple M3
OS: MacOS Sequoia 15.1
Model: MacBook Air