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

Failed build errors while compiling crates #413

Open
ais2397 opened this issue May 8, 2023 · 3 comments
Open

Failed build errors while compiling crates #413

ais2397 opened this issue May 8, 2023 · 3 comments

Comments

@ais2397
Copy link

ais2397 commented May 8, 2023

Compilation of most of the crates fail (which have dependencies/do an incremental build) while trying to do an execute command on Ubuntu:

cargo run --release -- compile

cargo (version): cargo 1.71.0-nightly (9e586fbd8 2023-04-25)
rustc (version): rustc 1.71.0-nightly (9ecda8de8 2023-04-30)

Incremental build fails as the folder inside docker container has read-only permissions.

Example log for a4-core-0.0.4

[INFO] running Command { std: "docker" "create" "-v" "/mnt/workdisk/workspace/builds/corpus/target:/opt/rustwide/target:rw,Z" "-v" "/mnt/workdisk/workspace/builds/corpus/source:/opt/rustwide/workdir:ro,Z" "-v" "/mnt/workdisk/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/mnt/workdisk/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "RUST_BACKTRACE=1" "-e" "SYSROOT=/opt/rustwide/cargo-home/sysroot" "-e" "RUSTC=/opt/rustwide/cargo-home/rustc" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "4000000000" "--user" "1000:1000" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5ff2268d62e97bff2cde7d5815dd6ed5b47097566f13b8d0ca110b04b60e07ed" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2023-05-01" "check" "--all" "--frozen", kill_on_drop: false }
[INFO] [stdout] 302e842301a3d14122bf8af7e41fdef270283bd5776a4d36a72186d2ffb8a40b
[INFO] running Command { std: "docker" "start" "-a" "302e842301a3d14122bf8af7e41fdef270283bd5776a4d36a72186d2ffb8a40b", kill_on_drop: false }
[INFO] [stderr] Compiling proc-macro2 v1.0.56
[INFO] [stderr] Compiling semver v1.0.17
[INFO] [stderr] Compiling unicode-ident v1.0.8
[INFO] [stderr] Compiling quote v1.0.26
[INFO] [stderr] Compiling autocfg v1.1.0
[INFO] [stderr] Compiling serde_derive v1.0.162
[INFO] [stderr] Checking scopeguard v1.1.0
[INFO] [stderr] Compiling serde v1.0.162
[INFO] [stderr] Checking byteorder v1.4.3
[INFO] [stderr] Checking stable_deref_trait v1.2.0
[INFO] [stderr] Checking postcard-cobs v0.1.5-pre
[INFO] [stderr] error: could not create incremental compilation crate directory on/build_script_build-3jzmlfhb9c0sf: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not create incremental compilation crate directory on/build_script_build-2thk4anx2mlra: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not create incremental compilation crate directory on/build_script_build-1p3bbaxndi6lu: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not create incremental compilation crate directory on/autocfg-1383tcteq4hac: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not create incremental compilation crate directory on/build_script_build-2kreamiv9p6e0: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not create incremental compilation crate directory on/scopeguard-3mk5hhxwtma61: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not create incremental compilation crate directory on/unicode_ident-hk3mhpu40sz8: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not compile semver (build script) due to previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile proc-macro2 (build script) due to previous error
[INFO] [stderr] error: could not compile autocfg (lib) due to previous error
[INFO] [stderr] error: could not compile quote (build script) due to previous error
[INFO] [stderr] error: could not compile serde (build script) due to previous error
[INFO] [stderr] error: could not compile unicode-ident (lib) due to previous error
[INFO] [stderr] error: could not compile scopeguard (lib) due to previous error
[INFO] [stderr] error: could not create incremental compilation crate directory on/postcard_cobs-17w04ayoj1wv9: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not create incremental compilation crate directory on/build_script_build-315lcg2sg9h0h: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not create incremental compilation crate directory on/stable_deref_trait-1ci4ayhx9yi3j: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not compile serde_derive (build script) due to previous error
[INFO] [stderr] error: could not compile postcard-cobs (lib) due to previous error
[INFO] [stderr] error: could not compile stable_deref_trait (lib) due to previous error
[INFO] [stderr] error: could not create incremental compilation crate directory on/byteorder-1j0lx1kttsn67: Read-only file system (os error 30)
[INFO] [stderr]
[INFO] [stderr] error: could not compile byteorder (lib) due to previous error
[INFO] running Command { std: "docker" "inspect" "302e842301a3d14122bf8af7e41fdef270283bd5776a4d36a72186d2ffb8a40b", kill_on_drop: false }
[INFO] running Command { std: "docker" "rm" "-f" "302e842301a3d14122bf8af7e41fdef270283bd5776a4d36a72186d2ffb8a40b", kill_on_drop: false }
[INFO] [stdout] 302e842301a3d14122bf8af7e41fdef270283bd5776a4d36a72186d2ffb8a40b

@ais2397 ais2397 changed the title Errors while compiling packages Failed build errors while compiling crates May 8, 2023
@vakaras
Copy link
Collaborator

vakaras commented May 8, 2023

Thank you for reporting. Unfortunately, I will not have time to look into this any time soon.

@ais2397
Copy link
Author

ais2397 commented May 8, 2023

Hi @vakaras , would it be possible for you to tell me if your build system supports incremental builds or is it something we would have to add support for? We are using this tool as a part of our research survey and are interested to know whether this is by design or not.

I see the support being added here #382

@vakaras
Copy link
Collaborator

vakaras commented May 8, 2023

Incremental builds should work. At least, I do not see any reason why it should not work assuming rustwide supports that.

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

2 participants