laboroai/border

Fails to create doc of border-py-eym-env 0.0.5

Closed this issue · 1 comments

# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/border-py-gym-env-0.0.5/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/border-py-gym-env-0.0.5/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20220124-1.60.0-nightly-51126be1b\", \"--static-root-path\", \"/\", \"--cap-lints\", \"warn\", \"--disable-per-crate-search\"]" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-j3" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stdout] 5f5e96f54646355243d606ed44d32a247a3e39db3428041c1144a6e489145a43
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "5f5e96f54646355243d606ed44d32a247a3e39db3428041c1144a6e489145a43", kill_on_drop: false }`
[INFO] [stderr]     Checking numpy v0.14.1
[INFO] [stderr]    Compiling torch-sys v0.5.0
[INFO] [stderr]     Checking border-core v0.0.5
[INFO] [stderr] The following warnings were emitted during compilation:
[INFO] [stderr] 
[INFO] [stderr] warning: libtch/torch_api.cpp:1:9: fatal error: torch/csrc/autograd/engine.h: No such file or directory
[INFO] [stderr] warning:     1 | #include<torch/csrc/autograd/engine.h>
[INFO] [stderr] warning:       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stderr] warning: compilation terminated.
[INFO] [stderr] 
[INFO] [stderr] error: failed to run custom build command for `torch-sys v0.5.0`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/torch-sys-e5ee8d1f43ffffa3/build-script-build` (exit status: 1)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   cargo:rerun-if-env-changed=TORCH_CUDA_VERSION
[INFO] [stderr]   cargo:rerun-if-env-changed=LIBTORCH
[INFO] [stderr]   cargo:rustc-link-search=native=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtorch/libtorch/lib
[INFO] [stderr]   cargo:rerun-if-changed=libtch/torch_api.cpp
[INFO] [stderr]   cargo:rerun-if-changed=libtch/torch_api.h
[INFO] [stderr]   cargo:rerun-if-changed=libtch/torch_api_generated.cpp.h
[INFO] [stderr]   cargo:rerun-if-changed=libtch/torch_api_generated.h
[INFO] [stderr]   cargo:rerun-if-changed=libtch/stb_image_write.h
[INFO] [stderr]   cargo:rerun-if-changed=libtch/stb_image_resize.h
[INFO] [stderr]   cargo:rerun-if-changed=libtch/stb_image.h
[INFO] [stderr]   cargo:rerun-if-env-changed=LIBTORCH_CXX11_ABI
[INFO] [stderr]   TARGET = Some("x86_64-unknown-linux-gnu")
[INFO] [stderr]   OPT_LEVEL = Some("0")
[INFO] [stderr]   HOST = Some("x86_64-unknown-linux-gnu")
[INFO] [stderr]   CXX_x86_64-unknown-linux-gnu = None
[INFO] [stderr]   CXX_x86_64_unknown_linux_gnu = None
[INFO] [stderr]   HOST_CXX = None
[INFO] [stderr]   CXX = None
[INFO] [stderr]   CXXFLAGS_x86_64-unknown-linux-gnu = None
[INFO] [stderr]   CXXFLAGS_x86_64_unknown_linux_gnu = None
[INFO] [stderr]   HOST_CXXFLAGS = None
[INFO] [stderr]   CXXFLAGS = None
[INFO] [stderr]   CRATE_CC_NO_DEFAULTS = None
[INFO] [stderr]   DEBUG = Some("true")
[INFO] [stderr]   CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
[INFO] [stderr]   running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtorch/libtorch/include" "-I" "/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtorch/libtorch/include/torch/csrc/api/include" "-Wl,-rpath=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtorch/libtorch/lib" "-std=c++14" "-D_GLIBCXX_USE_CXX11_ABI=1" "-o" "/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtch/torch_api.o" "-c" "libtch/torch_api.cpp"
[INFO] [stderr]   cargo:warning=libtch/torch_api.cpp:1:9: fatal error: torch/csrc/autograd/engine.h: No such file or directory
[INFO] [stderr]   cargo:warning=    1 | #include<torch/csrc/autograd/engine.h>
[INFO] [stderr]   cargo:warning=      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stderr]   cargo:warning=compilation terminated.
[INFO] [stderr]   exit status: 1
[INFO] [stderr] 
[INFO] [stderr]   --- stderr
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr]   error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtorch/libtorch/include" "-I" "/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtorch/libtorch/include/torch/csrc/api/include" "-Wl,-rpath=/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtorch/libtorch/lib" "-std=c++14" "-D_GLIBCXX_USE_CXX11_ABI=1" "-o" "/opt/rustwide/target/x86_64-unknown-linux-gnu/debug/build/torch-sys-0a078a45481dbdb4/out/libtch/torch_api.o" "-c" "libtch/torch_api.cpp" with args "c++" did not execute successfully (status code exit status: 1).
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "5f5e96f54646355243d606ed44d32a247a3e39db3428041c1144a6e489145a43", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5f5e96f54646355243d606ed44d32a247a3e39db3428041c1144a6e489145a43", kill_on_drop: false }`
[INFO] [stdout] 5f5e96f54646355243d606ed44d32a247a3e39db3428041c1144a6e489145a43

May require doc-only feature in Cargo.toml.