Le 18 Jul 2000, à 1:10, Maurice Lombardi a écrit:
Then, I guess I have to recompile GCC but how to do this under MS-DOS (Windows 98) ? I downloaded GCC sources and bsh203b.zip but do I need some more tools ?
acnf amake bsn cprf fil find flx gwk grep gzp m4-14 pat sed shl tar txi txt You can found an updated patch to recompile, together with more recent binaries in the directory ftp://agnes.dida.physik.uni-essen.de/maurice The diff files contains instructions at its beginning
I downloaded and installed all the files ! (and I had to make some place on my disk, which wasn't a simple task to do). But at the beginning of the compilation, I got my first problem.
I copied the files (gcc2952s.zip, gpc-20000718.tar.gz, build_gpc_djgpp.diff) in 'C:\DJGPP\installs'. I tried to follow the instructions of the patch but :
Typing 'tar -xvzhf \installs\gpc-20000718.tar.gz' in a DOS window (under Windows 98), I got the following message : Cannot redirect input: No such file or directory (ENOENT) tar: Cannot open pipe: Bad file descriptor (EBADF) tar: Error is not recoverable: exiting now (I nstalled tar from tar112ab.zip)
What am I doing wrong ? Did I forget to do something to use the new binaries ? (I tried to read all the readme files...) Or is there an error in the command line you wrote ?
I had to use Winzip to unzip the files ; I don't know if it's a good idea...
The second and last :-( problem was with : 'C:\DJGPP\installs\gnu\gcc-2.952> patch -p1 \installs\build_gpc_djgpp.diff'. After 'Enter' (and waiting for almost 15 mn), nothing seems to happen, no messages on the screen, no sound from the hard drive... no prompt... nothing... I tried to find a djconfig.log : always nothing...
I had to type ^C to stop this : Exiting due to signal SIGINT INTR key Pressed at eip=0001c906 (patch.exe comes from pat253b.zip)
If it can help, here is some informations on my configuration :
C:\DJGPP\installs>set :
CONFIG=essai TMP=C:\WINDOWS\TEMP winbootdir=C:\WINDOWS COMSPEC=C:\WINDOWS\COMMAND.COM SOUND=C:\SB16 MIDI=SYNTH:1 MAP:E MODE:0 PROMPT=$p$g TEMP=C:\TMP PATH=C:\DJGPP\BIN;C:\DOS;C:\MOUSE;C:\WINDOWS;C:\WINDOWS\COMMAND DJGPP=C:\DJGPP\DJGPP.ENV windir=C:\WINDOWS BLASTER=A220 I5 D1 H5 P330 T6 E620
djgpp.env :
DJDIR=%:/>DJGPP%
+USER=dosuser +GROUP=root +TMPDIR=%DJDIR%/tmp +EMU387=%DJDIR%/bin/emu387.dxe +LFN=y +TEXMFMAIN=%DJDIR%/share/texmf +GO32STUB=%DJDIR%/bin/stubify.exe LANGUAGE=fr +GRXFONT=%DJDIR%/contrib/grx232/fonts [...]
I also tried to install again the binaries : gpc-20000718.i586-pc-msdosdjgpp.zip (and gcc2952b.zip from Simtel).
But when I try to compile 4f_pg.pas (a program to test graphic modes, found in http://abcp.multimania.com/divers/video/vesa.html#depart), I get : 4f_pg.pas:46: pointer domain type undefined 4f_pg.pas:46: parse error before `Asmname' 4f_pg.pas:46: comma missing after identifier `Go32_info_block' 4f_pg.pas:46: parse error before `;' 4f_pg.pas:49: comma missing after identifier `Go32_info_block' 4f_pg.pas:49: parse error before `=' [...]
Here is line 46 of the program : Var Go32_Info_Block: AsmName '_go32_info_block' T_Go32_Info_Block; It compiles without problems with old GPC 2.8.1 (That I fortunately saved with a whole DJGPP directory, on ZIP disk).
I tried again to compile GRX232s with 'INCLUDE_GPC_SUPPORT=y' in makedefs.gnu. {I previously erased GRX232 directory (I found that 'rm -f @manifest\grx232s.mft' doesn't work)}
'C:\DJGPP\contrib\grx232\src>redir -o 1tmp.txt -eo make -f makefile.dj2' works well. 'C:\DJGPP\contrib\grx232\test>redir -o 1tmp.txt -eo make -f makefile.dj2' also.
But 'C:\DJGPP\contrib\grx232\pascal>redir -o 1tmp.txt -eo make -f makefile.dj2' gives : gpc -O -c grx20.pas -o grx20.o grx20.pas:252: warning: identifiers should not start with an underscore grx20.pas:252: warning: identifiers should not contain two adjacent underscores grx20.pas:252: warning: identifiers should not end with an underscore grx20.pas:252: type name expected, identifier `__asmname__' given [...] make.exe: *** [grx20.o] Error 1
C:\DJGPP\contrib\grx232\pascal\bgi\demos>redir -o 1tmp.txt -eo make -f makefile.dj2 gives : gpc -O -c ../bgi2grx.pas -o bgi2grx.o ../bgi2grx.pas:47: warning: identifiers should not start with an underscore ../bgi2grx.pas:47: warning: identifiers should not contain two adjacent underscores ../bgi2grx.pas:47: warning: identifiers should not end with an underscore [...] make.exe: *** [bgi2grx.o] Error 1
And C:\DJGPP\contrib\grx232\pascal\bgi\test>redir -o 1tmp.txt -eo make -f makefile.dj2 gives : gpc -O -c ../bgi2grx.pas -o bgi2grx.o ../bgi2grx.pas:47: warning: identifiers should not start with an underscore [...]
Is there somewhere a precompiled gcc2952 configured to use with GPC ?
Thanks for your precious help.
-- "Couperin"