On 20 Jan 00, at 22:42, J. David Bryan wrote:
Dear ListFolks,
I am attempting to make an i486-pc-mingwmsvc (i.e., Windows NT
standalone) version of the latest gpc alpha (gpc-19991030) using the Cygwin B20.1 emulation, and I get a compilation error when the build process attempts to make the run-time library. Specifically, I get:
/usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c: At top level: /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:577: warning: `struct passwd' declared inside parameter list /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:577: warning: its scope is only this definition or declaration, which is probably not what you want.
/usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c: In function `_p_pwl2c': /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:579: dereferencing pointer to incomplete type /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:592: dereferencing pointer to incomplete type /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:593: dereferencing pointer to incomplete type /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:594: dereferencing pointer to incomplete type /usr/local/src/gcc-2.95.2/gcc/p/rts/rts.c:595: dereferencing pointer to incomplete type
I don't know enough C to be sure, but this looks like a syntax error. Surely, though, it must compile on other systems, so I'm stumped. Perhaps it has something to do with the Cygwin-specific version of gcc?
Well, you have got a lot farther than I have ever got. I gave up on trying to build a Mingw compiler long ago and settled for using the Cygwin compiler with '-mno-cygwin' to produce Mingw programs.
Your problem is probably due to things that are missing in the gcc Mingw libraries (and there are many of them). However, I have been able to produce a Mingw version of the RTS. It has involved a lot of patches, C macros in a new header (we presently call it 'os- hacks.h'), and sources going back and forth between Frank and me. The good news is that the next gpc snapshot will probably solve these problems that you are having.
I am quite disorganised at the moment, having just arrived back from down under. But when I am more settled, I can send you a copy of my 'os-hacks.h' file. Frank can tell you where you need to '#include' it.
Best regards, The Chief ----- Dr Abimbola A Olowofoyeku (The African Chief) Email: laa12@keele.ac.uk Author of Chief's Installer Pro v5.21.1 for Win32 http://ourworld.compuserve.com/homepages/African_Chief/chief32.htm