Frank Heckenbach a écrit:
Maurice Lombardi wrote:
Frank Heckenbach a écrit:
You might have to add `-D__OS_DOS__' as well (since the built-in definition, inferred from a built-in `-DMSDOS', is probably broken as well).
<snip>
Perhaps `-DDJGPP=2' will avoid the warning. But it might not be necessary to define `DJGPP' at all.
Indeed but the others remain. With make EXTRA_TEST_PFLAGS="-gstabs -DMSDOS -D__MSDOS__ -DGO32 -D__GO32__ -DDJGPP=2 -D__DJGPP__=2 -D__OS_DOS__"
I obtain (test_summary).
TEST dialec3.pas: c:/djgpp/b-331-20030830/gnu/gcc-3.31/gcc/p/test/a.out: cannot open file `prn' for writing (No such file or directory (ENOENT)) (error #443 at 17863) TEST dialec5.pas: c:/djgpp/b-331-20030830/gnu/gcc-3.31/gcc/p/test/a.out: cannot open file `prn' for writing (No such file or directory (ENOENT)) (error #443 at 16b3) TEST dialec6.pas: c:/djgpp/b-331-20030830/gnu/gcc-3.31/gcc/p/test/a.out: cannot open file `prn' for writing (No such file or directory (ENOENT)) (error #443 at 17893) TEST fjf165a.pas: SKIPPED: German locale not installed TEST fjf401.pas: failed 1: /etc/a.conf (expected: c:/djgpp/b-331-20030830/gnu/gcc-3.31/gcc/p/test/c:/djgpp/b-331-20030830/gnu/gcc-3.31/gcc/p/test/a.ini) TEST fjf687.pas: failed `foo\' TEST gpctest.pas: Error in RemoveDirSeparator TEST longr2.pas: SKIPPED: no LongReal math routines available TEST y2k.pas: failed 1999 1999
# of GPC tests 3794 # of GPC tests passed 3785 # of GPC tests skipped 2 # of GPC tests failed 7
To check that this is not a DJGPP bug I have compiled with mingw32:
Program Test; begin WriteLn('WIN32 ',{$ifndef WIN32} 'NOT ', {$endif}'defined '); WriteLn('_WIN32 ',{$ifndef _WIN32} 'NOT ', {$endif}'defined '); WriteLn('__WIN32 ',{$ifndef __WIN32} 'NOT ', {$endif}'defined '); WriteLn('__WIN32__ ',{$ifndef __WIN32__} 'NOT ', {$endif}'defined '); WriteLn('__MINGW32__ ',{$ifndef __MINGW32__} 'NOT ', {$endif}'defined '); WriteLn('__MSVCRT__ ',{$ifndef __MSVCRT__} 'NOT ', {$endif}'defined '); WriteLn('WINNT ',{$ifndef WINNT} 'NOT ', {$endif}'defined '); WriteLn('_X86_ ',{$ifndef _X86_} 'NOT ', {$endif}'defined '); end.
I obtain
WIN32 NOT defined _WIN32 NOT defined __WIN32 NOT defined __WIN32__ NOT defined __MINGW32__ NOT defined __MSVCRT__ NOT defined WINNT NOT defined _X86_ NOT defined
All are defined with gcc-3.2.2 based gpc-20030507
Hope this helps
Maurice