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

docs: documentation fails to build due to our attempting to include the interpreter in the binary #69

Open
nagisa opened this issue Jun 6, 2023 · 0 comments

Comments

@nagisa
Copy link
Collaborator

nagisa commented Jun 6, 2023

# rustc version
rustc 1.72.0-nightly (f0411ffce 2023-05-30)
# docs.rs version
docsrs 0.6.0 (a5028966 2023-05-14)

# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/finite-wasm-0.5.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/finite-wasm-0.5.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "3" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"--cfg\", \"finite_wasm_docs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20230530-1.72.0-nightly-f0411ffce\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--disable-per-crate-search\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j3" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 0fc330ef6e68788386d14bb4c3c4230e347cd2229eb0423e54074dc62caf0f10
[INFO] running `Command { std: "docker" "start" "-a" "0fc330ef6e68788386d14bb4c3c4230e347cd2229eb0423e54074dc62caf0f10", kill_on_drop: false }`
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting finite-wasm v0.5.0 (/opt/rustwide/workdir)
[INFO] [stderr] error: couldn't read src/wast_tests/../../interpreter/wasm: No such file or directory (os error 2)
[INFO] [stderr]    --> src/wast_tests/test.rs:542:43
[INFO] [stderr]     |
[INFO] [stderr] 542 |         static INTERPRETER_BYTES: &[u8] = include_bytes!("../../interpreter/wasm");
[INFO] [stderr]     |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] error: could not document `finite-wasm`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustdoc --edition=2021 --crate-type lib --crate-name finite_wasm src/lib.rs --target x86_64-unknown-linux-gnu -o /opt/rustwide/target/x86_64-unknown-linux-gnu/doc --cfg 'feature="atoi"' --cfg 'feature="instrument"' --cfg 'feature="lazy_static"' --cfg 'feature="libc"' --cfg 'feature="tempfile"' --cfg 'feature="wasm-encoder"' --cfg 'feature="wast"' --cfg 'feature="wast-tests"' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=d2d93e68f2e5640e -L dependency=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/opt/rustwide/target/debug/deps --extern atoi=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libatoi-1a4c6648c7198f37.rmeta --extern bitvec=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libbitvec-3eef96405099eccf.rmeta --extern dissimilar=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libdissimilar-6c3e88183a099e20.rmeta --extern lazy_static=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/liblazy_static-3af9a05fd908bee1.rmeta --extern libc=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/liblibc-bd786b6d6d410788.rmeta --extern num_traits=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libnum_traits-78de1e256cef27bb.rmeta --extern prefix_sum_vec=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libprefix_sum_vec-f5a3324073749bb8.rmeta --extern tempfile=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libtempfile-4c501704760b788a.rmeta --extern thiserror=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libthiserror-86c3904fdceb8663.rmeta --extern wasm_encoder=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libwasm_encoder-d62a2d802d31ca28.rmeta --extern wasmparser=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libwasmparser-5d9d544274d20208.rmeta --extern wasmprinter=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libwasmprinter-124abecb6b319f68.rmeta --extern wast=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/deps/libwast-958d93f068c8be50.rmeta --extern-html-root-url 'atoi=https://docs.rs/atoi/2.0.0/x86_64-unknown-linux-gnu' --extern-html-root-url 'bitvec=https://docs.rs/bitvec/1.0.1/x86_64-unknown-linux-gnu' --extern-html-root-url 'dissimilar=https://docs.rs/dissimilar/1.0.6/x86_64-unknown-linux-gnu' --extern-html-root-url 'lazy_static=https://docs.rs/lazy_static/1.4.0/x86_64-unknown-linux-gnu' --extern-html-root-url 'libc=https://docs.rs/libc/0.2.144/x86_64-unknown-linux-gnu' --extern-html-root-url 'num_traits=https://docs.rs/num-traits/0.2.15/x86_64-unknown-linux-gnu' --extern-html-root-url 'prefix_sum_vec=https://docs.rs/prefix-sum-vec/0.1.2/x86_64-unknown-linux-gnu' --extern-html-root-url 'tempfile=https://docs.rs/tempfile/3.5.0/x86_64-unknown-linux-gnu' --extern-html-root-url 'thiserror=https://docs.rs/thiserror/1.0.40/x86_64-unknown-linux-gnu' --extern-html-root-url 'wasm_encoder=https://docs.rs/wasm-encoder/0.27.0/x86_64-unknown-linux-gnu' --extern-html-root-url 'wasmparser=https://docs.rs/wasmparser/0.105.0/x86_64-unknown-linux-gnu' --extern-html-root-url 'wasmprinter=https://docs.rs/wasmprinter/0.2.57/x86_64-unknown-linux-gnu' --extern-html-root-url 'wast=https://docs.rs/wast/52.0.3/x86_64-unknown-linux-gnu' -Zunstable-options --cfg finite_wasm_docs -Z unstable-options --emit=invocation-specific --resource-suffix -20230530-1.72.0-nightly-f0411ffce --static-root-path /-/rustdoc.static/ --cap-lints warn --disable-per-crate-search --extern-html-root-takes-precedence --crate-version 0.5.0` (exit status: 1)
[INFO] running `Command { std: "docker" "inspect" "0fc330ef6e68788386d14bb4c3c4230e347cd2229eb0423e54074dc62caf0f10", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0fc330ef6e68788386d14bb4c3c4230e347cd2229eb0423e54074dc62caf0f10", kill_on_drop: false }`
[INFO] [stdout] 0fc330ef6e68788386d14bb4c3c4230e347cd2229eb0423e54074dc62caf0f10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant