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: CYGBLD_ATTRIB_WEAK_ALIAS error !


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


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