[MacPorts] #62551: bazel 3.1 fails to install on macOS 10.15
MacPorts
noreply at macports.org
Thu Mar 25 01:11:25 UTC 2021
#62551: bazel 3.1 fails to install on macOS 10.15
-----------------------+--------------------
Reporter: essandess | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Keywords: | Port: bazel
-----------------------+--------------------
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:
* https://github.com/bazelbuild/bazel/issues/7940#issuecomment-553447868
* https://github.com/bazelbuild/bazel/issues/6654
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)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/62551>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list