Opened 4 years ago

Closed 4 years ago

#62551 closed defect (fixed)

bazel 3.1 fails to install on macOS 10.15

Reported by: essandess (Steve Smith) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: Cc: missa-prime (Mohamed Issa), cjones051073 (Chris Jones)
Port: bazel

Description

The port bazel-3.1 fails to build on macOS 10.15, which prevents a build of tensorflow and dependent ports.

Error:

Target //src:bazel_nojdk failed to build

This appears to be a known issue:

The link above indicates that setting

EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk"

fixes this issue, and I verify that it does. I'll post a PR fix.

System info (default java LTS version installed):

macOS 10.15.7 19H524
Xcode 12.4 12D4e
java -version
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)

Change History (1)

comment:1 Changed 4 years ago by essandess (Steve Smith)

Owner: set to essandess
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.