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] Android NDK example failed to build with Bazel@HEAD #501

Open
meteorcloudy opened this issue Sep 13, 2024 · 3 comments
Open

[Bazel CI] Android NDK example failed to build with Bazel@HEAD #501

meteorcloudy opened this issue Sep 13, 2024 · 3 comments

Comments

@meteorcloudy
Copy link
Member

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4122#0191e992-fa17-4c3e-96e8-0e94d6906a6d

(04:14:30) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/3aec4963db403497cf5b24d134045696/external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/dexer/BUILD:9:12: Building external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/dexer/DexFileSplitter.jar (5 source files) and running annotation processors (AutoValueProcessor) [for tool] failed: (Exit 1): java failed: error executing Javac command (from target @@bazel_tools//src/tools/android/java/com/google/devtools/build/android/dexer:DexFileSplitter)
  (cd /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/3aec4963db403497cf5b24d134045696/execroot/_main && \
  exec env - \
    LC_CTYPE=en_US.UTF-8 \
    PATH=/var/lib/buildkite-agent/.cache/bazelisk/local/-tmp-tmp12480vun-bazel/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
  external/remotejdk21_linux/bin/java '--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.resources=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED' '--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED' '--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED' '--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED' '--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED' '--add-opens=java.base/java.nio=ALL-UNNAMED' '--add-opens=java.base/java.lang=ALL-UNNAMED' '-Dsun.io.useCanonCaches=false' -XX:-CompactStrings -Xlog:disable '-Xlog:all=warning:stderr:uptime,level,tags' -jar external/remote_java_tools/java_tools/JavaBuilder_deploy.jar @bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/dexer/DexFileSplitter.jar-0.params @bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/dexer/DexFileSplitter.jar-1.params)
# Configuration: 90a56a6ead953730a181c2dd2d27e08bd374350b2588c28d8527b48dc2053c85
# Execution platform: @@platforms//host:host
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/dexer/DexFileSplitter.java:33: error: cannot find symbol
import com.google.devtools.build.android.AndroidOptionsUtils;
                                        ^
  symbol:   class AndroidOptionsUtils
  location: package com.google.devtools.build.android
external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/dexer/
@meteorcloudy
Copy link
Member Author

/cc @ted-xie @ahumesky

@ted-xie
Copy link

ted-xie commented Sep 13, 2024

I'm planning on moving this file and many others out of Bazel very soon. Is this completely blocking the entire head-plus-downstream build, or just a subset?

@meteorcloudy
Copy link
Member Author

It's fine, I disabled this test in downstream for now: #502

We probably need to fix this before upgrading to Bazel 8

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

No branches or pull requests

2 participants