>>>>> "Andrew" == Andrew Lunn <[EMAIL PROTECTED]> writes:
Andrew> On Fri, Oct 21, 2005 at 01:07:04PM +0100, Bart Veer wrote:
>> >>>>> "Andrew" == Andrew Lunn <[EMAIL PROTECTED]> writes:
>>
Andrew> gcc 4.0.2 has broken the synth cxxsupp test again. Other things seem
Andrew> OK.
>>
Andrew> gcc -L/home/lunn/eCos/work/install/lib -Ttarget.ld -o
Andrew> /home/lunn/eCos/work/install/tests/infra/current/tests/cxxsupp
Andrew> tests/cxxsupp.o -g -nostdlib -Wl,-static
Andrew> -Wl,--fatal-warnings
>>
Andrew> /usr/lib/gcc/i486-linux-gnu/4.0.2/libsupc++.a(vterminate.o):
Andrew> In function `__gnu_cxx::__verbose_terminate_handler()':
Andrew> undefined reference to `stderr'
>>
>> What configuration is this?
Andrew> You mean eCos configuration? default template.
That does not make sense. __verbose_terminate_handler() is in
libsupc++ which is in the same linker group as libtarget.a, and in the
default eCos configuration all the unresolved symbols should be
provided. A replacement __verbose_terminate_handler() is still needed
at some point to cope with configurations which pull in C++ support
but not stdio. I'll take care of that when I get a chance.
>>>>> "Andrew" == Andrew Lunn <[EMAIL PROTECTED]> writes:
<snip>
Andrew> It seems Debian have changed something again. It now links
Andrew> OK,
Looks like they must have messed up the previous libsupc++ build
somehow.
Andrew> but i get a compiler warning....
Andrew>
/home/lunn/eCos/anoncvs-clean/packages/infra/current/tests/cxxsupp.cxx:65:
warning: 'class Pure' has virtual functions but non-virtual destructor
Andrew>
/home/lunn/eCos/anoncvs-clean/packages/infra/current/tests/cxxsupp.cxx:95:
warning: 'class Derived' has virtual functions but non-virtual destructor
Those warnings are not important, but if you really want to get rid of
them:
Index: cxxsupp.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/infra/current/tests/cxxsupp.cxx,v
retrieving revision 1.5
diff -u -r1.5 cxxsupp.cxx
--- cxxsupp.cxx 16 Apr 2004 03:33:05 -0000 1.5
+++ cxxsupp.cxx 24 Oct 2005 21:20:12 -0000
@@ -67,6 +67,7 @@
int instance;
public:
Pure(int i);
+ virtual ~Pure() {}
virtual void pure_fun1(void) = 0;
virtual void pure_fun2(void) = 0;
virtual void impure_fun1(void);
@@ -95,6 +96,7 @@
{
public:
Derived(int i);
+ virtual ~Derived() {}
void pure_fun1(void);
void pure_fun2(void);
void impure_fun2(void);
Bart
--
Bart Veer eCos Configuration Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss