This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: eCos 3.0 beta 1 now available for download
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Ilija Kocho <ilijak at siva dot com dot mk>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 26 Feb 2009 11:56:16 +0000
- Subject: Re: [ECOS] eCos 3.0 beta 1 now available for download
- References: <49A109B7.8020502@dallaway.org.uk> <49A6741A.5090003@siva.com.mk>
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