I am having trouble with GPC 971001 on my RedHat linux box. It doesn't
compile _anything_, but always gives the following error, regardless
of what I try to compile:
/tmp/cca00834.i:1: numeric constant with no digits
/tmp/cca00834.i:1: numeric constant with no digits
/tmp/cca00834.i:1: invalid #line
/tmp/cca00834.i:2: warning: missing program header
/tmp/cca00834.i:2: parse error at null character
the output of gpc 'trig.pas -v' is:
Reading specs from /usr/lib/gcc-lib/i586-unknown-linux/2.7.2.1/specs
gpc version 971001(2.7.2.1)
/usr/lib/gcc-lib/i586-unknown-linux/2.7.2.1/gpc-cpp -lang-pascal -v
-nocharescape -undef -D__GNUC__=2 -D__GPC__=2 -D__GNUC_MINOR__=7
-D__ELF__ -Dunix -Di386 -Dlinux -D__ELF__ -D__unix__ -D__i386__
-D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix)
-Acpu(i386) -Amachine(i386) -D__i486__ trig.pas /tmp/cca00815.i
GNU CPP version 971001(2.7.2.1) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/i586-unknown-linux/include
/usr/lib/gcc-lib/i586-unknown-linux/2.7.2.1/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i586-unknown-linux/2.7.2.1/gpc1 /tmp/cca00815.i
-quiet -dumpbase trig.pas -version -famtmpfile=trig.gpc -o
/tmp/cca00815.s
GNU Pascal version 971001(2.7.2.1) (i386 Linux/ELF) compiled by GNU C
version 2.7.2.1.
/tmp/cca00815.i:1: numeric constant with no digits
/tmp/cca00815.i:1: numeric constant with no digits
/tmp/cca00815.i:1: invalid #line
/tmp/cca00815.i:2: warning: missing program header
/tmp/cca00815.i:2: parse error at null character
what else can I say??
I did not compile it myself, but used the binary package available.
I use a 486
gpc v2.0 worked, but not with the -g flag (that's a whole different problem)
I have libc version 5.3.12
I remember hearing it proposed somewhere that this problem might be a
result of an old libc, but I haven't heard this confirmed by anybody. I
think this was proposed in the gpc 1997 mailing list archive, but I never
heard if it was resolved, and I don't subscribe to the list...
Currently, I have switched back to gpc 2.0, which seems to work fine...
I appreciate any help,
George Brewster