Open istommao opened 1 year ago
which OS are you compiling for?
which OS are you compiling for?
LInux @kadiwa4
Linux + Rust nightly is tested in CI. If you want to report an issue with that combination then you'll need to give more info.
substrate node template project, cargo build then report this issue https://github.com/Generative-Labs/Substrate-HotStuff
feat/hotstuff branch
I can reproduce this on windows.
Can reproduce it on macOS Sonoma
Is there some update about this one? I can reproduce it on macOS Monterey(rustc 1.74.0-nightly)
The code in question looks like this:
#[cfg_attr(unix, path = "unix.rs")]
#[cfg_attr(windows, path = "windows.rs")]
#[cfg_attr(target_os = "wasi", path = "wasi.rs")]
#[cfg_attr(target_os = "hermit", path = "hermit.rs")]
mod sys;
As far as I'm aware, Rust always considers macOS to be a unix
target, so it should always use the unix path. The repo has a unix.rs file, so that should always be there. I don't have any guesses as to which of those assumptions might be false.
Any suggested fix or workaround for this issue ?
Could anyone who can reproduce this, please post:
I also ran into this issue, but I was trying to target wasm64-unknown-unknown
for use with wasm-pack. Since "unknown" does not match unix, windows, wasi, nor hermit, none of the configurations matched and resolved to just the line "mod sys;" without a path. I stopped using wasm-pack and just built instead with build --target wasm32-wasi
. I'm still having issues, but I'm confident that's to do with my toolchain. TL;DR double check what your targeting
@sunfishcode errno is currently always broken on wasm*-unknown-unknown targets, and I (and others) depend on it through multiple indirections, such as clap or miette. I hope this gets fixed soon.
I am also facing the same errors did anyone fix it
I'm running into this too ..
Any resolution to this ? I am building my rust project and this library I believe is a dependency and my target wasm32-unknown-unknown
build is failing with the same errors.
Command to build: cargo build --target wasm32-unknown-unknown --release
Try to clean your project and re-build it
Can you share your git repo
error[E0583]: file not found for module sys
cargo 1.73.0-nightly (7e9de3f4e 2023-08-13) rustc 1.73.0-nightly (https://github.com/rust-lang/rust/commit/180dffba142c47240ca0d93096ce90b9fd97c8d7 2023-08-14)![image](https://github.com/lambda-fairy/rust-errno/assets/5070879/6e4b390f-dfe2-4dcd-9ae7-a55201b9d72d)