This is the mail archive of the ecos-discuss@sources.redhat.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]
Other format: [Raw text]

Re: RE: any experiences with arm gcc 3.4.1 and ecos ?


Tom Lynn wrote:

On 2 Aug 2004, Richard Raunch wrote:
> I download now eCos with following command:
> cvs.exe -z3 -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos co -P ecos
>
> problem with multiple definitions is solved, but I get following error:
>
> /opt/ecos/gnutools/arm-elf/bin/../lib/gcc/arm-elf/3.4.1/../../../../arm-elf/


> lib/libsupc++.a(vterminate.o)(.text+0x22c):../../../../gcc-3.4.1/libstdc++-v

> 3/libsupc++/vterminate.cc:94: undefined reference to `_impure_ptr'
>
> richard

Alexander Neundorf has the same problem with gnuarm.org's 3.4.1
<http://sources.redhat.com/ml/ecos-discuss/2004-08/msg00112.html>
and I'm getting this problem too, with (a slightly hacked version of)
gnuarm.org's 3.4.2.

(by which I meant 3.4.1). On the (unchecked) assumption that this is only
called by vterminate.cc, which is for handling crashing code anyway, I'm
getting successful linking by including a copy of
newlib\libc\reent\impure.c and
extern "C" void __cxa_pure_virtual() {while(1);}
in my code manually. It whines a bit, but it does seem to work, and my
quite simple code (dumping serial port bytes) is now running, though I've not
tried to use errno.


(The whining messages, which could doubtless be sorted relatively easily:
impure.c:12: warning: missing initializer
impure.c:12: warning: (near initialization for `impure_data._new._reent._localtime_buf.__tm_isdst')
impure.c:12: warning: missing initializer
impure.c:12: warning: (near initialization for `impure_data._atexit')
)


It's not a good solution, but sometimes you have to use workarounds.
Hopefully someone will tell me what I should be doing soon.

Tom

--
Tom Lynn, Software Engineer, Hypertag Ltd.
William Gates Building, JJ Thomson Avenue, Cambridge CB3 0FD

Tel: 01223 763710 Fax: 08714 335288 Web: www.hypertag.com



--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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