This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Peculiar problem with building RedBoot for Dreamcast [repost]
- From: Mark Salter <msalter at redhat dot com>
- To: drwho8 at worldnet dot att dot net
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Sat, 28 Sep 2002 10:17:10 -0400
- Subject: Re: [ECOS] Peculiar problem with building RedBoot for Dreamcast [repost]
- References: <003001c266a0$21828e80$99c3580c@who>
>>>>> Gregg C Levine writes:
> `/usr/src/dreamcast/ecos/masterdc1_build/hal/sh/sh4/current'
> sh-elf-gcc -c -I/usr/src/dreamcast/ecos/masterdc1_install/include -I/usr/sr
> c/dreamcast/ecos/packages/hal/sh/sh4/current -I/usr/src/dreamcast/ecos/packa
> ges/hal/sh/sh4/current/src -I/usr/src/dreamcast/ecos/packages/hal/sh/sh4/cur
> rent/tests -I. -I/usr/src/dreamcast/ecos/packages/hal/sh/sh4/current/src/ -m
> l -m3 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloade
> d-virtual -ggdb -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-excep
> tions -fvtable-gc -finit-priority -Wp,-MD,src/variant.tmp -o
> src/hal_sh_sh4_variant.o
> /usr/src/dreamcast/ecos/packages/hal/sh/sh4/current/src/variant.S:94: Error:
> invalid operands for opcode
"invalid operands" usually indicates that gcc is choosing the wrong
assembler. In this case, since the filename mentions sh4, I think
you are missing a needed gcc flag. There are a number of SH variants
which have ISA differences that gcc needs to be told about. Some gcc
flags that specifiy code generation for sh4 are:
-m4
-m4-nofpu
-m4-single
-m4-single-only
Look in the gcc manual for other architecture specific flags which
may be of interest.
--Mark
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss