[ECOS] Problems with var_mk_defs.c

Gary Thomas gary@mlbassoc.com
Thu Oct 16 12:04:00 GMT 2003


On Thu, 2003-10-16 at 01:56, James Yates wrote:
> I tried removing the hash, as a temporary fix i change DEFINE to:
> 
> #define DEFINE(sym, val) \
>         asm volatile("\n\t.equ\t" #sym ",0" : : "i" (val))
> 
> Which effectively then outputs :
> 
>  .equ	HAL_UCACHE_SIZE, 0
>  .loc 1 82 0
> 
> However, this seemed to cause other problems. The compiler bombed after this with the following:
> 
> sh-elf-gcc -mb -m2 -O2 -save-temps -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -ggdb -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -Wa,-am  -I/ecos-d/Dev/eCos/builds/current/pc388_install/include -I/ecos-d/ecos/ecos/packages/hal/sh/sh2/current -I/ecos-d/ecos/ecos/packages/hal/sh/sh2/current/src -I/ecos-d/ecos/ecos/packages/hal/sh/sh2/current/tests -I. -Wp,-MD,sh2_offsets.tmp -o var_mk_defs.tmp /ecos-d/ecos/ecos/packages/hal/sh/sh2/current/src/var_mk_defs.c
> /opt/ecos_new/gnutools/sh-elf/bin/../lib/gcc-lib/sh-elf/3.2.1/../../../../sh-elf/bin/ld: cannot find -
> make[1]: Leaving directory `/ecos-d/Dev/eCos/builds/current/pc388_build/hal/sh/sh2/current'
> lc
> make: Leaving directory `/ecos-d/Dev/eCos/builds/current/pc388_build'
> collect2: ld returned 1 exit status
> make[1]: *** [/ecos-d/Dev/eCos/builds/current/pc388_install/include/cyg/hal/sh2_offsets.inc] Error 1
> make: *** [build] Error 2
> 
> I can only assume that this must be a compiler problem. I am currently building the latest gcc v3.3.1 for the sh-elf platform to see if this fixes the problem. Apart from that I am completely stuck.
> 

Try running this command manually, and add the "-v" and "-save-temps" 
options.  The expanded output may provide some clues.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list