On 14 Feb 2003 at 15:29, Maurice Lombardi wrote:
[...]
What problem is this?
I have first downloaded your binaries, and installed them in my mingw tree (installed also gcc-3.2.2 from sourceforge). When trying to compile some pascal programs gpc answers that it cannot find as.exe, with a full path written with forward slashes. I then tried to compile gpc from your sources in W98, and it dies with similar message when xgpc wants to compile the first pascal program in the rts.
Yes, I have found the problem. It seems that "GPC" is never defined for xm-mingw32.h during compilation. So the condition "#ifdef GPC" is never satisfied. I wouldn't have thought that one needed to pass "-DGPC" at the command line - Frank, am I missing something?
I have made something stupid. Compiled it with MSYS-1.0.8 (1.0.9 had a bug) and latest mingw tools from sourceforge, with your sources, except replacing in xm-mingw2.h #ifdef GPC by #ifdef TARGET_W9x (like in 2.95.x)
This seems to be the solution (i.e., replacing #ifdef GPC by #ifdef TARGET_W9x). But I still don't understand why "GPC" is not defined automatically during compilation. If it cannot be defined automatically so that xm-mingw32.h will always see it when GPC is being built, then Frank, can you please replace the Mingw diff that I sent for inclusion in gcc-3.2.2.diff to this:
*** gcc/config/i386/xm-mingw32.h.orig Sun Feb 9 19:06:30 2003 --- gcc/config/i386/xm-mingw32.h Sun Feb 9 19:15:50 2003 *************** the Free Software Foundation, 59 Temple *** 20,27 **** --- 20,33 ---- Boston, MA 02111-1307, USA. */
/* Even though we support "/", allow "" since everybody tests both. */ + #ifdef TARGET_W9x + #define DIR_SEPARATOR '\' + #define DIR_SEPARATOR_2 '/' + #else #define DIR_SEPARATOR '/' #define DIR_SEPARATOR_2 '\' + #endif +
Thanks.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/