Skip to content
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

Closed
sjames opened this issue Sep 27, 2021 · 5 comments
Closed

[BUG] Compile error with Rust 1.55.0 (stable) #231

sjames opened this issue Sep 27, 2021 · 5 comments

Comments

@sjames
Copy link

sjames commented Sep 27, 2021

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 functionnix::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:

  1. Check out fog05 github repo
  2. cargo build

Expected behavior
Build must succeed

Desktop (please complete the following information):

  • OS: Linux
  • Version Ubuntu 20.04
@sjames sjames added the bug Something isn't working label Sep 27, 2021
@gabrik gabrik removed the bug Something isn't working label Sep 28, 2021
@gabrik
Copy link
Contributor

gabrik commented Sep 28, 2021

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

@sjames
Copy link
Author

sjames commented Sep 28, 2021

@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?

image

@gabrik
Copy link
Contributor

gabrik commented Sep 28, 2021

It seems it is getting the wrong version of the shared_memory crate, in some Linux installations.

I'll give a deeper look and come back with a solution/PR.

@gabrik gabrik closed this as completed in 6deec42 Sep 28, 2021
gabrik added a commit that referenced this issue Sep 28, 2021
@gabrik
Copy link
Contributor

gabrik commented Sep 28, 2021

It should be solved now, please let me know and reopen this issue if necessary

@sjames
Copy link
Author

sjames commented Sep 28, 2021

Thank you. It builds now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants