-
Notifications
You must be signed in to change notification settings - Fork 103
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
Gorm files fail to load on Windows due to a BOOL compatibility issue #318
Comments
As far as I know it has always been so. In the past I didn't have issues. Most Gorm files do load... can you give a better example of yours? |
I have not found a single gorm file that loads in up-to-date MSYS environments. That includes all of them in the test-examples project. |
I have an up-to-date mingw64 environment and I have whole applications opening. There are some glitches, but nothing as bad as you say. |
So an example is Ink.app. If you try to launch that app it hangs. This happens because it is using a gorm file and it fails to load this. This is specific to gorm files. |
There is likely a recent change in GUI that caused this. I will try to chase down the issue. |
@rmottola Which compiler and Objective C runtime are you using? I see this with libobjc2 and clang:
|
... and which MSYS2 environment are you using? I'm on UCRT64. |
how do I know? I have this in env: |
GCC with its runtime. Code updated today, so we know it can work on windows intel 64bit. It might be runtime or compiler problem. |
In the MSYS2 terminal, type |
So in this case, it fails when decoding the Here's the full backtrace:
|
To add a bit more color to what @johnathan-becker said:
So, in that case, I think an option is to relax the rules in |
You might want to try STRICT_APPLE_COMPATIBILITY. |
Because it supports building natively on Windows, and |
I’ve identified that the root cause is a difference in the definition of BOOL across platforms: on Windows), BOOL is defined as an int, while on the platform where these Gorm files were generated, BOOL is defined as an unsigned char. This discrepancy is causing incompatibility in file loading.
I’m reaching out to see if anyone has suggestions or insights on creating platform-agnostic compatibility for BOOL definitions within Gorm files to ensure consistent functionality across different environments. Any guidance or approaches to address this cross-platform compatibility would be greatly appreciated.
The text was updated successfully, but these errors were encountered: