gcc cross compiler build fails with target=sh-elf

Nick - eCos Developer n_ecos@targus.net
Mon Feb 5 12:51:00 GMT 2001


I'm having problems building a gcc cross compiler 
with target=sh-elf for the Hitachi SH. I'm using gcc20001225. The compile errors 
are specific to the sh processor. The errors are pretty obivious, the 
definitions in rtl.h don't match those in the generated (from sh.md) file 
insn-flags.h. Is this something I can fix, or do I need to get a different 
version of gcc?
 
gcc -DCROSS_COMPILE 
-DIN_GCC     -g -O2  -DHAVE_CONFIG_H  -o genflags 
\  genflags.o rtl.o bitmap.o print-rtl.o ` case "obstack.o" in ?*) echo 
obstack.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) 
echo  ;; esac `  ` c ase "" in ?*) echo  ;; esac ` ` case "" 
in ?*) echo  ;; esac ` -ladvapi32 ./genflags 
/src/gcc-2.95.2/gcc/config/sh/sh.md > 
tmp-flags.h /src/gcc-2.95.2/gcc/move-if-change tmp-flags.h 
insn-flags.h insn-flags.h is unchanged touch s-flags gcc -c 
-DCROSS_COMPILE -DIN_GCC     -g -O2  
-DHAVE_CONFIG_H    -I. -I/src/gcc-2. 95.2/gcc 
-I/src/gcc-2.95.2/gcc/config -I/src/gcc-2.95.2/gcc/../include 
/src/gcc- 2.95.2/gcc/function.c In file included from 
/src/gcc-2.95.2/gcc/function.c:48: insn-flags.h:393: conflicting types for 
`gen_beq' /src/gcc-2.95.2/gcc/rtl.h:1032: previous declaration of 
`gen_beq' insn-flags.h:397: conflicting types for 
`gen_ble' /src/gcc-2.95.2/gcc/rtl.h:1034: previous declaration of 
`gen_ble' insn-flags.h:398: conflicting types for 
`gen_bge' /src/gcc-2.95.2/gcc/rtl.h:1033: previous declaration of 
`gen_bge' insn-flags.h:403: conflicting types for 
`gen_jump' /src/gcc-2.95.2/gcc/rtl.h:1031: previous declaration of 
`gen_jump' /src/gcc-2.95.2/gcc/function.c: In function 
`expand_function_end': /src/gcc-2.95.2/gcc/function.c:6386: too many 
arguments to function 
`gen_ic_inva lidate_line' /src/gcc-2.95.2/gcc/function.c:6505: too many 
arguments to function `gen_jump'
 



More information about the Gcc-help mailing list