On 27 Oct 2004 at 11:44, Adriaan van Os wrote:
Prof A Olowofoyeku (The African Chief) wrote:
Let me say it in another way - "in the bad old days before the release of MSYS, and when I tired of trying to use Cygwin to compile a Mingw compiler, and I had no clue as to what the instructions on making a Linux cross-compiler meant, I hand-crafted a Mingw-targetted but Cygwin hosted "cross compiler". I then proceeded to explain how I did this hand-crafting, which only took a few minutes to do, but worked like a dream.
Ah, I see.
Anyway, Mingw/MSYS looks like the project that exactly fits our needs today - and the website http://www.mingw.org/
Indeed.
even has GPC compiler sources and binaries.
Which I put there ;-) Just haven't bothered to update the ones on the Mingw web site, since it was easier to put the updates on the GPC web site. Now that the GPC web site is down ....
Frank Heckenbach wrote:
(c) improve the emulation library. That would fix the problem once and for all programs, instead of requiring special changes in every program (or runtime environment). To some degree (i.e., as far as necessary) we've already done this via os-hacks.h.
Yes, I found the os-hacks.h file and put it in the gcc/p/rts folder before configure and make. However, this seems to have been the wrong thing,
Yep.
because I read:
BUILDING A GPC COMPILER FOR CYGWIN
Cygwin has a fully functional self-hosting toolchain. The Cygwin environment implements a functional POSIX layer under Windows. Building GPC for Cygwin should (if you have the full Cygwin environment and toolchain) be as straightforward as building it under Linux.
However, in order to get a full GPC runtime library, you also need to download os-hacks.h and copy it to your Cygwin installation's "include" directory (typically /cygnus/usr/include/) before attempting to "configure" and "build" GPC.
Does this apply to Mingw also ?
Yes. os-hacks.h should be in the Mingw "include" directory.
BTW: there are more recent versions of the Windows os-hacks.h than the one on the Mingw web site.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.greatchief.plus.com/