-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rustdoc fails to build wasm32 target documentation #76526
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
What about to use #43348 to make other platforms available when building rust from sources? |
Closes: #503 Signed-off-by: Mikhail Pukhlikov <cynede@gentoo.org>
Same issue as in #74976 (comment). Relevant code: rust/library/std/src/sys/mod.rs Lines 66 to 72 in 5b04bbf
Maybe it's as simple as removing that |
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.
It is not. Errors
|
- 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
- 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]
- 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
- 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]
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>
Same error on 4484165 (still I was able to compile 5e57faa)
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" |
Looks like it was broken in #88794 |
Fix documentation for wasm32-unknown-unknown Fixes rust-lang#76526 (comment)
Fix documentation for wasm32-unknown-unknown Fixes rust-lang#76526 (comment)
Fix documentation for wasm32-unknown-unknown Fixes rust-lang/rust#76526 (comment)
When I build rust from
master
branch I catch error on documentingstd
for wasm32 target:config.toml
Part of build log:
Failing PR: #75501
The text was updated successfully, but these errors were encountered: