On 20/12/2020 19:26, Eli Zaretskii wrote: > Kieth, Misspelling my name isn't a very auspicious way to start a feature request, but no matter ... > I have a humble feature request, for when you find time to produce a > MinGW build of GCC 10.x: would you please consider including libgccjit > in the set of binaries? I've no idea when I may get around to GCC 10.x, so I've had a quick look, to see what may be required to build libgccjit-0.dll for 9.2. It turns out that the mingw32 target is not well catered for, in the GCC 9.2 sources. I can get a libgccjit.so (which is actually a DLL) built, but it needs some gross, kludgey hacks, to work around several problems: - specifying --enable-host-shared (as the documentation demands) makes the build look for libiberty.a in a nonexistent "pic" subdirectory of where it is actually built; after make crashes, "ln -s . pic" in the real build directory kludges around this, allowing "make" to be restarted, and to progress beyond this. - GCC's jit sources gratuitously use dlopen(), but neglect to include dlfcn.h; jit-common.h needs a patch, to work around this. - availability of fchmod() is gratuitously assumed; a further patch is needed, to use chmod() instead. - linking of the DLL gratuitously requires -lpthread, which isn't specified; I can patch the makefile fragment, to explicitly do so, but that feels kind of nasty, since it bypasses system features discovery. With those kludges in place, I get a libgccjit.so (built according to ELF link command convention, but it is actually a Windows DLL), but no corresponding import library. The build then immediately crashes out, trying to do whatever else would normally follow. It's ugly, but may be enough. What do you think? If you would like me to pursue this further, for future GCC releases, perhaps you would be so kind as to file a formal feature request ticket: https://mingw.osdn.io/index.html?page=contact.html#feature-request -- Regards, Keith. Public key available from keys.gnupg.net Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F