-
Notifications
You must be signed in to change notification settings - Fork 24
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
[BUG] Compile error with Rust 1.55.0 (stable) #231
Comments
Hi @sjames, Eclipse fog05 does not build with rust stable it requires nightly rustup default nightly
cargo update
cargo build --all-targets This was tested on an Ubuntu 20.04 and was working |
@gabrik . I tried this just now , but had the same error. I also realized that I have Ubuntu 18.04 on this computer, sorry about saying I was using 20.04. Which version of nightly are you using? |
It seems it is getting the wrong version of the I'll give a deeper look and come back with a solution/PR. |
It should be solved now, please let me know and reopen this issue if necessary |
Thank you. It builds now. |
Describe the bug
I checked out the fog05 repository and tried to build it on Ubuntu 20.04. shared_memory v 0.11.4 fails to compile. This package is a dependency of zenoh.
Compiling shared_memory v0.11.4 error[E0164]: expected tuple struct or tuple variant, found associated function
nix::Error::Sys--> /home/sjames/.cargo/registry/src/github.com-1ecc6299db9ec823/shared_memory-0.11.4/src/unix.rs:87:13 | 87 | Err(nix::Error::Sys(Errno::EEXIST)) => return Err(ShmemError::MappingIdExists), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fn` calls are not allowed in patterns|
= help: for more information, visit https://doc.rust-lang.org/book/ch18-00-patterns.html
`
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Build must succeed
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: