Repository: kythe/kythe (language: rust)

Issue:
kythe build failed on Mac OS
ERROR: /kythe/kythe/rust/indexer/BUILD:75:18: RustExtract kythe/rust/indexer/comment_test_units.kzip failed: (Aborted): sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel/da8af0d330b417c2bcc653003c0389d3/sandbox/darwin-sandbox/8712/execroot/io_kythe && \
  exec env - \
    KYTHE_CORPUS=test_corpus \
    LD_LIBRARY_PATH=external/rust_darwin_x86_64/lib \
    TMPDIR=/var/folders/ph/81vkj_691pq57nbrqyk154x40000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel/da8af0d330b417c2bcc653003c0389d3/sandbox/darwin-sandbox/8712/sandbox.sb /var/tmp/_bazel/install/97cf8d40e3de7fca7ef885fa763bde13/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/host/bin/kythe/rust/extractor/extractor '--extra_action=bazel-out/darwin-fastbuild/bin/kythe/rust/indexer/comment_test_units.xa' '--output=bazel-out/darwin-fastbuild/bin/kythe/rust/indexer/comment_test_units.kzip') sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel/da8af0d330b417c2bcc653003c0389d3/sandbox/darwin-sandbox/8712/execroot/io_kythe && \
  exec env - \
    KYTHE_CORPUS=test_corpus \
    LD_LIBRARY_PATH=external/rust_darwin_x86_64/lib \
    TMPDIR=/var/folders/ph/81vkj_691pq57nbrqyk154x40000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel/da8af0d330b417c2bcc653003c0389d3/sandbox/darwin-sandbox/8712/sandbox.sb /var/tmp/_bazel/install/97cf8d40e3de7fca7ef885fa763bde13/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/host/bin/kythe/rust/extractor/extractor '--extra_action=bazel-out/darwin-fastbuild/bin/kythe/rust/indexer/comment_test_units.xa' '--output=bazel-out/darwin-fastbuild/bin/kythe/rust/indexer/comment_test_units.kzip')
dyld: Library not loaded: @rpath/librustc_driver-a739e8c4f006bdc3.dylib
  Referenced from: /private/var/tmp/_bazel_da8af0d330b417c2bcc653003c0389d3/sandbox/darwin-sandbox/8712/execroot/io_kythe/bazel-out/host/bin/kythe/rust/extractor/extractor
  Reason: image not found
INFO: Elapsed time: 4280.265s, Critical Path: 244.19s
INFO: 10312 processes: 1611 internal, 8534 darwin-sandbox, 167 worker.
FAILED: Build did NOT complete successfully


Discussion / hints:
I'm not able to reproduce this locally on my macOS machine running `bazel test //kythe/rust/indexer/...`. Are you running at HEAD?
> I'm not able to reproduce this locally on my macOS machine running `bazel test //kythe/rust/indexer/...`. Are you running at HEAD?

We might need to add Rust toolchain install instructions to the [macOS Getting Started](https://kythe.io/getting-started-macos) section? (Or at least as an optional "if you plan to build against Rust" bullet maybe)
> We might need to add Rust toolchain install instructions to the [macOS Getting Started](https://kythe.io/getting-started-macos) section? (Or at least as an optional "if you plan to build against Rust" bullet maybe)

The Rust toolchain is downloaded by Bazel though, and the extraction script utilizes shared libraries from the downloaded toolchain, not a local toolchain.

The provided log message makes it look like the code is out of date because I remember seeing this log before I fixed the bug.
> > We might need to add Rust toolchain install instructions to the [macOS Getting Started](https://kythe.io/getting-started-macos) section? (Or at least as an optional "if you plan to build against Rust" bullet maybe)
> 
> The Rust toolchain is downloaded by Bazel though, and the extraction script utilizes shared libraries from the downloaded toolchain, not a local toolchain.
> 
> The provided log message makes it look like the code is out of date because I remember seeing this log before I fixed the bug.

This errors log message occurred at version v0.0.54 tag on macOS build，fixed the bug on the master branch?
      
  

 The bug is fixed on master. I can create another release for you on Monday morning.
  
  

  
  
>   
> On Oct 15, 2021 at 19:03,  <BordenKi ***@***.***)>  wrote:
>   
>   
>   
>
>
>
>   
> >   
> > >   
> > >
> > > We might need to add Rust toolchain install instructions to the  macOS Getting Started (https://kythe.io/getting-started-macos)  section? (Or at least as an optional "if you plan to build against Rust" bullet maybe)
> > >
> > >   
> >   
> >
> > The Rust toolchain is downloaded by Bazel though, and the extraction script utilizes shared libraries from the downloaded toolchain, not a local toolchain.
> >
> >   
> >
> > The provided log message makes it look like the code is out of date because I remember seeing this log before I fixed the bug.
> >
> >   
>   
>
> This errors log message occurred at version v0.0.54 tag on macOS build，fixed the bug on the master branch?
>
>   
>
> —
>  You are receiving this because you were assigned.
>  Reply to this email directly,   view it on GitHub (https://github.com/kythe/kythe/issues/5102#issuecomment-944838496), or   unsubscribe (https://github.com/notifications/unsubscribe-auth/APPKRXPBWQ7CH2GQ4AOSUY3UHDMP3ANCNFSM5F67WE4A).
>
>   
>   
  
  
       
> The bug is fixed on master. I can create another release for you on Monday morning.
> […](#)
> On Oct 15, 2021 at 19:03, <BordenKi ***@***.***)> wrote: > > > > > > > We might need to add Rust toolchain install instructions to the macOS Getting Started (https://kythe.io/getting-started-macos) section? (Or at least as an optional "if you plan to build against Rust" bullet maybe) > > > > > > > The Rust toolchain is downloaded by Bazel though, and the extraction script utilizes shared libraries from the downloaded toolchain, not a local toolchain. > > > > The provided log message makes it look like the code is out of date because I remember seeing this log before I fixed the bug. > > This errors log message occurred at version v0.0.54 tag on macOS build，fixed the bug on the master branch? — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub ([#5102 (comment)](https://github.com/kythe/kythe/issues/5102#issuecomment-944838496)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/APPKRXPBWQ7CH2GQ4AOSUY3UHDMP3ANCNFSM5F67WE4A).

can you create macOS release version? thank for you 
> > The bug is fixed on master. I can create another release for you on Monday morning.
> > […](#)
> > On Oct 15, 2021 at 19:03, <BordenKi _**@**_.***)> wrote: > > > > > > > We might need to add Rust toolchain install instructions to the macOS Getting Started (https://kythe.io/getting-started-macos) section? (Or at least as an optional "if you plan to build against Rust" bullet maybe) > > > > > > > The Rust toolchain is downloaded by Bazel though, and the extraction script utilizes shared libraries from the downloaded toolchain, not a local toolchain. > > > > The provided log message makes it look like the code is out of date because I remember seeing this log before I fixed the bug. > > This errors log message occurred at version v0.0.54 tag on macOS build，fixed the bug on the master branch? — You are receiving this because you were assigned. Reply to this email directly, view it on GitHub ([#5102 (comment)](https://github.com/kythe/kythe/issues/5102#issuecomment-944838496)), or unsubscribe (https://github.com/notifications/unsubscribe-auth/APPKRXPBWQ7CH2GQ4AOSUY3UHDMP3ANCNFSM5F67WE4A).
> 
> can you create macOS release version? thank for you

Creating a macOS release is likely infeasible at this time.  We don't presently have a macOS CI build nor do all of the developers have access to a macOS machine from which to build a release.

Fix patch:
diff --git a/RELEASES.md b/RELEASES.md
index b8f1d1a4e3..08f0f57b64 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -1,5 +1,9 @@
 # Release Notes
 
+## [v0.0.55] - 2021-10-18
+
+* Fixes an issue with the Bazel Rust extractor
+
 ## [v0.0.54] - 2021-10-04
 
 fuchsia_extractor has been updated to no longer include .rlib files
@@ -1211,7 +1215,8 @@ https://github.com/kythe/kythe/compare/v0.0.26...v0.0.27
 
 Initial release
 
-[Unreleased] https://github.com/kythe/kythe/compare/v0.0.54...HEAD
+[Unreleased] https://github.com/kythe/kythe/compare/v0.0.55...HEAD
+[v0.0.55] https://github.com/kythe/kythe/compare/v0.0.54...v0.0.55
 [v0.0.54] https://github.com/kythe/kythe/compare/v0.0.53...v0.0.54
 [v0.0.53] https://github.com/kythe/kythe/compare/v0.0.52...v0.0.53
 [v0.0.52] https://github.com/kythe/kythe/compare/v0.0.51...v0.0.52
diff --git a/kythe/release/BUILD b/kythe/release/BUILD
index e7c6a6c6c0..0616672b7c 100644
--- a/kythe/release/BUILD
+++ b/kythe/release/BUILD
@@ -23,7 +23,7 @@ docker_build(
     deps = ["//kythe/release/base"],
 )
 
-release_version = "v0.0.54"
+release_version = "v0.0.55"
 
 genrule(
     name = "release",


Test patch: