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

Bazel CI: rules_rust is broken in Bazel@HEAD downstream #1618

Closed
SalmaSamy opened this issue Nov 1, 2022 · 2 comments · Fixed by #1619
Closed

Bazel CI: rules_rust is broken in Bazel@HEAD downstream #1618

SalmaSamy opened this issue Nov 1, 2022 · 2 comments · Fixed by #1619
Labels

Comments

@SalmaSamy
Copy link

rules_rust is failing in the downstream with the following error:

ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/24b6159646937fb03d5380a181c473a3/external/crates_vendor_pkgs__hyper-0.14.22/BUILD.bazel:27:13: Compiling Rust rlib hyper v0.14.22 (68 files) failed: (Exit 1): process_wrapper failed: error executing command (from target @crates_vendor_pkgs__hyper-0.14.22//:hyper)
--
  | (cd /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/24b6159646937fb03d5380a181c473a3/sandbox/linux-sandbox/908/execroot/examples && \
  | exec env - \
  | CARGO_CFG_TARGET_ARCH=x86_64 \
  | CARGO_CFG_TARGET_OS=linux \
  | CARGO_CRATE_NAME=hyper \
  | CARGO_MANIFEST_DIR='${pwd}/external/crates_vendor_pkgs__hyper-0.14.22' \
  | CARGO_PKG_AUTHORS='' \
  | CARGO_PKG_DESCRIPTION='' \
  | CARGO_PKG_HOMEPAGE='' \
  | CARGO_PKG_NAME=hyper \
  | CARGO_PKG_VERSION=0.14.22 \
  | CARGO_PKG_VERSION_MAJOR=0 \
  | CARGO_PKG_VERSION_MINOR=14 \
  | CARGO_PKG_VERSION_PATCH=22 \
  | CARGO_PKG_VERSION_PRE='' \
  | SYSROOT=bazel-out/k8-fastbuild/bin/external/rust_linux_x86_64__x86_64-unknown-linux-gnu_tools/rust_toolchain \
  | bazel-out/k8-opt-exec-2B5CBBC6/bin/external/rules_rust/util/process_wrapper/process_wrapper --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-channel-0.3.25/futures-channel_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-core-0.3.25/futures-core_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-task-0.3.25/futures-task_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-util-0.3.25/futures-util_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__indexmap-1.9.1/indexmap_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__slab-0.4.7/slab_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__libc-0.2.137/libc_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__memchr-2.5.0/memchr_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__log-0.4.17/log_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__lock_api-0.4.9/lock_api_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__parking_lot_core-0.8.5/parking_lot_core_build_script.linksearchpaths --arg-file bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__httparse-1.8.0/httparse_build_script.linksearchpaths --subst 'pwd=${pwd}' -- bazel-out/k8-fastbuild/bin/external/rust_linux_x86_64__x86_64-unknown-linux-gnu_tools/rust_toolchain/bin/rustc external/crates_vendor_pkgs__hyper-0.14.22/src/lib.rs '--crate-name=hyper' '--crate-type=rlib' '--error-format=human' '--codegen=metadata=-2920272719' '--codegen=extra-filename=-2920272719' '--out-dir=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__hyper-0.14.22' '--codegen=opt-level=0' '--codegen=debuginfo=0' '--remap-path-prefix=${pwd}=' '--emit=dep-info,link' '--color=always' '--target=x86_64-unknown-linux-gnu' --cfg 'feature="client"' --cfg 'feature="default"' --cfg 'feature="full"' --cfg 'feature="h2"' --cfg 'feature="http1"' --cfg 'feature="http2"' --cfg 'feature="runtime"' --cfg 'feature="server"' --cfg 'feature="socket2"' --cfg 'feature="stream"' --cfg 'feature="tcp"' -L bazel-out/k8-fastbuild/bin/external/rust_linux_x86_64__x86_64-unknown-linux-gnu_tools/rust_toolchain/lib/rustlib/x86_64-unknown-linux-gnu/lib '--cap-lints=allow' '--edition=2018' '--extern=bytes=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__bytes-1.2.1/libbytes-2216216754.rlib' '--extern=futures_channel=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-channel-0.3.25/libfutures_channel-2133884275.rlib' '--extern=futures_core=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-core-0.3.25/libfutures_core-1279010739.rlib' '--extern=futures_util=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-util-0.3.25/libfutures_util-1676697354.rlib' '--extern=h2=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__h2-0.3.15/libh2-287540419.rlib' '--extern=http=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__http-0.2.8/libhttp-242735641.rlib' '--extern=http_body=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__http-body-0.4.5/libhttp_body-2577692540.rlib' '--extern=httparse=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__httparse-1.8.0/libhttparse-803218586.rlib' '--extern=httpdate=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__httpdate-1.0.2/libhttpdate-435375815.rlib' '--extern=itoa=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__itoa-1.0.4/libitoa-2049230972.rlib' '--extern=pin_project_lite=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__pin-project-lite-0.2.9/libpin_project_lite-3013176777.rlib' '--extern=socket2=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__socket2-0.4.7/libsocket2-867556962.rlib' '--extern=tokio=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__tokio-1.16.1/libtokio-2350213707.rlib' '--extern=tower_service=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__tower-service-0.3.2/libtower_service-599611970.rlib' '--extern=tracing=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__tracing-0.1.37/libtracing-3384314625.rlib' '--extern=want=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__want-0.3.0/libwant-126216851.rlib' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__bytes-1.2.1' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-core-0.3.25' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-channel-0.3.25' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-task-0.3.25' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__pin-project-lite-0.2.9' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__pin-utils-0.1.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-util-0.3.25' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__fnv-1.0.7' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__futures-sink-0.3.25' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__itoa-1.0.4' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__http-0.2.8' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__hashbrown-0.12.3' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__indexmap-1.9.1' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__slab-0.4.7' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__libc-0.2.137' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__signal-hook-registry-1.4.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__memchr-2.5.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__cfg-if-1.0.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__log-0.4.17' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__mio-0.7.14' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__num_cpus-1.13.1' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__once_cell-1.16.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__instant-0.1.12' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__scopeguard-1.1.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__lock_api-0.4.9' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__smallvec-1.10.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__parking_lot_core-0.8.5' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__parking_lot-0.11.2' '-Ldependency=bazel-out/k8-opt-exec-2B5CBBC6/bin/external/crates_vendor_pkgs__tokio-macros-1.8.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__tokio-1.16.1' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__tracing-core-0.1.30' '-Ldependency=bazel-out/k8-opt-exec-2B5CBBC6/bin/external/crates_vendor_pkgs__tracing-attributes-0.1.23' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__tracing-0.1.37' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__tokio-util-0.7.2' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__h2-0.3.15' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__http-body-0.4.5' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__httparse-1.8.0' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__httpdate-1.0.2' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__socket2-0.4.7' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__tower-service-0.3.2' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__try-lock-0.2.3' '-Ldependency=bazel-out/k8-fastbuild/bin/external/crates_vendor_pkgs__want-0.3.0')
  | # Configuration: 0751b877c9d49c504822af44099c70eb1bb2260dc4412100a4660c5d625ef0a0
  | # Execution platform: @local_config_platform//:host
  |  
  | Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
  | error[E0599]: no method named `with_interval` found for struct `TcpKeepalive` in the current scope
  | --> external/crates_vendor_pkgs__hyper-0.14.22/src/server/tcp.rs:59:12
  | \|
  | 59 \|         ka.with_interval(interval)
  | \|            ^^^^^^^^^^^^^ method not found in `TcpKeepalive`
  |  
  | error[E0599]: no method named `with_retries` found for struct `TcpKeepalive` in the current scope
  | --> external/crates_vendor_pkgs__hyper-0.14.22/src/server/tcp.rs:89:12
  | \|
  | 89 \|         ka.with_retries(retries)
  | \|            ^^^^^^^^^^^^ help: there is an associated function with a similar name: `with_time`
  |  
  | error: aborting due to 2 previous errors

@SalmaSamy SalmaSamy added the bug label Nov 1, 2022
@SalmaSamy
Copy link
Author

/cc @scentini

@rdelfin
Copy link

rdelfin commented Nov 1, 2022

I'm seeing this error on my PR, #1616. You can see the failure on CI there too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants