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
Created attachment 789671 [details] emerge --info
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.
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.
(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
Found the upstream bugfix: https://github.com/rust-lang/rust/pull/94352
(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 :(
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.
it seems all related fixes for this have landed in rust-1.62.0?
(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.
dev-lang/rust-1.61.0-r2 still affected by this
(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...
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 :)