On 21 Jan 00, at 10:28, J. David Bryan wrote:
On 21 Jan 00, at 9:58, Dr A Olowofoyeku wrote:
Well, you have got a lot farther than I have ever got.
It took quite a bit of perseverence to get as far as I did! I spent my first three weeks trying to understand just enough Unixisms to get a 2.95.2 cross-C compiler built! :-)
Mumit Khan sent me instructions on how to do that - I still couldn't get it working ...
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.
I'd be happy to post here how I did it, if it'll further the cause of getting GPC to compile for NT.
That would be helpful, please. I have some sort of documentation on how I compiled the gpc Cygwin compiler, but it is at the moment only in the form of a (well commented ) bash script. Between us we should be able to produce fairly comprehensive documentation on compiling gpc under Windows.
Your problem is probably due to things that are missing in the gcc Mingw libraries (and there are many of them).
I was wondering if the warning reference I quoted:
/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.
was significant. I am using the latest 2.95.2 + some patches supplied by Mumit Khan at:
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/gcc.html
That is what I use too.
Perhaps this is checking something more stringently than the "standard" 2.95.2, and that gives the warning? I admit I don't know C that well, but isn't this a complaint about the source of "rts.c", rather than a complaint about a Mingw-included file?
Probably not. 'configure' checks for many things in setting up the system. I had to fiddle a bit with the 'rts-config' files and Frank had to introduce more 'configure' checks for the things that came up - there have been umpteen patches. So, the stuff that you have will still probably throw up problems. The next snapshot should solve all of this. After my last build effort, I think that we had managed to fix all the remaining Mingw issues.
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.
That would be wonderful, thanks! Please send it to my address on this message.
Ok.
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