RFR: 8289646: configure script failed on WSL [v3]
Yasumasa Suenaga
ysuenaga at openjdk.org
Tue Jul 5 03:07:10 UTC 2022
> configure failed as following when I run it on WSL 1.
>
>
> checking for version string... 20-internal-adhoc.yasuenag.jdk
> configure: Found potential Boot JDK using configure arguments
> configure: The command for java_to_test, which resolves as "/mnt/d/java/jdk-18/bin/java", can not be found.
> configure: error: Cannot locate /mnt/d/java/jdk-18/bin/java
> configure exiting with result code 1
>
>
> fixpath.sh would attempt to add ".exe" (e.g. "java" -> "java.exe") if `wslpath -w" failed (returns non-zero value). However it returns zero even if the path does not exist in recent WSL (v0.61.4 at least).
>
> WSL v0.60.0.0
>
> $ wslpath -w silver-bullet
> wslpath: silver-bullet: No such file or directory
> $ echo $?
> 1
>
>
> WSL v0.61.4.0
>
> $ wslpath -w silver-bullet
> silver-bullet
> $ echo $?
> 0
>
>
> We should add ".exe" at the tail of path regardless of return value from wslpath.
Yasumasa Suenaga has updated the pull request incrementally with one additional commit since the last revision:
Add to check unixpath existing
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/9357/files
- new: https://git.openjdk.org/jdk/pull/9357/files/ce651d04..c0667805
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=9357&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=9357&range=01-02
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/9357.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9357/head:pull/9357
PR: https://git.openjdk.org/jdk/pull/9357
More information about the build-dev
mailing list