This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs can't build make-3.76.1


Egcs-2.91.66 running on Redhat Linux Version 6.0, fails to compile the
file arscan.o from the make-3.76.1 release.  Relevant version numbers
are:

$ gcc --version
egcs-2.91.66
$ make --version
GNU Make version 3.77, by Richard Stallman and Roland McGrath.
...


Running the following few lines doesn't generate any errors and
generates an object that links into what seems to be a working make.
This makes me suspect that the problem is in the driver.

$ gcc -v -DHAVE_CONFIG_H -I. -I. -I. -I./glob -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\" -E arscan.c > arscen-E.c
$ gcc -c arscen-E.c -o arscan.o


Here is the output from the offending invocation:

$ make arscan.o
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./glob -DLIBDIR=\"/usr/local/lib\" -DINCLUDEDIR=\"/usr/local/include\"  -g -O2 -c arscan.c
arscan.c:610: warning: preprocessing directive not recognized within macro arg
arscan.c:610: warning: preprocessing directive not recognized within macro arg
arscan.c:610: warning: preprocessing directive not recognized within macro arg
arscan.c: In function `ar_name_equal':
arscan.c:605: undefined or invalid # directive
arscan.c:607: undefined or invalid # directive
arscan.c:608: parse error before `2'
arscan.c:609: undefined or invalid # directive
arscan.c:610: parse error before `#'
arscan.c:610: `cray' undeclared (first use in this function)
arscan.c:610: (Each undeclared identifier is reported only once
arscan.c:610: for each function it appears in.)
arscan.c:610: parse error before `1'
arscan.c:610: parse error before `#'
arscan.c:610: parse error before `1'
arscan.c:610: parse error before `)'
arscan.c:610: `__s1_len' undeclared (first use in this function)
arscan.c:610: `__s2_len' undeclared (first use in this function)
arscan.c:610: parse error before `)'
arscan.c: At top level:
arscan.c:615: parse error before `&&'
arscan.c:615: warning: data definition has no type or storage class
arscan.c:615: parse error before `}'
arscan.c:615: conflicting declarations of `__result'
arscan.c:615: `__result' previously declared here
arscan.c:615: `name' undeclared here (not in a function)
arscan.c:615: `__s2' undeclared here (not in a function)
arscan.c:615: initializer element is not constant
arscan.c:615: parse error before `if'
arscan.c:615: conflicting declarations of `__result'
arscan.c:615: `__result' previously defined here
arscan.c:615: warning: data definition has no type or storage class
arscan.c:615: parse error before `}'
arscan.c:615: warning: data definition has no type or storage class
arscan.c:615: parse error before `}'
arscan.c:615: redefinition of `__result'
arscan.c:615: `__result' previously defined here
arscan.c:615: `__s1' undeclared here (not in a function)
arscan.c:615: `mem' undeclared here (not in a function)
arscan.c:615: initializer element is not constant
arscan.c:615: parse error before `if'
arscan.c:615: conflicting declarations of `__result'
arscan.c:615: `__result' previously defined here
arscan.c:615: warning: data definition has no type or storage class
arscan.c:615: parse error before `}'
make: *** [arscan.o] Error 1

		Jonathan Ryshpan <jon@dnai.com>

		And God fulfills himself in many ways
		Lest one good custom should corrupt the world.
		-- Tennyson


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]