-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for MSYS2/MinGW64 #16
Comments
I don't think this is a problem in sigbak. Are you able to compile other code using the same compiler and compiler flags? For example, try this program:
|
Using the same compiler and flags I can compile the example program without error. Did you mean to also include your compat layer? |
I have no idea, sorry. Perhaps you could ask the MSYS2 people? Or just build sigbak in Cygwin or WSL. |
Thanks for consideration.
As mentioned in #14 (comment) my goal is to add a way of building with the Zig Build System. Zig does not support Cygwin (and there are no plans for that). The supported ABIs on Windows are MinGW and MSVC of which MinGW is the better choice for compatibility with this C codebase. My current state of MinGW64 compat is here: fleimgruber@8d79ad8 where I temporarily added a MinGW64 Makefile for testing purposes and guessed compat changes in config.h and compat.h. I have the feeling that I made some progress, but not all the way yet.
the gnulib docs say e.g. for I have the feeling that some of these issues can only be solved by changing some of the implementation - or adding missing pieces to the |
sigbak is a Unix program and expects POSIX APIs like |
Yes, I looked into it a bit more and found that MSYS2 indeed has the Cygwin POSIX emulation layer, but there is no package for protobuf-c. MinGW64 and the other toolchains provided with MSYS2 do have the dependency packages, but use the Windows C stdlib, hence no POSIX. I will experiment a bit with gnulib. If this does not lead to anything I will leave it as is for someone with more knowledge regarding the needed API compat. I achieved part of my goal of adding the Zig Build System as fleimgruber@a053cd5 works on the NixOS distribution. A Windows build would have been a bonus and I still learned something from attempting it. |
Can you build protobuf-c as part of your sigbak build? I'm doing something similar in the Cygwin instructions in the README. |
While working on #14 (comment) I tried to build on Windows using the MSYS2/MinGW64 GCC toolchain.
I am getting compilation errors of the form:
and also similarly with
gnu_printf
. This issue might contain an idea for a fix, but I am not familiar with the details.Did you already think about supporting MSYS2/MinGW64 similar to Cygwin, e.g. in
sigbak/config.h
Line 69 in 156119a
If you could give me a pointer or an idea of what the issue is, I could have a look and test myself.
The text was updated successfully, but these errors were encountered: