Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856052 - dev-lang/rust-1.60.0: unresolved import `crate::sys::cvt` (during stage2)
Summary: dev-lang/rust-1.60.0: unresolved import `crate::sys::cvt` (during stage2)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-03 03:20 UTC by Luke-Jr
Modified: 2024-10-16 17:17 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.xz,868.09 KB, application/x-xz)
2022-07-03 03:20 UTC, Luke-Jr
Details
emerge --info (emerge--info,11.72 KB, text/plain)
2022-07-03 03:21 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2022-07-03 03:20:22 UTC
Created attachment 789668 [details]
build log

sysroot: "/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2"
libdir: "/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2/lib"
error[E0432]: unresolved import `crate::sys::cvt`
  --> library/std/src/os/fd/owned.rs:12:5
   |
12 | use crate::sys::cvt;
   |     ^^^^^^^^^^^^^^^ no `cvt` in `sys`

error: Compilation failed, aborting rustdoc

For more information about this error, try `rustc --explain E0432`.
error: could not document `std`

Caused by:
  process didn't exit successfully: `/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/bootstrap/debug/rustdoc --edition=2021 --crate-type dylib --crate-type rlib --crate-name std library/std/src/lib.rs --target wasm32-unknown-unknown -o /var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/doc --cfg 'feature="addr2line"' --cfg 'feature="backtrace"' --cfg 'feature="compiler-builtins-c"' --cfg 'feature="gimli-symbolize"' --cfg 'feature="miniz_oxide"' --cfg 'feature="object"' --cfg 'feature="panic_unwind"' --cfg 'feature="std_detect_dlsym_getauxval"' --cfg 'feature="std_detect_file_io"' --error-format=json --json=diagnostic-rendered-ansi,future-incompat --markdown-css rust.css --markdown-no-toc -Z unstable-options --resource-suffix 1.60.0 --index-page /var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/src/doc/index.md -C metadata=c0d15acc9e7b6132 -L dependency=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps -L dependency=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern addr2line=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-04ace3c3d1e3216e.rmeta --extern alloc=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-54366d072d8729a8.rmeta --extern cfg_if=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-de89b7da794ec23d.rmeta --extern compiler_builtins=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-bf1a264be66c114b.rmeta --extern core=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-1ae0c878bbe36ce6.rmeta --extern dlmalloc=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-f71f8cacff46143d.rmeta --extern hashbrown=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-dfaf0f2c247f6f20.rmeta --extern libc=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-d117587bda9760e9.rmeta --extern miniz_oxide=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-6e9f0fd1d0631435.rmeta --extern object=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm3
2-unknown-unknown/release/deps/libobject-5953f4b48dbdb7b6.rmeta --extern panic_abort=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-c84753064decbf44.rmeta --extern panic_unwind=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-070094b0c303f045.rmeta --extern rustc_demangle=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-2a47908dcd313a59.rmeta --extern std_detect=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libstd_detect-ae96a8751e2bcdcd.rmeta --extern unwind=/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-31522d4fe0403f23.rmeta -Csymbol-mangling-version=legacy -Zunstable-options '-Wrustdoc::invalid_codeblock_attributes' --crate-version '1.60.0
  (gentoo)' '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/1.60.0/")' --cfg backtrace_in_libstd` (exit status: 1)


command did not execute successfully: "/usr/lib/rust/1.59.0/bin/cargo" "rustdoc" "--target" "wasm32-unknown-unknown" "-Zbinary-dep-depinfo" "-j" "13" "-v" "-v" "--release" "--locked" "--frozen" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/library/test/Cargo.toml" "-p" "std" "-Zskip-rustdoc-fingerprint" "--" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.60.0" "--index-page" "/var/tmp/portage/dev-lang/rust-1.60.0/work/rustc-1.60.0-src/src/doc/index.md"
expected success, got: exit status: 101
Comment 1 Luke-Jr 2022-07-03 03:21:50 UTC
Created attachment 789671 [details]
emerge --info
Comment 2 Georgy Yakovlev archtester gentoo-dev 2022-07-03 18:28:35 UTC
you seem to modify ebuild with bashrc or other portage hooks - please investigate your code yourself. probably has to do with modifying vendor jsons.

stock ebuild works fine.
Comment 3 Luke-Jr 2022-07-03 19:21:28 UTC
USE='-doc -clippy -rustfmt' succeeded (FWIW using 136 GB total in /var/tmp).

However, trying to build my normal USE flags, starting from rust 1.60.0 still fails with the same error.
Comment 4 Luke-Jr 2022-07-03 19:24:36 UTC
(In reply to Georgy Yakovlev from comment #2)
> you seem to modify ebuild with bashrc or other portage hooks - please
> investigate your code yourself. probably has to do with modifying vendor
> jsons.
> 
> stock ebuild works fine.

There is no indication my deblobbing is related. Google finds other reports of this issue with upstream. eg https://cgit.freebsd.org/ports/commit/?id=ea3a1c8a6eff20c7a4c9ed8032d396769a5ec188
Comment 5 Luke-Jr 2022-07-03 19:49:29 UTC
Found the upstream bugfix: https://github.com/rust-lang/rust/pull/94352
Comment 6 Luke-Jr 2022-07-03 22:11:10 UTC
(In reply to Luke-Jr from comment #5)
> Found the upstream bugfix: https://github.com/rust-lang/rust/pull/94352

This didn't fix it either :(
Comment 7 Luke-Jr 2022-07-04 01:02:50 UTC
Adding the "owned.rs" part of https://github.com/rust-lang/rust/pull/95900 (the other part is n/a to this version) in addition to 94352, appears to fix this issue.
Comment 8 tt_1 2022-07-18 21:00:39 UTC
it seems all related fixes for this have landed in rust-1.62.0?
Comment 9 Luke-Jr 2022-07-18 21:07:50 UTC
(In reply to tt_1 from comment #8)
> it seems all related fixes for this have landed in rust-1.62.0?

But that's not a solution since building 1.62.0 requires 1.61.0 and that requires 1.60.0 - so this still needs to get fixed in 1.60 and 1.61.
Comment 10 Luke-Jr 2022-08-20 19:36:37 UTC
dev-lang/rust-1.61.0-r2 still affected by this
Comment 11 Luke-Jr 2022-08-21 01:42:36 UTC
(In reply to Luke-Jr from comment #10)
> dev-lang/rust-1.61.0-r2 still affected by this

Also has new errors:

error[E0432]: unresolved import `crate::os::unix::io`
 --> library/std/src/os/fd/raw.rs:9:22
  |
9 | use crate::os::unix::io::AsFd;
  |                      ^^ could not find `io` in `unix`

Just going to disable wasm for now on my end...
Comment 12 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2024-10-16 17:17:51 UTC
Sorry for the long wait time for this report.

Since a long time have passed, and many rust versions, I prefer to close this bug with a request from reporter to retest and report if broken.

If it still reproduces with latest versions, please reopen :)