[ECOS] eCos 3.0 beta 1 now available for download

John Dallaway john@dallaway.org.uk
Thu Feb 26 11:56:00 GMT 2009


Hi Iilja

Many thanks for your eCos 3.0 beta 1 testing report.

Ilija Kocho wrote:

> 2.
> Test application compiles (and runs correctly) with following warnings:
> 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

Yes, this is still an issue. The offending flags are filtered out in
${ECOS_REPOSITORY}/pkgconf/rules.mak when building the eCos tests. You
can use a similar technique in your own application makefiles when
building C code. For example:

  $(filter-out -Woverloaded-virtual -fno-rtti,$(ECOS_GLOBAL_CFLAGS))

> I know these compiler flags come from ECOS_GLOBAL_CFLAGS but i need
> info. how to get rid of them. Can I just remove them from
> hal_arm_mac7100_mac7100evb.cdl? Btw. they are present in other platforms
> too (LPC 2xxx, etc.)

The issue is that these flags are required for C++ files but deliver the
warning you observe for C files. In the future, we should treat the
CFLAGS and CXXFLAGS separately at the configuration level.

> 3.
> Also upon selection of MAC7100 in configtool following conflicts are
> reported (and resolved by configtool):
>    CYGBLD_GLOBAL_FLAGS
>    CYGBLD_GLOBAL_LDFLAGS
>    CYGBLD_HAL_ARM_EABI
> Although they are resolved and make no problems I would like to remove
> them and it should be possible since they do not appear in other
> platforms (such as LPC 2xxx). Please some hints.

Since CYGPKG_HAL_ARM_MAC7100 requires CYGHWR_HAL_ARM_BIGENDIAN == 1 you
could reduce the number of initial conflicts by adding "-mbig-endian" to
CYGBLD_GLOBAL_CFLAGS and CYGBLD_GLOBAL_LDFLAGS in your platform HAL
packages. However, some configuration changes are unavoidable when
switching targets.

John Dallaway

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