[Users] Building CM on Windows 11 with MSys2 MinGW

Jonathan Boeing jonathan at claws-mail.org
Fri Nov 25 04:40:31 CET 2022


On Thu, 24 Nov 2022 22:42:18 +0600
Enan Ajmain <3nan.ajmain at gmail.com> wrote:

> On Wed, 23 Nov 2022 10:56:13 -0700
> Jonathan Boeing <jonathan at claws-mail.org> wrote:
> 
> > You want the claws-win32-installer repo
> > https://git.claws-mail.org/?p=claws-win32-installer.git;a=summary
> > 
> > The build instructions are in the README, and I'd recommend building
> > from Debian 11 (a VM is fine) rather than Msys2.
> 
> I tried building «CM for Windows» in WSL Ubuntu-20.04. Commands used:
> 
>     $ cd packages/
>     $ ./download.sh
>     $ cd ..
>     $ ./autogen.sh --build-w64
>     $ make
> 
> It gave one warning in `./autogen.sh`:
> 
>     configure: WARNING: using cross tools not prefixed with host
> triplet

In your case, it was complaining about pkgconfig which shouldn't be a
problem.

> And errored out in `make` (possibly related to the warning above):
> 
>     checking for build system executable suffix... configure: error:

That's pretty much what I'd expect when trying to build with Msys or
WSL.  Cross-compiling is a lot better than it used to be, but you're
still out in the wild.  If you want it to just work, build from a
Debian 11 VM in VirtualBox.

See https://github.com/crosstool-ng/crosstool-ng/issues/1328 for someone
hitting the same GMP build failure with WSL:

> Update:
> I tried the same thing in ubuntu vm.it worked fine.

Otherwise, the fix from 
https://github.com/crosstool-ng/crosstool-ng/pull/1751/commits/6b05f528a000f99df41d9b7b98940bdaf0620f76
could be applied to the top level src/Makefile.am.  Once you figure out
what CC_FOR_BUILD and CPP_FOR_BUILD should be set to, you can add those
two variables to the 'cm_pkg_gmp_configure' variable.

Regards,

Jonathan


More information about the Users mailing list