On Tue, 14 Apr 2026 11:27:08 GMT, James Nord <[email protected]> wrote:
>> nope - the configure (needed to run the make targets) script bails out - as
>> I do not have any C++ development kit.
>> I am also running inside WSL2 so using a Linux kernel 🤷
>>
>>
>> jnord@dev:/src/github/openjdk/jdk$ bash configure
>> ...
>> checking for docs-reference JDK... no, using interim javadoc for the
>> docs-reference targets
>> checking what source date to use... 1776165596, from 'current' (default)
>> checking if we should build headless-only (no GUI)... disabled, default
>> checking if linker should clean out unused code (linktime-gc)... disabled,
>> default
>> checking for graphviz dot... no, cannot generate full docs or man pages
>> checking for pandoc... no, cannot generate full docs or man pages
>> checking for --enable-full-docs... disabled, from default 'auto'
>> checking for cacerts file... default
>> checking for cacerts source... default
>> checking for --enable-unlimited-crypto... enabled, default
>> checking for jni library path... default
>> configure: Using default toolchain microsoft (Microsoft Visual Studio)
>> configure: error: Cannot locate a valid Visual Studio installation
>> configure exiting with result code 1
>>
>>
>> `Linux dev 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun
>> 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux`
>
> and attempting to force with
> ` bash configure --with-toolchain-type=gcc` yields
>
>
> configure: Toolchain type gcc is not valid on this platform.
> configure: Valid toolchains: microsoft.
> configure: error: Cannot continue.
> configure exiting with result code 1
>
>
> This IS a linux platform :shrug:
>
>
> $gcc --version
> gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
> Copyright (C) 2023 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> $lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description: Ubuntu 24.04.4 LTS
> Release: 24.04
> Codename: noble
--- a/make/autoconf/platform.m4
+++ b/make/autoconf/platform.m4
@@ -215,8 +215,8 @@ AC_DEFUN([PLATFORM_EXTRACT_VARS_FROM_OS],
VAR_OS_ENV=windows.cygwin
;;
*wsl*)
- VAR_OS=windows
- VAR_OS_ENV=windows.wsl
+ VAR_OS=linux
+ VAR_OS_ENV=unix
;;
*msys* | *mingw*)
VAR_OS=windows
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/30074#discussion_r3079282672