This is the mail archive of the ecos-discuss@sourceware.cygnus.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]

Asserts


Hi All!

I need to use eCos asserts.  But I have some problems with
ecos target library compiling.

My host - Linux Redhat 6.0, my target - linux synthetic

I did following:

1. ecosconfig new linux
2. ecosconfig check
3. ecosconfig tree
4. In ecos.scc file I have enabled CYGPKG_INFRA_DEBUG option.
5. make
<skipped>
make -r -C kernel/v1_3_1 build
make[1]: Entering directory `/home/borg/work/linux-synth/kernel/v1_3_1'
i686-pc-linux-gnu-gcc -c  -I/home/borg/work/linux-synth/install/include -I/u
sr/local/src/eCos/ecos/packages/kernel/v1_3_1 -I/usr/local/src/eCos/ecos/pac
kages/kernel/v1_3_1/src -I/usr/local/src/eCos/ecos/packages/kernel/v1_3_1/te
sts -I. -I/usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/ -Wall -Wp
ointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O
2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc 
-finit-priority -Wp,-MD,src/mem/memfixed.tmp -o src/mem/kernel_memfixed.o
/usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/memfixed.cxx
In file included from
/usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/memfixed.cxx:61:
/home/borg/work/linux-synth/install/include/cyg/kernel/mempolt2.inl:401:
prototype for `cyg_bool Cyg_Mempolt2<T>::check_this(cyg_assert_class_zeal)
const' does not match any in class `Cyg_Mempolt2<T>'
/home/borg/work/linux-synth/install/include/cyg/kernel/mempolt2.hxx:75:
candidate is: bool Cyg_Mempolt2<T>::check_this(cyg_assert_class_zeal) const
/home/borg/work/linux-synth/install/include/cyg/kernel/mempolt2.inl: In
method `cyg_bool Cyg_Mempolt2<T>::check_this(cyg_assert_class_zeal) const':
/home/borg/work/linux-synth/install/include/cyg/kernel/mempolt2.inl:401:
template definition of non-template `cyg_bool
Cyg_Mempolt2<T>::check_this(cyg_assert_class_zeal) const'
/usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/memfixed.cxx: At top
level:
/usr/local/src/eCos/ecos/packages/kernel/v1_3_1/src/mem/memfixed.cxx:72: new
declaration `cyg_bool Cyg_Mempool_Fixed::check_this(cyg_assert_class_zeal)
const'
/home/borg/work/linux-synth/install/include/cyg/kernel/memfixed.hxx:72:
ambiguates old declaration `bool
Cyg_Mempool_Fixed::check_this(cyg_assert_class_zeal) const'
make[1]: *** [src/mem/memfixed.o.d] Error 1
make[1]: Leaving directory `/home/borg/work/linux-synth/kernel/v1_3_1'
make: *** [build] Error 2

Why there are compiling errors?

Thanks in advance.

--
Boris Guzhov




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