user127077: The build-windows.md says:
"Additional WSL Note: WSL support for launching Win32 applications
results in Autoconf configure scripts being able to execute Windows Portable Executable files. This can cause
unexpected behaviour during the build, such as Win32 error dialogs for missing libraries. The recommended approach
is to temporarily disable WSL support for Win32 applications."
How should I temporarily disable it? Is it done in the Ubuntu WSL shell, or in my local Windows machine?

user-1: Disable WSL support for Win32 applications:
sudo bash -c "echo 0 > /proc/sys/fs/binfmt_misc/status"

Enable WSL support for Win32 applications:
sudo bash -c "echo 1 > /proc/sys/fs/binfmt_misc/status"

https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md#building-for-64-bit-windows

Is it done in the Ubuntu WSL shell, or in my local Windows machine?

Ubuntu WSL shell

127077: <p>The build-windows.md says:
&quot;Additional WSL Note: WSL support for <a href="https://docs.microsoft.com/en-us/archive/blogs/wsl/windows-and-ubuntu-interoperability#launching-win32-applications-from-within-wsl" rel="nofollow noreferrer">launching Win32 applications</a>
results in <code>Autoconf</code> configure scripts being able to execute Windows Portable Executable files. This can cause
unexpected behaviour during the build, such as Win32 error dialogs for missing libraries. The recommended approach
is to temporarily disable WSL support for Win32 applications.&quot;</p>
<p>How should I temporarily disable it? Is it done in the Ubuntu WSL shell, or in my local Windows machine?</p>
 -1: <p>Disable WSL support for Win32 applications:</p>
<pre><code>sudo bash -c &quot;echo 0 &gt; /proc/sys/fs/binfmt_misc/status&quot;
</code></pre>
<p>Enable WSL support for Win32 applications:</p>
<pre><code>sudo bash -c &quot;echo 1 &gt; /proc/sys/fs/binfmt_misc/status&quot;
</code></pre>
<p><a href="https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md#building-for-64-bit-windows" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md#building-for-64-bit-windows</a></p>
<blockquote>
<p>Is it done in the Ubuntu WSL shell, or in my local Windows machine?</p>
</blockquote>
<p>Ubuntu WSL shell</p>
