[MacPorts] #63908: bazel @4.2.1_0 install error: `module java.base does not "opens java.lang" to unnamed module`

MacPorts noreply at macports.org
Thu Nov 11 05:25:25 UTC 2021


#63908: bazel @4.2.1_0 install error: `module java.base does not "opens java.lang"
to unnamed module`
--------------------+--------------------
 Reporter:  flwyd   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.7.1
 Keywords:          |       Port:  bazel
--------------------+--------------------
 Running {{{port install bazel}}} on macOS Mojave 10.14.6 fails with an
 error.

 {{{
 bazel crashed due to an internal error. Printing stack trace:
 :info:build java.lang.ExceptionInInitializerError
 :info:build     at
 com.google.devtools.build.lib.actions.ParameterFile.writeContent(ParameterFile.ja
 va:118)
 :info:build     at
 com.google.devtools.build.lib.actions.ParameterFile.writeParameterFile(ParameterF
 ile.java:111)
 …
 :info:build Caused by: java.lang.reflect.InaccessibleObjectException:
 Unable to make java.lang.String(byte[],byte) accessible: module java.base
 does not "opens java.lang" to unnamed module @647c3190
 :info:build     at
 java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63908>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list