From: Pete L. <pet...@st...> - 2002-01-21 15:39:27
|
Hi all, I've recently built the 3.0.3 version of the GCC tools, and while trying to re-compile the kernel, I've run into some troubles. The first is that when I used -m4-nofpu flag, the compiler defined __sh3__, which caused some problems with sh_sci.cc sh-sci.c: In function `sci_init_pins_scif': sh-sci.c:242: `SCPCR' undeclared (first use in this function) sh-sci.c:242: (Each undeclared identifier is reported only once sh-sci.c:242: for each function it appears in.) sh-sci.c:257: `SCPDR' undeclared (first use in this function) sh-sci.c: At top level: sh-sci.c:60: warning: `sci_init_pins_sci' declared `static' but never defined sh-sci.c:265: warning: `sci_init_pins_irda' defined but not used make[3]: *** [sh-sci.o] Error 1 So I changed the CFLAGS in the arch/sh/Makefile to -m4 -mno-implicit-fp, and made clean and recompiled. In this configuration all the source compiles, but during the link step I get the message "target elf32-sh-linux not found". This is using the 3.0.3 GCC tools, and the 2.4.13-pre2 kernel distribution. /opt/xgcc-sh-3.0.3/bin/sh-elf-strip: supported targets: elf32-sh elf32-shl coff-sh coff-shl coff-sh-small coff-shl-small elf32-little elf32-big srec symbolsrec tekhex binary ihex So, the real questions are these; 1. What is the correct m4 flag to use for SH4 boards with the 3.0.3 tools? 2. If the -mno-implicit-fp is to be used, what do I need to recompile to add the elf32-sh-linux to the list of supported targets? (binutils??) 3. If I should be using -m4-no-fpu, what is the correct way to avoid the compilation errors from sh-sci.c? thanks for your time. -pete |