src/main/tools/process-wrapper-legacy.cc:80: "execvp(external/rules_java++toolchains+remote_java_tools_linux/java_tools/turbine_direct_graal, ...)": No such file or directory
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu tại src/main/tools/process-wrapper-legacy.cc:80 và tái hiện lỗi bằng lệnh bazel build --vendor_dir=... đã được báo cáo bên trong sandbox dẫn xuất Nix bị hạn chế. Sử dụng --sandbox_debug để kiểm tra build root được giữ lại và xác định lý do turbine_direct_graal không thể được thực thi. Hoàn tất có nghĩa là ghi lại nguyên nhân gốc và một bản sửa phù hợp cho môi trường này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
https://github.com/bazel-contrib/rules_jvm_external/issues/1451 follow-up,
but this time in the right project repo (hopefully) - if I understand correctly?
In https://github.com/enola-dev/enola/issues/1730#issuecomment-3390839018,
where I'm having (too much...) fun with running a Bazel Java build inside a reproducible Nix package "derivation" build,
when running nix run . on https://github.com/enola-dev/enola/pull/1873/files, the @dotdoom and me are running into:
ERROR: /build/home/.cache/bazel/_bazel_nixbld/c122cde4e9cdfc8e96d0ecdf2a867384/external/rules_jvm_external+/private/tools/java/com/github/bazelbuild/rules_jvm_external/BUILD:3:13: Compiling Java headers external/rules_jvm_external+/private/tools/java/com/github/bazelbuild/rules_jvm_external/librules_jvm_external-hjar.jar (3 source files) [for tool] failed: (Exit 1): turbine_direct_graal failed: error executing Turbine command (from target @@rules_jvm_external+//private/tools/java/com/github/bazelbuild/rules_jvm_external:rules_jvm_external) external/rules_java++toolchains+remote_java_tools_linux/java_tools/turbine_direct_graal '-Dturbine.ctSymPath=external/rules_java++toolchains+local_jdk/lib/ct.sym' --output ... (remaining 30 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging src/main/tools/process-wrapper-legacy.cc:80: "execvp(external/rules_java++toolchains+remote_java_tools_linux/java_tools/turbine_direct_graal, ...)": No such file or directory
Do you have any suggestions on what could be causing this, and how to fix it?
Note that this Nix package "derivation" build is a restricted sandbox, with a controlled PATH,
within which we run bazel build --vendor_dir=...
I'm struggling to fully grasp what the error message above is trying to tell us.
Surely, whatever exactly that turbine_direct_graal binary is "available"? It's presumably something from rules_java, right?
That "No such file or directory" more likely means... like, what? It's perhaps missing a dynamically linked library that it depends on? That may well be missing in that restrictive Nix sandbox environment. Wouldn't it be simpler to make that binary statically linked? (If this is even the root cause; I'm a little bit out of my depth here.)
@meteorcloudy @cushon @fmeum perhaps you have thoughts about this.
- Ngôn ngữ chính
- Starlark
- Star
- 103
- Fork
- 102
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bazelbuild/rules_java
-
P4
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
bazelbuild/rules_java#360 · 4 bình luận · 2 reaction ·
-
P4
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
bazelbuild/rules_java#354 · 8 bình luận ·
-
P3 question
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
bazelbuild/rules_java#339 · 1 bình luận ·
-
P4
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
bazelbuild/rules_java#316 · 2 reaction ·
-
P2
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
bazelbuild/rules_java#289 · 1 bình luận ·
Tất cả issue của bazelbuild/rules_java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
bazel-contrib/rules_go#4726 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
HL7/fhir-ig-publisher#1375 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
area/install-update comp/cli comp/desktop P3 sweeper:risk-compatibility type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
NousResearch/hermes-agent#122386 · 1 bình luận ·