https://bugs.documentfoundation.org/show_bug.cgi?id=174154
Bug ID: 174154
Summary: Windows WSL-as-helper build: configure fails to find
Visual Studio with Git for Windows 2.56 (UCRT64)
Product: LibreOffice
Version: 27.2.0.0 alpha0+ master
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Since Git for Windows 2.56, Git Bash uses the MSYS2 UCRT64 environment instead
of MINGW64. MSYSTEM=UCRT64 is set, and PATH contains /ucrt64/bin instead of
/mingw64/bin.
autogen.sh and configure.ac detect the WSL-as-helper setup by looking for
"mingw64" in PATH. With UCRT64 this check fails, so WSL_ONLY_AS_HELPER is not
set. find_msvc() then gets an empty ProgramFiles(x86), the vswhere path becomes
"\Microsoft Visual Studio\Installer\vswhere.exe", and configure aborts.
Steps to Reproduce:
1. Install Git for Windows 2.56.0 (Git Bash now uses UCRT64).
2. Set up the WSL-as-helper build environment (Strawberry Perl portable, Visual
Studio 2026).
3. In Git Bash, run: wsl ./autogen.sh
Actual Results:
> checking Visual C++... ./configure: line 14767: \Microsoft: command not found
> checking VC++ Build Tools and similar... ./configure: line 14775: \Microsoft:
> command not found
> configure: error: no Visual Studio 2026 installation found
Expected Results:
> configure: found Visual C++ 2026
Environment:
- Windows 11, Git for Windows 2.56.0.windows.3
- WSL 2, Fedora Linux 44
- Visual Studio 2026 18.11.1
Proposed fix:
- configure.ac: grep -q -e mingw64 -e ucrt64 -e clangarm64
- autogen.sh (3 places): $ENV{PATH} =~ /mingw64|ucrt64/
--
You are receiving this mail because:
You are the assignee for the bug.