Greetings,
I unpacked gpc-19990118.i586-pc-linux-gnulibc1.tar.gz, distributed the files and now I can't compile anything at all. I have the same problem that was reported in January 1998
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
Has there been any progress in fixing this problem? Or is it something silly that I have done in the installation.
Please reply to me by e-mail at nhi025@abdn.ac.uk
Thanks in advance
John Ollason
John, The only way I have discoverd to rectify this problem is just to get the source to GCC & GPC and recompile. I know this is a non-trivial thing to do if you have never done this before but I can guarantee this to work.
All the best and good luck! Ken Linder
On Thu, 27 May 1999 nhi025@abdn.ac.uk wrote:
Greetings,
I unpacked gpc-19990118.i586-pc-linux-gnulibc1.tar.gz, distributed the files and now I can't compile anything at all. I have the same problem that was reported in January 1998
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
Has there been any progress in fixing this problem? Or is it something silly that I have done in the installation.
Please reply to me by e-mail at nhi025@abdn.ac.uk
Thanks in advance
John Ollason
nhi025@abdn.ac.uk wrote:
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 [...]
Good news: We have identified this problem as a configuration error in the libc5 installation of certain Linux distributions.
Changing to a libc6 (glibc2) version of GPC will solve the problem for you. Please download the "pc-linux-gnu" binary GPC distribution.
The correct solution of course would be to tell the makers of your Linux distribution to fix that configuration error.
Hope this helps,
Peter