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
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- java
- Domaine
- build-system
Piste de recherche
Commencez à src/main/tools/process-wrapper-legacy.cc:80 et reproduisez l’échec avec la commande bazel build --vendor_dir=... indiquée dans le sandbox restreint de la dérivation Nix. Utilisez --sandbox_debug pour inspecter la racine de build conservée et déterminer pourquoi turbine_direct_graal ne peut pas être exécuté. Le travail est terminé lorsque la cause racine et une correction appropriée pour cet environnement sont documentées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Starlark
- Étoiles
- 103
- Forks
- 102
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de bazelbuild/rules_java
-
P4
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
bazelbuild/rules_java#360 · 4 commentaires · 2 réactions ·
-
P4
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
bazelbuild/rules_java#354 · 8 commentaires ·
-
P3 question
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
bazelbuild/rules_java#339 · 1 commentaire ·
-
P4
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
bazelbuild/rules_java#316 · 2 réactions ·
-
P2
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
bazelbuild/rules_java#289 · 1 commentaire ·
Toutes les issues de bazelbuild/rules_java
Issues similaires
-
type/automation type/tech-debt
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
priority: p3
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
googleapis/librarian#7636 ·
-
Update gh-dash to 4.26.0 Ouvertepackage-update
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
oSoWoSo/vOid_Community_repOsitory#147 · 1 commentaire ·
-
Builders
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100