You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have any machines running Windows, so I can't debug this directly. Once rules_m4 moves upstream into the bazelbuild/ org and gets a full CI suite, fixing the Windows build will be more practical.
If you upload the header files generated by m4's build scripts, I might be able to hack something together for the short term. Can you try downloading https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz and running its configure manually, then uploading the resulting config.h and configmake.h to this issue? Ideally once for MSVC, and again using mingw-gcc.
MSVC builds are now working. There are some compiler warnings about invalid conversions because M4 assumes sizeof(int) == sizeof(void*) which isn't true, but the resulting binaries are functional enough to pass the test suite.
I haven't tried building with MinGW, but believe it should need only minimal changes. Specifically the use of MSVC-specific #pragma include_alias in gnulib_windows_config.h should be replaced by shim headers containing GCC-specific #include_next directives.
Bazel building using MSVC
Bazel building using mingw-gcc
It builds fine on Ubuntu and Mac.
Kindly help.
The text was updated successfully, but these errors were encountered: