Replies: 2 comments 3 replies
-
|
See the gawk manual here: Though it's outdated and incomplete. The procedure that works in w46dk right now looks like this:
|
Beta Was this translation helpful? Give feedback.
-
|
I will steal it from Cygwin instead. You download Cygwin setup and run this command: You then in the Cygwin shell run Copy the You can use the same trick with MSYS2 as the source instead of Cygwin. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to download gawk and to do ./configure && make and that of course doesn't work, I have no idea what the right way would be to do this.
I just know it's somehow possible as there is gawk built in MSYS2, but I also can't figure out how they do manage to achieve exactly that. I know the whole environment is replicating a lot of the context of cygwin, but I still don't know if or how these specific elements needed for specific applications could (if they could) be set.
It's not that I'm interested exclusively in gawk but I'm asking more to learn what's the right way to do it, in general, for sources like that, if anybody would know, or if it's even possible.
It seems they depend on autotools automake gnulib and maybe something can be skipped but I'm not sure how and what. I seem to come to some point, but then the errors appear. An example of an error I see during the compilation would be
io.c:2497:34: error: ‘SIGKILL’ undeclared (first use in this function); did you mean ‘SIGILL’?I know it's possible to do anything with enough of hand-patching the sources, but I believe there is already work done to do it "right" for MSYS2 and I just can't find it. I found this
https://github.com/git-for-windows/MSYS2-packages/blob/b6d39f4708da8c9b014797d3dbb4504b204113d8/gawk/0001-Support-building-in-MSYS2.patch
But this doesn't seem to answer the issues I see, or maybe it does? I see MSYS2 there patches some files for some conditions to match it too, which would otherwise match cygwin* or mingw* ? Is that it, and what is actually missing here for w64devkit?
Thanks for any explanations.
Beta Was this translation helpful? Give feedback.
All reactions