Opened 3 years ago

Closed 3 years ago

#55659 closed defect (fixed)

bazel doesn't build with JDK 9.0.1

Reported by: korni Owned by: RootFunction
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: bazel


The JDK version is determined by

% /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/bin/javac -version
javac 9.0.1

bazel-0.5.2-dist/scripts/bootstrap/, line 292:

if [[ "$JAVAC_VERSION" =~ javac\ (1\.([789]|[1-9][0-9])).*$ ]]; then

expects something like

% /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/javac -version
javac 1.7.0_79

and thus is unable to retrieve the version number, breaking the build.

Change History (5)

comment:1 Changed 3 years ago by kencu (Ken)

comment:2 Changed 3 years ago by kencu (Ken)

Oh, actually there are two PR's to update bazel. I used this one <>. but updated it further to 0.9.0 <>.

We should really get one of these committed.

comment:3 Changed 3 years ago by mf2k (Frank Schima)

Keywords: bazel jdk java removed
Owner: set to RootFunction
Status: newassigned

In the future, please Cc the port maintainers (port info --maintainers bazel), if any.

comment:5 Changed 3 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.