G
G
GunGraveKoga2014-04-18 17:09:35
Objective-C
GunGraveKoga, 2014-04-18 17:09:35

Building GNUstep libobjc2 for MinGW W64

I have been suffering with the problem for 2 weeks already, building libobjc2 from GNUstep under MinGW W64. It is required to build a dynamic library for 64bit Windows. Clang 3.4 is used to build.
The first problem is that clang uses DWARF2 exception handling for x86_64, while MinGW GCC uses SjLj. That is, when linking object files created by clang by the MinGW linker, I regularly get errors about missing functions like _Unwind_Resume.
This can be overcome if problem files are pre-assembled and function calls are corrected, for example, _Unwind_Resume to _Unwind_SjLj_Resume, etc. Although I'm not sure how much this is the right approach, but judging by the header files of the libunwind and GCC libraries, they are the same.
But even after the successful creation of the library, any program, even a simple hello world compiled for windows and linked with libobjc2, crashes without explanation.
Actually, the question itself is whether it is even possible to build libobjc2 under MinGW W64 or, in extreme cases, Mingw32
If anyone has a positive experience, please share or at least poke in the direction of solving the problem, my knowledge is clearly not enough to find problems in runtime libraries.
Thank you.
PS libobjc-1.7.1 of the first version of GNUstep's Objective-C runtime builds and functions stably.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question