You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use esp-rs/esp-idf-template to create the project.
MCU: esp32c6
log:
error[E0425]: cannot find value `LOCK_EX` in crate `libc`
--> /home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:1258:58
|
1258 | cvt(unsafe { libc::flock(self.as_raw_fd(), libc::LOCK_EX) })?;
| ^^^^^^^ not found in `libc`
error[E0425]: cannot find value `LOCK_SH` in crate `libc`
--> /home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:1263:58
|
1263 | cvt(unsafe { libc::flock(self.as_raw_fd(), libc::LOCK_SH) })?;
| ^^^^^^^ not found in `libc`
error[E0425]: cannot find value `LOCK_EX` in crate `libc`
--> /home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:1268:71
|
1268 | let result = cvt(unsafe { libc::flock(self.as_raw_fd(), libc::LOCK_EX | libc::LOCK_NB) });
| ^^^^^^^ not found in `libc`
error[E0425]: cannot find value `LOCK_NB` in crate `libc`
--> /home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:1268:87
|
1268 | let result = cvt(unsafe { libc::flock(self.as_raw_fd(), libc::LOCK_EX | libc::LOCK_NB) });
| ^^^^^^^ not found in `libc`
error[E0425]: cannot find value `LOCK_SH` in crate `libc`
--> /home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:1279:71
|
1279 | let result = cvt(unsafe { libc::flock(self.as_raw_fd(), libc::LOCK_SH | libc::LOCK_NB) });
| ^^^^^^^ not found in `libc`
error[E0425]: cannot find value `LOCK_NB` in crate `libc`
--> /home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:1279:87
|
1279 | let result = cvt(unsafe { libc::flock(self.as_raw_fd(), libc::LOCK_SH | libc::LOCK_NB) });
| ^^^^^^^ not found in `libc`
error[E0425]: cannot find value `LOCK_UN` in crate `libc`
--> /home/esp/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:1290:58
|
1290 | cvt(unsafe { libc::flock(self.as_raw_fd(), libc::LOCK_UN) })?;
| ^^^^^^^ not found in `libc`
For more information about this error, try `rustc --explain E0425`.
error: could not compile `std` (lib) due to 7 previous errors
The text was updated successfully, but these errors were encountered:
I use esp-rs/esp-idf-template to create the project.
MCU: esp32c6
log:
The text was updated successfully, but these errors were encountered: