RFR: 8258925: configure script failed on WSL
David Holmes
dholmes at openjdk.java.net
Fri Jan 8 04:30:01 UTC 2021
On Thu, 24 Dec 2020 08:04:34 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:
> I ran configure script on WSL 1, but it failed as below:
>
> $ bash configure --enable-debug --with-boot-jdk=/mnt/d/Java/jdk-15.0.1
>
> :
>
> configure: Found potential Boot JDK using configure arguments
> configure: The command for java_to_test, which resolves as "/mnt/d/Java/jdk-15.0.1/bin/java", can not be found.
> configure: error: Cannot locate /mnt/d/Java/jdk-15.0.1/bin/java
> configure exiting with result code 1
>
> `fixpath.sh` attempts to run `$PATHTOOL` with `.exe` if it fails with original path, but `.exe` would not be added even if `$path.exe` exists.
make/scripts/fixpath.sh line 152:
> 150: # If it fails, try again with an added .exe (needed on WSL)
> 151: if [[ $? -ne 0 ]]; then
> 152: path="$path.exe"
This seems to conflict with the logic starting at line #173 below.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1889
More information about the build-dev
mailing list