Peter Gerwinski wrote:
Romain Chantereau wrote:
I invoke that gpc -O --automake supp.pas -o supp it make that ! ==> supp.pas:5: module `crt' could not be compiled
Maybe this is only the last error message of a longer sequence? It is possible that `gpc' failed to compile the `crt' unit on your system because it did not find the C compiler.
If this is the case you can recover from this by manually compiling `crtc.c':
cd /usr/lib/gcc-lib/i386-redhat-linux/2.8.1 gcc -c -O crtc.c
I don't have this, I just have : crtbegin.o crtend.o gpc-cpp libgcc.a specs crtbeginS.o crtendS.o gpc1 libgpc.a units in this directory
And `/usr/lib/gcc-lib/i386-redhat-linux/2.8.1/units/crt.pas' is in place?
Nothing, I don't have this, I don't understand.... => I installed gpc with the src.rpm (base and extra)
If the above does not solve your problem, please show me a little more complete output of:
gpc -O --automake supp.pas -o supp -v
tadam !
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.8.1/specs gpc version 19990118, based on gcc-2.8.1 /usr/lib/gcc-lib/i386-redhat-linux/2.8.1/gpc-cpp -lang-pascal -v -nocharescape -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MINOR__=8 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=19990118 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__BITS_LITTLE_ENDIAN__=1 -D__BYTES_LITTLE_ENDIAN__=1 -D__WORDS_LITTLE_ENDIAN__=1 -D__OPTIMIZE__ -Di386 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__ -Asystem(unix) -Acpu(i386) -Amachine(i386) supp.pas /tmp/cc2nE2I2.i GNU CPP version 2.8.1 (i386 GNU/Linux with ELF) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/i386-redhat-linux/include /usr/lib/gcc-lib/i386-redhat-linux/2.8.1/include /usr/include End of search list. /usr/lib/gcc-lib/i386-redhat-linux/2.8.1/gpc1 /tmp/cc2nE2I2.i -quiet -dumpbase supp.pas -O -version -famtmpfile=/tmp/ccEupIq6.gpc -fautomake -o /tmp/cc2nE2I2.sGNU Pascal version 2.8.1 (i386-redhat-linux) compiled by GNU C version pgcc-2.91.66 19990314 (egcs-1.1.2 release). supp.pas:5: module `crt' could not be compiled
Good luck,
Thanks !