rustix icon indicating copy to clipboard operation
rustix copied to clipboard

Figure out an 390x build error

Open sunfishcode opened this issue 2 years ago • 0 comments

In https://github.com/coreos/rpm-ostree/issues/3839, they're seeing this error:

--> /builddir/build/BUILD/rpm-ostree-2022.10.110.gad3fecdc/vendor/rustix/src/imp/libc/fs/dir.rs:47:18
   |
47 | use libc_errno::{errno, set_errno, Errno};
   |                  ^^^^^  ^^^^^^^^^  ^^^^^ no `Errno` in the root
   |                  |      |
   |                  |      no `set_errno` in the root
   |                  no `errno` in the root

This is a surprising error message; it's not the "unresolved import libc_errno" error one might expect if we got the complex cfg wrong in Cargo.toml. Here, the build system seems to have correctly decided that we're using the libc dependencies, and the compiler appears to have found libc_errno. It appears it isn't finding the things inside of it :thinking: .

The errno crate doesn't have any way to disable errno, set_errno, and Errno; those are always unconditionally defined.

So I don't currently have any theories for what might be causing this.

sunfishcode avatar Jul 11 '22 23:07 sunfishcode