Compilation using egcs-2.90.93 on Redhat Linux PII

Frank Peacock peacock@essc.psu.edu
Wed May 26 13:57:00 GMT 1999


Greetings

I am experiencing problems with virtual memory and include files when
compiling with the c compiler in the egcs-2.90.29 suite. What occurs is
that the c compiler seems to create ever-growing temporary libraries in
memory that totally consume all the real memory as well as the swap space.
I have included the output of errors to the console and the result of the
processes command "ps"  to a simple compilation of the c-subroutine which
I have attached.

The following are the errors to standard output.

In file included from main.c:4:
/usr/include/stdio.h:0: numeric constant with no digits
/usr/include/stdio.h:0: warning: unrecognized text at end of #line
In file included from /usr/include/stdio.h:29,
                 from main.c:4:
/usr/include/libio.h:0: numeric constant with no digits
/usr/include/libio.h:0: warning: unrecognized text at end of #line
/usr/include/features.h:0: numeric constant with no digits
/usr/include/features.h:0: warning: unrecognized text at end of #line
/usr/include/features.h:104: invalid #line
In file included from /usr/include/features.h:193,
                 from /usr/include/libio.h:29,
                 from /usr/include/stdio.h:29,
                 from main.c:4:
/usr/include/sys/cdefs.h:0: numeric constant with no digits
/usr/include/sys/cdefs.h:0: warning: unrecognized text at end of #line
In file included from /usr/include/sys/cdefs.h:22,
                 from /usr/include/features.h:193,
                 from /usr/include/libio.h:29,
                 from /usr/include/stdio.h:29,
                 from main.c:4:
/usr/include/gnu/stubs.h:0: numeric constant with no digits
/usr/include/gnu/stubs.h:0: warning: unrecognized text at end of #line
/usr/include/gnu/stubs.h:31: numeric constant with no digits
/usr/include/gnu/stubs.h:31: numeric constant with no digits
/usr/include/gnu/stubs.h:31: invalid #line
/usr/include/gnu/types.h:25: parse error at null character

The following is the result of the ps -l command.

100100     0  6044  6042   0   0   2400   664  18d884     S   p8  0:00
/usr/lib/gcc-lib/i386-linux-gnulibc1/egcs-2.90.29/cc1 /tmp/cca06042.i
-quiet -dumpbase main.c
100100     0  6105  6103  11   0 484948 474604  0          R   p0  0:50
/usr/lib/gcc-lib/i386-linux-gnulibc1/egcs-2.90.29/cc1 /tmp/cca06103.i
-quiet -dumpbase main.c

To describe my installation procedures, I originally had Redhat 5.2
installed, upgraded to 6, then  glib-1.2.1-2.i386.rpm, then 
egcs-2.90.93-1.i386.rpm, egcs-c++-2.90.29-1.i386.rpm and
egcs-objc-2.90.29-1.i386.rpm as well as f2c-19970805-4TL.i386.rpm and
g77-2.90.29-1.i386.rpm.

Since then I have experienced problems similar to this when compiling with
the c compiler.


I noticed that f77 seems to compile but when executing the simple command
"f77" the following occurs is sent to the console: 

/usr/lib/gcc-lib/i386-linux-gnulibc1/egcs-2.90.29/libf2c.a(main.o): In
function `main':
main.o(.text+0x152): undefined reference to `MAIN__'
/usr/lib/gcc-lib/i386-linux-gnulibc1/egcs-2.90.29/libf2c.a(err.o): In
function `f__canseek':
err.o(.text+0x1d): undefined reference to `_fxstat'
/usr/lib/gcc-lib/i386-linux-gnulibc1/egcs-2.90.29/libf2c.a(open.o): In
function `f(int, short, double,...)(void)':
open.o(.text+0x11): undefined reference to `_xstat'
/usr/lib/gcc-lib/i386-linux-gnulibc1/egcs-2.90.29/libf2c.a(open.o): In
function `f_open':
open.o(.text+0x331): undefined reference to `_xstat'
open.o(.text+0x381): undefined reference to `_xstat'
/usr/lib/gcc-lib/i386-linux-gnulibc1/egcs-2.90.29/libf2c.a(util.o): In
function `f__inode':
util.o(.text+0xb1): undefined reference to `_xstat'

I would greatly like to resolve the problem. If it simplifies things,
could you let me know of the latest GNU compilers that are stable that I
can replace this set with?

Thank you

Frank Peacock










More information about the Gcc-bugs mailing list