Building v3.4.6: fails to build c-parse.c

Georg-Johann Lay avr@gjlay.de
Thu Jan 16 12:41:00 GMT 2020


Hi, I am just trying to build cross-gcc from releases/gcc-3.4.6.

Building, I am getting

gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long 
-Wno-error  -DHAVE_CONFIG_H    -I. -I. 
-I../../../gcc.gnu.org/gcc-3.4.6/gcc 
-I../../../gcc.gnu.org/gcc-3.4.6/gcc/. 
-I../../../gcc.gnu.org/gcc-3.4.6/gcc/../include  c-parse.c -o c-parse.o
gcc: error: c-parse.c: No such file or directory
gcc: fatal error: no input files

AFAIK c-parse.c is a generated file, but running
$(srcdir)/contrib/gcc_update --touch
did not help...

After cd'ing to $(builddir)/gcc it tries to build that file, but:

bison  -o c-parse.c c-parse.y
c-parse.y:1650.19-20: error: $$ for the midrule at $4 of ‘structsp_attr’ 
has no declared type
                 { $$ = start_struct (RECORD_TYPE, $2);
                    ^^
c-parse.y:1661.19-20: error: $$ for the midrule at $4 of ‘structsp_attr’ 
has no declared type
                 { $$ = start_struct (UNION_TYPE, $2); }
                    ^^
c-parse.y:1670.19-20: error: $$ for the midrule at $4 of ‘structsp_attr’ 
has no declared type
                 { $$ = start_enum ($2); }
                    ^^
c-parse.y:1675.19-20: error: $$ for the midrule at $3 of ‘structsp_attr’ 
has no declared type
                 { $$ = start_enum (NULL_TREE); }
                    ^^
Makefile:1334: recipe for target 'c-parse.c' failed


Ideas?

Build compiler is gcc v4.9.4
bison is v3.0.4
flex is v2.6.4

Thanks,

Johann



More information about the Gcc-help mailing list