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 7.2.1 #175604

Closed
wants to merge 1 commit into from
Closed

bazel 7.2.1 #175604

wants to merge 1 commit into from

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

@github-actions github-actions bot added java Java use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` no Linux bottle Formula has no Linux bottle labels Jun 25, 2024
@chenrui333
Copy link
Member

  Building Bazel from scratch
  ERROR: JDK version (1.11) is lower than 21, please set $JAVA_HOME.

bazel: update to use java 21

Signed-off-by: Rui Chen <[email protected]>
@chenrui333 chenrui333 added the CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. label Jun 25, 2024
@chenrui333
Copy link
Member

  ERROR: /private/tmp/bazel-20240625-10725-d8quua/sources/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/BUILD:173:23: JavacBootstrap src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar [for tool] failed: (Exit 1): bash failed: error executing JavacBootstrap command (from target //src/java_tools/buildjar/java/com/google/devtools/build/buildjar:starlark-deps) 
    (cd /private/tmp/bazel_0R6U1oWU/out/execroot/_main && \
    exec env - \
      PATH=/opt/homebrew/opt/[email protected]/libexec/bin:/opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/[email protected]/bin:/opt/homebrew/opt/giflib/bin:/opt/homebrew/opt/libpng/bin:/opt/homebrew/opt/freetype/bin:/opt/homebrew/opt/fontconfig/bin:/opt/homebrew/opt/pcre2/bin:/opt/homebrew/opt/openssl@3/bin:/opt/homebrew/opt/sqlite/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/gettext/bin:/opt/homebrew/opt/glib/bin:/opt/homebrew/opt/cairo/bin:/opt/homebrew/opt/graphite2/bin:/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/harfbuzz/bin:/opt/homebrew/opt/jpeg-turbo/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/libtiff/bin:/opt/homebrew/opt/little-cms2/bin:/opt/homebrew/opt/openjdk@21/bin:/usr/bin:/bin:/usr/sbin:/sbin \
    /bin/bash -c 'set -e;rm -rf bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar.build_output bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar.build_java bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar.build_java_list
  mkdir bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar.build_output bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar.build_java
  external/rules_java~~toolchains~remotejdk11_macos_aarch64/bin/javac  -classpath '\''derived/jars/protobuf~/java/core/libcore.jar:derived/jars/protobuf~/java/core/liblite.jar:derived/jars/protobuf~/java/util/libutil.jar:derived/jars/zstd-jni~/libzstd-jni.jar:external/rules_jvm_external~~maven~maven/com/google/errorprone/error_prone_annotations/2.22.0/error_prone_annotations-2.22.0.jar:external/rules_jvm_external~~maven~maven/org/threeten/threeten-extra/1.5.0/threeten-extra-1.5.0.jar:external/rules_jvm_external~~maven~maven/com/google/guava/guava/32.1.1-jre/guava-32.1.1-jre.jar:external/rules_jvm_external~~maven~maven/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:external/rules_jvm_external~~maven~maven/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:third_party/java/jacoco/org.jacoco.core-0.8.11.jar:external/rules_jvm_external~~maven~maven/io/grpc/grpc-api/1.48.1/grpc-api-1.48.1.jar:external/rules_jvm_external~~maven~maven/io/grpc/grpc-auth/1.48.1/grpc-auth-1.48.1.jar:external/rules_jvm_external~~maven~maven/io/grpc/grpc-context/1.48.1/grpc-context-1.48.1.jar:external/rules_jvm_external~~maven~maven/io/grpc/grpc-core/1.48.1/grpc-core-1.48.1.jar:external/rules_jvm_external~~maven~maven/io/grpc/grpc-netty/1.48.1/grpc-netty-1.48.1.jar:external/rules_jvm_external~~maven~maven/io/grpc/grpc-protobuf/1.48.1/grpc-protobuf-1.48.1.jar:external/rules_jvm_external~~maven~maven/io/grpc/grpc-protobuf-lite/1.48.1/grpc-protobuf-lite-1.48.1.jar:external/rules_jvm_external~~maven~maven/io/grpc/grpc-stub/1.48.1/grpc-stub-1.48.1.jar:external/rules_jvm_external~~maven~maven/org/apache/tomcat/tomcat-annotations-api/8.0.5/tomcat-annotations-api-8.0.5.jar:external/rules_jvm_external~~maven~maven/com/google/auto/value/auto-value-annotations/1.9/auto-value-annotations-1.9.jar:external/rules_jvm_external~~maven~maven/com/google/auto/value/auto-value/1.8.2/auto-value-1.8.2.jar'\'' -d bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar.build_output @bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar-2.params
  external/rules_java~~toolchains~remotejdk11_macos_aarch64/bin/jar cf bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar -C bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar.build_output .
  touch bazel-out/darwin_arm64-opt-exec-ST-fad1763555eb/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libstarlark-deps.jar.build_output
  ')
  # Configuration: aee171ec14e9a59cc387faeae44d60787f3f99dc89ba107873dcf39e4edcf146
  # Execution platform: //:default_host_platform
  derived/src/java/build/bazel/remote/asset/v1/FetchBlobRequest.java:15: error: cannot access GeneratedMessageV3
      com.google.protobuf.GeneratedMessageV3 implements
                         ^
    bad class file: derived/jars/protobuf~/java/core/libcore.jar(/com/google/protobuf/GeneratedMessageV3.class)
      class file has wrong version 65.0, should be 55.0
      Please remove or make sure it appears in the correct subdirectory of the classpath.
  derived/src/java/build/bazel/remote/asset/v1/FetchBlobRequestOrBuilder.java:8: error: cannot access MessageOrBuilder
      com.google.protobuf.MessageOrBuilder {
                         ^

@chenrui333 chenrui333 added the build failure CI fails while building the software label Jun 25, 2024
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep this pull request open, add a help wanted or in progress label.

@github-actions github-actions bot added the stale No recent activity label Jun 28, 2024
@github-actions github-actions bot closed this Jun 29, 2024
@p-linnane p-linnane deleted the bump-bazel-7.2.1 branch July 3, 2024 16:25
Comment on lines +34 to +36
# Force Bazel to use openjdk@21
ENV["EXTRA_BAZEL_ARGS"] = "--host_javabase=@local_jdk//:jdk"
ENV["JAVA_HOME"] = Language::Java.java_home("11")
ENV["JAVA_HOME"] = Language::Java.java_home("21")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an issue in the bazel project which mentioned the build args changed bazelbuild/bazel#22789

It appears that --tool_java_runtime_version=local_jdk is the correct arg now https://github.com/easybuilders/easybuild-easyblocks/blob/064e3e24b4638ed2e20d8ecd3370c2ae459aee68/easybuild/easyblocks/b/bazel.py#L169

@daeho-ro daeho-ro mentioned this pull request Aug 3, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build failure CI fails while building the software bump-formula-pr PR was created using `brew bump-formula-pr` CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. java Java use is a significant feature of the PR or issue no Linux bottle Formula has no Linux bottle stale No recent activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants