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.rs failed to build revm-3.5.0 #767

Closed
z80dev opened this issue Oct 3, 2023 · 3 comments
Closed

docs.rs failed to build revm-3.5.0 #767

z80dev opened this issue Oct 3, 2023 · 3 comments

Comments

@z80dev
Copy link

z80dev commented Oct 3, 2023

Screenshot 2023-10-03 at 5 24 38 PM

Looks like docs.rs failed to build 3.5.0

I think something in the revm-primitives build process is trying to write some files to the file system which is read-only

build logs

available here

# rustc version
rustc 1.74.0-nightly (3223b0b5e 2023-09-20)
# docs.rs version
docsrs 0.6.0 (4635eb74 2023-09-25)

# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/revm-3.5.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/revm-3.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" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2023-09-21" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20230920-1.74.0-nightly-3223b0b5e\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--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" "-j6" "--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] 1eb349922e1942eb1383e6990db1039d99960a8e7064c37d02d90cf7afdfc3ac
[INFO] running `Command { std: "docker" "start" "-a" "1eb349922e1942eb1383e6990db1039d99960a8e7064c37d02d90cf7afdfc3ac", kill_on_drop: false }`
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling alloy-rlp-derive v0.3.3
[INFO] [stderr]    Compiling c-kzg v0.1.1
[INFO] [stderr]    Compiling derive_more v0.99.17
[INFO] [stderr]    Compiling auto_impl v1.1.0
[INFO] [stderr]    Compiling revm-primitives v1.3.0
[INFO] [stderr] error: failed to run custom build command for `revm-primitives v1.3.0`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/revm-primitives-78ab0d65540cc3e0/build-script-build` (exit status: 101)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   cargo:rerun-if-changed=src/kzg/trusted_setup.txt
[INFO] [stderr] 
[INFO] [stderr]   --- stderr
[INFO] [stderr]   thread 'main' panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/revm-primitives-1.3.0/build.rs:64:73:
[INFO] [stderr]   called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }
[INFO] [stderr]   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "1eb349922e1942eb1383e6990db1039d99960a8e7064c37d02d90cf7afdfc3ac", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1eb349922e1942eb1383e6990db1039d99960a8e7064c37d02d90cf7afdfc3ac", kill_on_drop: false }`
[INFO] [stdout] 1eb349922e1942eb1383e6990db1039d99960a8e7064c37d02d90cf7afdfc3ac
@DaniPopes
Copy link
Collaborator

Fixed by #741, the build script should not be running outside of this repo

@rakita
Copy link
Member

rakita commented Oct 8, 2023

PR merged. Until release you can access docs here: https://bluealloy.github.io/revm/docs/revm_primitives/index.html

@Sabnock01
Copy link
Contributor

Can this issue be closed?

@rakita rakita closed this as completed Nov 8, 2023
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

4 participants