> From: venumadhav > > I trying to build the ecos with arm-elf-gcc 4.1.1, I am > getting following errors : > ====================================================================== > cc1: warning: command line option "-Woverloaded-virtual" is valid for > C++/ObjC++ but not for C > cc1: warning: command line option "-fno-rtti" is valid for > C++/ObjC++ but not for C > cc1: warning: command line option "-fvtable-gc" is valid for > C++/ObjC++ but not for C > /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/io/serial/ > v2_0/src/common/haldiag.c: > In function 'haldiag_getc': > /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/io/serial/ > v2_0/src/common/haldiag.c:122: > warning: pointer targets in passing argument 1 of > 'hal_if_diag_read_char' differ in signedness arm-elf-ar rcs > /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_install/ > lib/libextras.a > src/common/io_serial_serial.o src/common/io_serial_tty.o > src/common/io_serial_haldiag.o > make[1]: Leaving directory > `/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/i > o/serial/v2_0' > make -r -C infra/v2_0 build > make[1]: Entering directory > `/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/i > nfra/v2_0' > arm-elf-gcc -c > -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_instal > l/include > -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0 > -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0/src > -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2 > _0/tests -I. > -I/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0/src/ > -mcpu=arm9 -Wall -Wpointer-arith -Wstrict-prototypes -Winline > -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections > -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc > -Wp,-MD,src/startup.tmp -o src/infra_startup.o > /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/packages/infra/v2_0 > /src/startup.cxx > cc1plus: warning: command line option "-Wstrict-prototypes" > is valid for C/ObjC but not for C++ > cc1plus: warning: switch '-fvtable-gc' is no longer supported > make[1]: Leaving directory > `/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build/i > nfra/v2_0' > /ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_install/ include/cyg/kernel/thread.hxx:315: > error: extra qualification 'Cyg_Thread::' on member 'reinitialize' > make: Leaving directory > `/ecos-e/work/ecos/ecos-2.0_cygwin/ecos-2.0/ecos_4_1_1_build' > make[1]: *** [src/startup.o.d] Error 1 > make: *** [build] Error 2 > ========================================================= > > Any help will be really appreciated.
The warnings about boilerplate C++ options being ignored in C is normal. But the single actual error at the end of that is the result of a nonstandard (and pointless) bit of syntax that the earlier compilers were willing to forgive, but eventually was ruled illegal in the more recent compiler. It was fixed in the latest rev of the eCos source code in the obvious manner. -- Ciao, Paul D. DeRocco Paul mailto:[EMAIL PROTECTED] -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
