[ECOS] CYGBLD_ATTRIB_WEAK_ALIAS error !

Gary Thomas gary@mlbassoc.com
Wed Sep 22 18:13:00 GMT 2004


On Wed, 2004-09-22 at 09:24, firs wrote:
> ecos-discuss!
> 
>   	when i build the ecos , i found every *.cxx with the defination "externC int
> putc( int, FILE * ) CYGBLD_ATTRIB_WEAK_ALIAS(fputc);" got the error as the following:	
> 
> /home/mips3.2/bin/mips-elf-gcc -c  -I/ecos-d/cygwin/home/ecos/ecos-mips/install/include -I/ecos-d/cygwin/home/ecos/ecos-2.0/packages/language/c/libc/string/v2_0 -I/ecos-d/cygwin/home/ecos/ecos-2.0/packages/language/c/libc/string/v2_0/src -I
> /ecos-d/cygwin/home/ecos/ecos-2.0/packages/language/c/libc/string/v2_0/tests -I. -I/ecos-d/cygwin/home/ecos/ecos-2.0/packages/language/c/libc/string/v2_0/src/ -mips32 -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual
>  -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -fno-builtin -G0 -Wp,-MD,src/memchr.tmp -o src/language_c_libc_string_memchr.o  ecos-d/cygwin/home/ecos/ecos-2.0/packages/language/c/libc/stri
> ng/v2_0/src/memchr.cxx
> 
> /ecos-d/cygwin/home/ecos/ecos-2.0/packages/language/c/libc/string/v2_0/src/memchr.cxx:71: `void* memchr(const void*, int, unsigned int)' defined both normally and as an alias
> 
> i can't find out the reason , anybody could help me ?

Try running a different version of GCC.  GCC-3.2 had problems with
this, fixed in 3.3.  It should also be OK with 2.95

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


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



More information about the Ecos-discuss mailing list