This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Peculiar problem with building RedBoot for Dreamcast [repost]


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]