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

Rustdoc fails to build wasm32 target documentation #76526

Closed
o01eg opened this issue Sep 9, 2020 · 5 comments · Fixed by #95900
Closed

Rustdoc fails to build wasm32 target documentation #76526

o01eg opened this issue Sep 9, 2020 · 5 comments · Fixed by #95900
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.

Comments

@o01eg
Copy link
Contributor

o01eg commented Sep 9, 2020

When I build rust from master branch I catch error on documenting std for wasm32 target:

config.toml

[llvm]
optimize = true
release-debuginfo = false
assertions = false
ninja = true
targets = "X86;Mips;NVPTX;RISCV;BPF;AArch64;WebAssembly"
experimental-targets = ""
link-shared = true
[build]
build = "x86_64-unknown-linux-gnu"
host = ["x86_64-unknown-linux-gnu"]
target = ["i686-unknown-linux-gnu","x86_64-unknown-linux-gnu","wasm32-unknown-unknown"]
docs = true
compiler-docs = true
submodules = false
python = "python3.7"
locked-deps = true
vendor = false
extended = true
tools = ["rust-analyzer","rustfmt","rls","miri","clippy","cargo",]
verbose = 2
sanitizers = false
profiler = false
cargo-native-static = false
[install]
prefix = "/usr"
libdir = "lib64/rust-9999"
docdir = "share/doc/rust-9999"
mandir = "share/rust-9999/man"
[rust]
optimize = true
debug = false
debug-assertions = false
debuginfo-level-rustc = 0
backtrace = true
incremental = false
default-linker = "x86_64-pc-linux-gnu-gcc"
parallel-compiler = false
rpath = false
verbose-tests = true
optimize-tests = true
codegen-tests = true
dist-src = false
ignore-git = false
lld = false
backtrace-on-ice = true
jemalloc = false
[dist]
src-tarball = false
[target.i686-unknown-linux-gnu]
cc = "x86_64-pc-linux-gnu-gcc"
cxx = "x86_64-pc-linux-gnu-g++"
linker = "x86_64-pc-linux-gnu-gcc"
ar = "x86_64-pc-linux-gnu-ar"
llvm-config = "/usr/lib/llvm/10/bin/llvm-config"
[target.x86_64-unknown-linux-gnu]
cc = "x86_64-pc-linux-gnu-gcc"
cxx = "x86_64-pc-linux-gnu-g++"
linker = "x86_64-pc-linux-gnu-gcc"
ar = "x86_64-pc-linux-gnu-ar"
llvm-config = "/usr/lib/llvm/10/bin/llvm-config"
[target.wasm32-unknown-unknown]
linker = "lld"

Part of build log:

      c Rustdoc { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
      c Sysroot { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
      c Sysroot { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
      c Sysroot { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
      c Rustdoc { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
      c Sysroot { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
running: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustdoc" "--target" "wasm32-unknown-unknown" "-Zbinary-dep-depinfo" "-j" "7" "-v" "--release" "--locked" "--features" "panic-unwind backtrace" "--manifest-path" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/library/test/Cargo.toml" "-p" "std" "--" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.47.0" "--index-page" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md"
...
 Documenting std v0.0.0 (/tmp/portage/dev-lang/rust-9999/work/rust-git-src/library/std)
     Running `/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/bootstrap/debug/rustdoc --edition=2018 --crate-type dylib --crate-type rlib --crate-name std library/std/src/lib.rs --target wasm32-unknown-unknown -o /tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/doc --cfg 'feature="addr2line"' --cfg 'feature="backtrace"' --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 --markdown-css rust.css --markdown-no-toc -Z unstable-options --resource-suffix 1.47.0 --index-page /tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-8229f5c2a688b6e3.rmeta --extern alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-74f910f193e7b336.rmeta --extern cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-fd0d852fc79171d8.rmeta --extern compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-db2ee1dfa27e3e7f.rmeta --extern core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-5a47466fe4fc98f4.rmeta --extern dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-b7e449ca03644816.rmeta --extern hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-7583e9f834c306b7.rmeta --extern libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-cf6ced52b7f0305e.rmeta --extern miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-393b4807a077fca1.rmeta --extern object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-9e197139924657b6.rmeta --extern panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-ac1891acc12bd958.rmeta --extern panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-ab0162dc30186b39.rmeta --extern rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-f73103bf135d5d64.rmeta --extern unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-8d9aa4ec2b106ff0.rmeta -Lnative=/usr/lib/llvm/10/lib64 -Dwarnings -Winvalid_codeblock_attributes --crate-version '1.47.0-dev
(49d39e559
2020-08-17)' --cfg backtrace_in_libstd`
rustdoc command: "LD_LIBRARY_PATH"="/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/lib64/rust-9999:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage0/lib" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" "--edition=2018" "--crate-type" "dylib" "--crate-type" "rlib" "--crate-name" "std" "library/std/src/lib.rs" "--target" "wasm32-unknown-unknown" "-o" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/doc" "--cfg" "feature=\"addr2line\"" "--cfg" "feature=\"backtrace\"" "--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" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.47.0" "--index-page" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md" "-L" "dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps" "-L" "dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps" "--extern" "addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-8229f5c2a688b6e3.rmeta" "--extern" "alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-74f910f193e7b336.rmeta" "--extern" "cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-fd0d852fc79171d8.rmeta" "--extern" "compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-db2ee1dfa27e3e7f.rmeta" "--extern" "core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-5a47466fe4fc98f4.rmeta" "--extern" "dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-b7e449ca03644816.rmeta" "--extern" "hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-7583e9f834c306b7.rmeta" "--extern" "libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-cf6ced52b7f0305e.rmeta" "--extern" "miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-393b4807a077fca1.rmeta" "--extern" "object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-9e197139924657b6.rmeta" "--extern" "panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-ac1891acc12bd958.rmeta" "--extern" "panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-ab0162dc30186b39.rmeta" "--extern" "rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-f73103bf135d5d64.rmeta" "--extern" "unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-8d9aa4ec2b106ff0.rmeta" "-Lnative=/usr/lib/llvm/10/lib64" "-Dwarnings" "-Winvalid_codeblock_attributes" "--crate-version" "1.47.0-dev\n(49d39e559\n2020-08-17)" "--cfg" "backtrace_in_libstd" "--cfg" "stage2" "--cfg" "dox" "--sysroot" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2" "-Z" "force-unstable-if-unmarked"
sysroot: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2"
libdir: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/lib64/rust-9999"
error: unresolved link to `crate::os::unix::ffi::OsStrExt`
   --> library/std/src/ffi/mod.rs:134:22
    |
134 | //! [unix.OsStrExt]: crate::os::unix::ffi::OsStrExt
    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = note: `-D broken-intra-doc-links` implied by `-D warnings`
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`

error: unresolved link to `crate::os::unix::ffi::OsStrExt::from_bytes`
   --> library/std/src/ffi/mod.rs:135:21
    |
135 | //! [`from_bytes`]: crate::os::unix::ffi::OsStrExt::from_bytes
    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
    |
    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
...
error: Could not document `std`.

Caused by:
  process didn't exit successfully: `/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/bootstrap/debug/rustdoc --edition=2018 --crate-type dylib --crate-type rlib --crate-name std library/std/src/lib.rs --target wasm32-unknown-unknown -o /tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/doc --cfg 'feature="addr2line"' --cfg 'feature="backtrace"' --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 --markdown-css rust.css --markdown-no-toc -Z unstable-options --resource-suffix 1.48.0 --index-page /tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-9c90916959ed47dc.rmeta --extern alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-f10d36e19a6b4a6c.rmeta --extern cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-30857b79c73f7fff.rmeta --extern compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-1b00cc16184366d5.rmeta --extern core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-1c0d17d595f10ad8.rmeta --extern dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-d3a093304a3f5ed3.rmeta --extern hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-8e4f0f970969b8bf.rmeta --extern libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-e07644d41b7e931f.rmeta --extern miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-5d75d119f5f9ea26.rmeta --extern object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-1b2bee7d52f5d55c.rmeta --extern panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-37cc5afa0a6b8ae3.rmeta --extern panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-4cac7c7e34360602.rmeta --extern rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-a4be1769e9ac3e0f.rmeta --extern unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-efdde7ebbb0e90a3.rmeta -Lnative=/usr/lib/llvm/10/lib64 -Dwarnings -Winvalid_codeblock_attributes --crate-version '1.48.0-dev
  (683d1bcd4
  2020-09-09)' --cfg backtrace_in_libstd` (exit code: 1)


command did not execute successfully: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustdoc" "--target" "wasm32-unknown-unknown" "-Zbinary-dep-depinfo" "-j" "7" "-v" "--release" "--locked" "--features" "panic-unwind backtrace" "--manifest-path" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/library/test/Cargo.toml" "-p" "std" "--" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.48.0" "--index-page" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md"
expected success, got: exit code: 101

Failing PR: #75501

@o01eg o01eg added the C-bug Category: This is a bug. label Sep 9, 2020
@o01eg
Copy link
Contributor Author

o01eg commented Sep 10, 2020

What about to use #43348 to make other platforms available when building rust from sources?

o01eg added a commit to o01eg/gentoo-rust that referenced this issue Sep 10, 2020
gentoo-bot pushed a commit to gentoo/gentoo-rust that referenced this issue Sep 10, 2020
Closes: #503
Signed-off-by: Mikhail Pukhlikov <cynede@gentoo.org>
@jyn514 jyn514 added A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. labels Sep 14, 2020
@jyn514
Copy link
Member

jyn514 commented Sep 14, 2020

Same issue as in #74976 (comment). Relevant code:

} else if #[cfg(any(target_os = "cloudabi",
target_os = "hermit",
target_arch = "wasm32",
all(target_vendor = "fortanix", target_env = "sgx")))] {
// On CloudABI and wasm right now the module below doesn't compile
// (missing things in `libc` which is empty) so just omit everything
// with an empty module

Maybe it's as simple as removing that else if #[cfg]?

@jyn514 jyn514 added the O-wasm Target: WASM (WebAssembly), http://webassembly.org/ label Sep 14, 2020
jyn514 added a commit to jyn514/rust-forge that referenced this issue Sep 15, 2020
There have been a lot of bugs fixed in intra-doc links lately and they are being stabilized in the next release. Additionally, almost all intra-doc issues are caught in the PR build, before they get to bors; the only exceptions I can think of have to do with `cfg(platform)`, which should be comparatively rare: rust-lang/rust#76526.
@jyn514
Copy link
Member

jyn514 commented Jan 8, 2021

Maybe it's as simple as removing that else if #[cfg]?

It is not.

Errors
 Documenting std v0.0.0 (/home/joshua/rustc2/library/std)
error[E0432]: unresolved import `crate::sys::cvt`
 --> library/std/src/sys/unix/ext/net/addr.rs:4:5
  |
4 | use crate::sys::cvt;
  |     ^^^^^^^^^^^^^^^ no `cvt` in `sys`

error[E0432]: unresolved import `libc::c_int`
  --> library/std/src/sys/unix/ext/net/addr.rs:11:13
   |
11 |     pub use libc::c_int;
   |             ^^^^^^^^^^^ no `c_int` in the root

error[E0432]: unresolved import `crate::sys::net::Socket`
  --> library/std/src/sys/unix/ext/net/ancillary.rs:12:5
   |
12 | use crate::sys::net::Socket;
   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `Socket` in `sys::wasm::net`

error[E0432]: unresolved import `libc::c_int`
  --> library/std/src/sys/unix/ext/net/ancillary.rs:18:13
   |
18 |     pub use libc::c_int;
   |             ^^^^^^^^^^^ no `c_int` in the root

error[E0432]: unresolved import `crate::sys::cvt`
  --> library/std/src/sys/unix/ext/net/datagram.rs:26:5
   |
26 | use crate::sys::cvt;
   |     ^^^^^^^^^^^^^^^ no `cvt` in `sys`

error[E0432]: unresolved import `crate::sys::net::Socket`
  --> library/std/src/sys/unix/ext/net/datagram.rs:27:5
   |
27 | use crate::sys::net::Socket;
   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `Socket` in `sys::wasm::net`

error[E0432]: unresolved import `crate::sys::cvt`
 --> library/std/src/sys/unix/ext/net/listener.rs:4:5
  |
4 | use crate::sys::cvt;
  |     ^^^^^^^^^^^^^^^ no `cvt` in `sys`

error[E0432]: unresolved import `crate::sys::net::Socket`
 --> library/std/src/sys/unix/ext/net/listener.rs:5:5
  |
5 | use crate::sys::net::Socket;
  |     ^^^^^^^^^^^^^^^^^^^^^^^ no `Socket` in `sys::wasm::net`

error[E0432]: unresolved import `crate::sys::cvt`
  --> library/std/src/sys/unix/ext/net/stream.rs:28:5
   |
28 | use crate::sys::cvt;
   |     ^^^^^^^^^^^^^^^ no `cvt` in `sys`

error[E0432]: unresolved import `crate::sys::net::Socket`
  --> library/std/src/sys/unix/ext/net/stream.rs:29:5
   |
29 | use crate::sys::net::Socket;
   |     ^^^^^^^^^^^^^^^^^^^^^^^ no `Socket` in `sys::wasm::net`

error[E0412]: cannot find type `c_int` in crate `libc`
  --> library/std/src/sys/unix/ext/net/datagram.rs:51:27
   |
51 | const MSG_NOSIGNAL: libc::c_int = 0x0;
   |                           ^^^^^ not found in `libc`
   |
help: consider importing this type alias
   |
11 | use crate::sys::unix_ext::io::raw::c_int;
   |

error[E0412]: cannot find type `c_int` in crate `libc`
   --> library/std/src/sys/unix/ext/net/datagram.rs:262:22
    |
262 |         flags: libc::c_int,
    |                      ^^^^^ not found in `libc`
    |
help: consider importing this type alias
    |
11  | use crate::sys::unix_ext::io::raw::c_int;
    |

error: Compilation failed, aborting rustdoc

error: aborting due to 13 previous errors

uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Mar 23, 2021
- Fix DOCS build by disabling deny-warnings (rustc equivalent to
  -Werror).  Let's not fail the entire build just because a handful
  of docs fail to build due to -D broken-intra-doc-links [0]
- Only install the host target docs.  We otherwise waste time with
  a rust-docs install-uninstall-install cycle for each additional
  target during stage.
- Backport FreeBSD support for gimli, unbreak RUST_BACKTRACE, and
  have useful stack traces with actual content again [1]
- While here also strip binaries under libexec/ and ack reading of
  src/bootstrap/CHANGELOG.md (changelog-seen=2)

[0] rust-lang/rust#76526

PR:		253557 [1]
Submitted by:	jbeich [1]


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@569007 35697150-7ecd-e111-bb59-0022644237b5
uqs pushed a commit to freebsd/freebsd-ports that referenced this issue Mar 23, 2021
- Fix DOCS build by disabling deny-warnings (rustc equivalent to
  -Werror).  Let's not fail the entire build just because a handful
  of docs fail to build due to -D broken-intra-doc-links [0]
- Only install the host target docs.  We otherwise waste time with
  a rust-docs install-uninstall-install cycle for each additional
  target during stage.
- Backport FreeBSD support for gimli, unbreak RUST_BACKTRACE, and
  have useful stack traces with actual content again [1]
- While here also strip binaries under libexec/ and ack reading of
  src/bootstrap/CHANGELOG.md (changelog-seen=2)

[0] rust-lang/rust#76526

PR:		253557 [1]
Submitted by:	jbeich [1]
Jehops pushed a commit to Jehops/freebsd-ports-legacy that referenced this issue Mar 23, 2021
- Fix DOCS build by disabling deny-warnings (rustc equivalent to
  -Werror).  Let's not fail the entire build just because a handful
  of docs fail to build due to -D broken-intra-doc-links [0]
- Only install the host target docs.  We otherwise waste time with
  a rust-docs install-uninstall-install cycle for each additional
  target during stage.
- Backport FreeBSD support for gimli, unbreak RUST_BACKTRACE, and
  have useful stack traces with actual content again [1]
- While here also strip binaries under libexec/ and ack reading of
  src/bootstrap/CHANGELOG.md (changelog-seen=2)

[0] rust-lang/rust#76526

PR:		253557 [1]
Submitted by:	jbeich [1]


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@569007 35697150-7ecd-e111-bb59-0022644237b5
netgate-git-updates pushed a commit to pfsense/FreeBSD-ports that referenced this issue Apr 7, 2021
- Fix DOCS build by disabling deny-warnings (rustc equivalent to
  -Werror).  Let's not fail the entire build just because a handful
  of docs fail to build due to -D broken-intra-doc-links [0]
- Only install the host target docs.  We otherwise waste time with
  a rust-docs install-uninstall-install cycle for each additional
  target during stage.
- Backport FreeBSD support for gimli, unbreak RUST_BACKTRACE, and
  have useful stack traces with actual content again [1]
- While here also strip binaries under libexec/ and ack reading of
  src/bootstrap/CHANGELOG.md (changelog-seen=2)

[0] rust-lang/rust#76526

PR:		253557 [1]
Submitted by:	jbeich [1]
gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Apr 27, 2021
This should unbreak USE="doc wasm" build and allow to aunmask doc
useflag, which has been masked for quite some time.

rust-lang/rust#74976
rust-lang/rust#76526

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
@o01eg
Copy link
Contributor Author

o01eg commented Apr 10, 2022

Same error on 4484165 (still I was able to compile 5e57faa)

 Documenting std v0.0.0 (/tmp/portage/dev-lang/rust-9999/work/rust-git-src/library/std)
     Running `/tmp/portage/dev-lang/rust-9999/work/rust-git-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 /tmp/portage/dev-lang/rust-9999/work/rust-git-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,artifacts,future-incompat --markdown-css rust.css --markdown-no-toc -Z unstable-options --resource-suffix 1.61.0 --index-page /tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md -C metadata=7e61aeb750b4c404 -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-b4b8704642f8bf38.rmeta --extern alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-c468320efb1a683c.rmeta --extern cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-8c954320c548f2e2.rmeta --extern compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-bd1b56e372d5c857.rmeta --extern core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-61b8495208d4423f.rmeta --extern dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-696c7b00432258bb.rmeta --extern hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-182fba800933f5e1.rmeta --extern libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-6b456d0827f7a568.rmeta --extern miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-d40ea7c1993afb36.rmeta --extern object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-a7fa79431a5f2084.rmeta --extern panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-03fa967b4eba1fc7.rmeta --extern panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-5fb497a6c702a4e5.rmeta --extern rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-a57ff3271e6dfc69.rmeta --extern std_detect=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libstd_detect-4d7b1c596cfbf70d.rmeta --extern unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-b8fabe1a637b2232.rmeta -Csymbol-mangling-version=legacy -Zunstable-options '-Wrustdoc::invalid_codeblock_attributes' --crate-version '1.61.0-dev
(293fa7a32
2022-03-03)
(gentoo)' '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' --cfg backtrace_in_libstd`
rustdoc command: "LD_LIBRARY_PATH"="/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/lib:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage0/lib" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" "--edition=2021" "--crate-type" "dylib" "--crate-type" "rlib" "--crate-name" "std" "library/std/src/lib.rs" "--target" "wasm32-unknown-unknown" "-o" "/tmp/portage/dev-lang/rust-9999/work/rust-git-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,artifacts,future-incompat" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.61.0" "--index-page" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md" "-C" "metadata=7e61aeb750b4c404" "-L" "dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps" "-L" "dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps" "--extern" "addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-b4b8704642f8bf38.rmeta" "--extern" "alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-c468320efb1a683c.rmeta" "--extern" "cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-8c954320c548f2e2.rmeta" "--extern" "compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-bd1b56e372d5c857.rmeta" "--extern" "core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-61b8495208d4423f.rmeta" "--extern" "dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-696c7b00432258bb.rmeta" "--extern" "hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-182fba800933f5e1.rmeta" "--extern" "libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-6b456d0827f7a568.rmeta" "--extern" "miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-d40ea7c1993afb36.rmeta" "--extern" "object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-a7fa79431a5f2084.rmeta" "--extern" "panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-03fa967b4eba1fc7.rmeta" "--extern" "panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-5fb497a6c702a4e5.rmeta" "--extern" "rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-a57ff3271e6dfc69.rmeta" "--extern" "std_detect=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libstd_detect-4d7b1c596cfbf70d.rmeta" "--extern" "unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-b8fabe1a637b2232.rmeta" "-Csymbol-mangling-version=legacy" "-Zunstable-options" "-Wrustdoc::invalid_codeblock_attributes" "--crate-version" "1.61.0-dev\n(293fa7a32\n2022-03-03)\n(gentoo)" "-Zcrate-attr=doc(html_root_url=\"https://doc.rust-lang.org/nightly/\")" "--cfg" "backtrace_in_libstd" "--sysroot" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2" "-Z" "force-unstable-if-unmarked"
sysroot: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2"
libdir: "/tmp/portage/dev-lang/rust-9999/work/rust-git-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: `/tmp/portage/dev-lang/rust-9999/work/rust-git-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 /tmp/portage/dev-lang/rust-9999/work/rust-git-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,artifacts,future-incompat --markdown-css rust.css --markdown-no-toc -Z unstable-options --resource-suffix 1.61.0 --index-page /tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md -C metadata=7e61aeb750b4c404 -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-b4b8704642f8bf38.rmeta --extern alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-c468320efb1a683c.rmeta --extern cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-8c954320c548f2e2.rmeta --extern compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-bd1b56e372d5c857.rmeta --extern core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-61b8495208d4423f.rmeta --extern dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-696c7b00432258bb.rmeta --extern hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-182fba800933f5e1.rmeta --extern libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-6b456d0827f7a568.rmeta --extern miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-d40ea7c1993afb36.rmeta --extern object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-a7fa79431a5f2084.rmeta --extern panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-03fa967b4eba1fc7.rmeta --extern panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-5fb497a6c702a4e5.rmeta --extern rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-a57ff3271e6dfc69.rmeta --extern std_detect=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libstd_detect-4d7b1c596cfbf70d.rmeta --extern unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-b8fabe1a637b2232.rmeta -Csymbol-mangling-version=legacy -Zunstable-options '-Wrustdoc::invalid_codeblock_attributes' --crate-version '1.61.0-dev
  (293fa7a32
  2022-03-03)
  (gentoo)' '-Zcrate-attr=doc(html_root_url="https://doc.rust-lang.org/nightly/")' --cfg backtrace_in_libstd` (exit status: 1)


command did not execute successfully: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustdoc" "--target" "wasm32-unknown-unknown" "-Zbinary-dep-depinfo" "-j" "5" "-v" "-v" "--release" "--locked" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/library/test/Cargo.toml" "-p" "std" "-Zskip-rustdoc-fingerprint" "--" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.61.0" "--index-page" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md"
expected success, got: exit status: 101


Traceback (most recent call last):
  File "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/./x.py", line 27, in <module>
    bootstrap.main()
  File "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/bootstrap/bootstrap.py", line 1325, in main
    bootstrap(help_triggered)
  File "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/bootstrap/bootstrap.py", line 1311, in bootstrap
    run(args, env=env, verbose=build.verbose, is_bootstrap=True)
  File "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/bootstrap/bootstrap.py", line 185, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/bootstrap/debug/bootstrap install -vv --config=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/config.toml -j5

config.toml:

changelog-seen = 2
[llvm]
download-ci-llvm = false
optimize = true
release-debuginfo = false
assertions = false
ninja = true
targets = "X86;Mips;NVPTX;RISCV;BPF;AArch64;WebAssembly"
experimental-targets = ""
link-shared = false

[build]
build-stage = 2
test-stage = 2
doc-stage = 2
build = "x86_64-unknown-linux-gnu"
host = ["x86_64-unknown-linux-gnu"]
target = ["i686-unknown-linux-gnu","x86_64-unknown-linux-gnu","wasm32-unknown-unknown"]
docs = true
compiler-docs = false
submodules = false
python = "python3.10"
locked-deps = true
vendor = false
extended = true
tools = ["analysis","src","rust-analyzer","rustfmt","rls","miri","clippy","cargo",]
verbose = 2
sanitizers = true
profiler = false
cargo-native-static = false
[install]
prefix = "/usr/lib/rust/9999"
sysconfdir = "etc"
docdir = "share/doc/rust"
bindir = "bin"
libdir = "lib"
mandir = "share/man"
[rust]
# https://github.com/rust-lang/rust/issues/54872
codegen-units-std = 1
optimize = true
debug = false
debug-assertions = false
debug-assertions-std = false
debuginfo-level = 0
debuginfo-level-rustc = 0
debuginfo-level-std = 0
debuginfo-level-tools = 0
debuginfo-level-tests = 0
backtrace = true
incremental = false
default-linker = "x86_64-pc-linux-gnu-gcc"
parallel-compiler = false
description = "gentoo"
rpath = false
verbose-tests = true
optimize-tests = true
codegen-tests = true
dist-src = false
remap-debuginfo = true
ignore-git = false
lld = true
# only deny warnings if doc+wasm are NOT requested, documenting stage0 wasm std fails without it
# https://github.com/rust-lang/rust/issues/74976
# https://github.com/rust-lang/rust/issues/76526
deny-warnings = false
backtrace-on-ice = true
jemalloc = false
[dist]
src-tarball = false
compression-formats = ["xz"]
[target.i686-unknown-linux-gnu]
ar = "x86_64-pc-linux-gnu-ar"
cc = "x86_64-pc-linux-gnu-gcc"
cxx = "x86_64-pc-linux-gnu-g++"
linker = "x86_64-pc-linux-gnu-gcc"
ranlib = "x86_64-pc-linux-gnu-ranlib"
[target.x86_64-unknown-linux-gnu]
ar = "x86_64-pc-linux-gnu-ar"
cc = "x86_64-pc-linux-gnu-gcc"
cxx = "x86_64-pc-linux-gnu-g++"
linker = "x86_64-pc-linux-gnu-gcc"
ranlib = "x86_64-pc-linux-gnu-ranlib"
[target.wasm32-unknown-unknown]
linker = "rust-lld"

@o01eg
Copy link
Contributor Author

o01eg commented Apr 10, 2022

Looks like it was broken in #88794

Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Apr 11, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Apr 12, 2022
@bors bors closed this as completed in cdbdf1e Apr 12, 2022
workingjubilee pushed a commit to tcdi/postgrestd that referenced this issue Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug. O-wasm Target: WASM (WebAssembly), http://webassembly.org/ T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants