I am using the PC version (DJGPP, MingWin) of the gcc (MS-DOS, Windows 95/NT/XP) for several years in lectures and for programming purposes. Never I found any severe problem or error.
Formerly I wrote many Pascal programs and I would like to install a version of the GPC compiler to be able to recompile these program for Win32. I never was successful to complete this installation.
After the recent installation of gcc 3.20 I found a new copy of gpc on the Simtel mirrors and tried another gpc installation.
Download and unzipping of gpc together with gcc/djgpp (version gpc2953b.zip, 13.5.2002) produced a startable installation of gpc (the gpc command is working when either typing "gpc" alone or "gpc --verbose"), but I am not able to compile any program. ( "gpc lix.pas" results in the error message "gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)", see attachment x.x or more verbose x.a) ).
In a second try I fetched gpc directly from the site http://www.gnu-pascal.de/ in the file gpc-2.1.i586-pc-msdosdjgpp.zip. Installing this file together with the necessary gcc tools results in the same problem as above. (see attachment x.y and inst-p.bat)
What is the reason of the error message gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)
By the way I didn't succeed to install gpc with MingWin too. Compiling programs with "gpc lix.pas" results in "ld: cannot open crt2.o: No such file or directory"
Could you please kindly help me solving the problem?
Yours sincerely
Frank Braun
PS:
Yes I read readme, news, install, faq, and bugs.
Yes I wrote a similar gpc section like the gcc section in djgpp.env: ( [gpc] COMPILER_PATH=%/>;COMPILER_PATH%%DJDIR%/bin LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/contrib/grx20/ lib ) res. ( [gcc] LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib
[gpc] LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib )
Yes I tried getting the right files but the files mentioned in the documentation are sometimes no longer available. In these cases I used the next higher version or alternativly the newest version. i.e.: http://www.gnu-pascal.de/gpc_20.html says `v2/djdev203.zip' (C library) `v2gnu/bnu2951b.zip' (assembler, ...) `v2gnu/gcc2952b.zip' (gcc) `v2gnu/gdb418b.zip' (debugger) `v2gnu/mak379b.zip' (make) `v2gnu/txi40b.zip'
The file install. says: - the C library, `v2/djdev201.zip', and - `binutils' (assembler, etc.), `v2gnu/bnu270b.zip'.
I tried both djdev201/203. bnu2951b/270b is not available so I used bnu213b
Frank Braun Rechenzentrum Universitaetsstrasse 31 D-93053 Regensburg Germany
Tel.: +49-941-943-4891
email: frank.braun@rz.uni-regensburg.de
d:\PRIVAT\BILANZ\PROGRAM>gpc -v x.pas Using builtin specs. gpc version 2.1 (20020510), based on 2.95.3 20010315/djgpp (release) d:/djgpp/lib/gcc-lib/djgpp/2.953/gpcpp.exe -lang-pascal -v -famtmpfile=d:/djgpp /tmp\ccaaaaaa -fdelphi-comments -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MI NOR__=95 -D__GPC__=2 -D__GPC_MINOR__=1 -D__GPC_VERSION__=2.1 -D__GPC_RELEASE__=2 0020510 -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ ENDIAN__=1 -D__NEED_NO_ALIGNMENT__=1 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__ OS_DOS__=1 -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__OS_DOS __=1 -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(ms dos) -Acpu(i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D_ _i386__ -D__tune_pentium__ -imacros djgpp.ver -remap x.pas d:/djgpp/tmp\cc6uaS61 .i GNU Pascal Compiler PreProcessor version 2.1 (20020510), based on gcc-2.95.3 200 10315/djgpp (release) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: d:/djgpp/lang/pascal d:/djgpp/include /usr/local/include d:/djgpp/i586-pc-msdosdjgpp/include d:/djgpp/lib/gcc-lib/djgpp/2.953/include d:/djgpp/include End of search list. gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)
d:\PRIVAT\BILANZ\PROGRAM>gpc GNU Pascal version 2.1 (20020510), based on gcc-2.95.3 20010315/djgpp (release). Copyright (C) 1987-2002 Free Software Foundation, Inc.
GNU Pascal is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
GNU Pascal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
For more version information on components of the GNU Pascal compiler, especially useful when reporting bugs, type the command `gpc.exe --verbose'.
Most used command line options: -c Compile or assemble the source files, but do not link. -o FILE Place output in file FILE. --automake Automatically (re)compile modules/units. -v Be verbose.
The command line options are described in the online documentation. `info -f gpc invoking' describes them in detail.
Report bugs to gpc@gnu.de.
d:\PRIVAT\BILANZ\PROGRAM>gpc x.pas >x.y gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)
d:\PRIVAT\BILANZ\PROGRAM>gpc GNU Pascal version 2.1 (20020510), based on gcc-2.95.3 20010315/djgpp (release). Copyright (C) 1987-2002 Free Software Foundation, Inc.
GNU Pascal is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
GNU Pascal is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
For more version information on components of the GNU Pascal compiler, especially useful when reporting bugs, type the command `gpc.exe --verbose'.
Most used command line options: -c Compile or assemble the source files, but do not link. -o FILE Place output in file FILE. --automake Automatically (re)compile modules/units. -v Be verbose.
The command line options are described in the online documentation. `info -f gpc invoking' describes them in detail.
Report bugs to gpc@gnu.de.
d:\PRIVAT\BILANZ\PROGRAM>gpc x.pas gpcpp.exe: djgpp.ver: No such file or directory (ENOENT)
call un-inst rem unzip32 gpc2953b.zip < d:\djgpp\a.a rem unzip32 djdev201.zip < d:\djgpp\a.a
unzip32 gpc-2.1.i586-pc-msdosdjgpp.zip < d:\djgpp\a.a unzip32 djdev201.zip < d:\djgpp\a.a unzip32 bnu213b.zip < d:\djgpp\a.a unzip32 gcc2952b.zip < d:\djgpp\a.a unzip32 gdb418b.zip < d:\djgpp\a.a unzip32 mak3791b.zip < d:\djgpp\a.a unzip32 txi40b.zip < d:\djgpp\a.a unzip32 mak3791b.zip < d:\djgpp\a.a