can build toolchain in two steps, but not one
Dan Kegel
dank@kegel.com
Fri Sep 9 03:17:00 GMT 2005
Robert P. J. Day wrote:
> (SIDE NOTE: previously, to select sh3eb, i had the following line in
> the .dat file:
>
> TARGET_CFLAGS="-O -m3 -mb"
>
> however, based on this excerpt from arch/sh/Makefile:
>
> cflags-y := -mb
> cflags-$(CONFIG_CPU_LITTLE_ENDIAN) := -ml
> ...
> cflags-$(CONFIG_CPU_SH3) += -m3
>
> it appears that i can delete those two -m flags and it won't make any
> difference, so i dropped them and it still worked.)
The TARGET_CFLAGS are there mostly for the benefit of building glibc.
> + make ARCH=sh prepare include/linux/version.h
> SPLIT include/linux/autoconf.h -> include/config/*
> CC scripts/mod/empty.o
> cc1: error: invalid option â'b'
> cc1: error: invalid option â'3'
> make[2]: *** [scripts/mod/empty.o] Error 1
> make[1]: *** [scripts/mod] Error 2
> make: *** [scripts] Error 2
>
>
> what that tells me is that the perfectly valid SH3 options -mb and
> -m3 are unrecognized, which further suggests that the wrong compiler
> is being used since it doesn't recognize SH3-specific options.
Maybe the problem is that the kernel makefile is applying
target cflags when it shouldn't, for some reason.
- Dan
--
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list