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

PowerPC, MIPS and NetBSD problem #155

Closed
Trojan295 opened this issue Mar 9, 2018 · 4 comments
Closed

PowerPC, MIPS and NetBSD problem #155

Trojan295 opened this issue Mar 9, 2018 · 4 comments

Comments

@Trojan295
Copy link

Trojan295 commented Mar 9, 2018

Hello,

I'm trying to compile notify 4.0.3 on a few different environments and looks it's failing on some (https://travis-ci.org/jedisct1/flowgger/builds/351310716).

For NetBSD (x86_64-unknown-netbsd) it looks like an issue with a dependency (https://github.com/alexcrichton/filetime):

error[E0425]: cannot find value `utimensat` in module `libc`
 --> /cargo/registry/src/github.com-1ecc6299db9ec823/filetime-0.1.15/src/unix/utimensat.rs:8:45
  |
8 |     super::utimensat(p, atime, mtime, libc::utimensat, 0)
  |                                             ^^^^^^^^^ did you mean `futimens`?
help: possible candidate is found in another module, you can import it into scope
  |
1 | use imp::utimensat;
  |

mips, powerpc and s390x, could be failing due to some old dependencies (mio 0.5.1 and nix 0.5.1), which didn't support such architectures (https://docs.rs/crate/nix/0.5.1/source/src/sys/syscall.rs):

error[E0432]: unresolved import `self::arch`
 --> /cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.5.1/src/sys/syscall.rs:5:15
  |
5 | pub use self::arch::*;
  |               ^^^^ Could not find `arch` in `self`
error[E0433]: failed to resolve. Use of undeclared type or module `cpuset_attribs`
   --> /cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.5.1/src/sched.rs:118:25
    |
118 |     cpu_mask: [CpuMask; cpuset_attribs::CPU_SETSIZE/cpuset_attribs::CPU_MASK_BITS]
    |                         ^^^^^^^^^^^^^^ Use of undeclared type or module `cpuset_attribs`
@passcod
Copy link
Member

passcod commented Mar 10, 2018

Firstly, thanks for trying on such architectures! v5 is going to be built on a wider range of archs, but up until then I'm mostly relying on people like you testing it out.

IIRC, upgrading mio requires some pretty large changes, so I didn't elect to do it on the v4 branch. If you want to take a crack at it, I'd welcome any PR, though.

For filetime, I think this is the same issue? alexcrichton/filetime#19 It seems it's a libc issue instead. Try filing with them?

@passcod passcod added A-enhancement Z-needs implementation Needs an implementation, will accept PRs B-upstream and removed Z-needs implementation Needs an implementation, will accept PRs labels Mar 10, 2018
@Trojan295
Copy link
Author

OK, the problem with NetBSD is solved, we had libc locked to 0.2.31 and after an update to 0.2.39 the issue disappeared.

I will see what I can do with this update of mio, although I'm not so experienced with Rust.. but willing to learn! :)

@passcod
Copy link
Member

passcod commented Jul 12, 2018

This will be fixed when v5 releases due to it using a newer mio.

@passcod passcod added this to the 5.0.0 milestone Jul 12, 2018
@passcod
Copy link
Member

passcod commented Aug 29, 2018

I believe this is now fixed with #162 (in 4.0.6)

@passcod passcod closed this as completed Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants