public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Bob Koninckx <bob.koninckx@mech.kuleuven.ac.be>
To: "Gary D. Thomas" <gary.thomas@mind.be>
Cc: eCos Discussion <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] _impure_ptr ??
Date: Sun, 23 Mar 2003 16:12:00 -0000	[thread overview]
Message-ID: <1048349264.24126.4.camel@pc-002> (raw)
In-Reply-To: <1048340942.2225.24.camel@pc-002>


This redefinition of __xca_pure_virtual seems to solve the problem. No
more link errors, application runs fins. Apparently, the compiler pulls
this function in as soon as you have at least one pure virtual function
in your application.

Problem is hereby signalled :-)

Bob

 
On Sat, 2003-03-22 at 14:49, Bob Koninckx wrote:
> Gary,
> 
> Just a small update on the situation.
> 
> If i provide my own definition 
> 
> extern "C" void
> __cxa_pure_virtual(void) {}
> 
> and make sure the linker finds this one _before_ the stuff in libsupc++,
> everything links ok. I am now going to debug the application and see if
> everything still works as it should.
> 
> If this is all that needs to be done, that's fine with me. I suppose
> more advanced recovery than the default message to stderr (apparently
> that's what they do in newlib) could be necessary anyway.
> 
> Some further investigation showed that this __impure_ptr comes from
> newlib for sure. Apparently, a 'write' function from newlib instead of
> ecos libc gets called by __cxa_pure_virtual, which makes me cautious
> about the compiler I build. Any idea how I can verify that my tools got
> indeed build correctly ?
> 
> Bob
> 
> __
> 
> On Sat, 2003-03-22 at 14:01, Bob Koninckx wrote:
> > On Sat, 2003-03-22 at 13:48, Gary D. Thomas wrote:
> > > On Sat, 2003-03-22 at 05:33, Bob Koninckx wrote:
> > > > Upgraded to the 2.0 Beta. Got everything to compile, the eCos library
> > > > builds just fine. When linking my application however (powerpc-eabi
> > > > target, linux host), I get the following errors
> > > > 
> > > > powerpc-eabi-gcc
> > > > -L/home/bob/software/build/eCos/ec555/vbcom/library/ecos/install/lib
> > > > -Wl,-static -Wl,--gc-sections -nostartfiles -nostdlib -Xlinker -Map
> > > > -Xlinker vbcom.map -o bin/vbcom.elf .obj/vbcom.o library/vbcom.a
> > > > library/vbcom_extras.o
> > > > /home/bob/software/build/eCos/ec555/vbcom/library/sigc++/install/lib/libsigc++.a -lsupc++ -Ttarget.ld
> > > > /usr/local/crossgcc/powerpc-eabi/lib/gcc-lib/powerpc-eabi/3.2.1/../../../../powerpc-eabi/lib/libsupc++.a(pure.o): In function `__cxa_pure_virtual':
> > > > /home/bob/tmp/src/build_gcc/powerpc-eabi/libstdc++-v3/libsupc++/../../../../gcc-3.2.1/libstdc++-v3/libsupc++/pure.cc:49: undefined reference to `_impure_ptr'
> > > > /home/bob/tmp/src/build_gcc/powerpc-eabi/libstdc++-v3/libsupc++/../../../../gcc-3.2.1/libstdc++-v3/libsupc++/pure.cc:49: undefined reference to `_impure_ptr'
> > > > collect2: ld returned 1 exit status
> > > > make: *** [bin/vbcom.elf] Error 1
> > > > 
> > > > Anybody any idea ?
> > > > Could it be that something went wrong building the tools ?
> > > 
> > > Does this happen for all programs, or just some?
> > > Can you build the standard eCos tests?
> > 
> > Hi Gary,
> > 
> > Nope, linking tests fails, but here the error is that it does not find
> > operators new and delete. Has also to do with libsupc++, for sure. I am
> > trying to find out where the makefiles must be modified in order to get
> > libsupc++ added to the list of libraries
> > 
> > > Were you able to build this program before?
> > 
> > Yep, but that was with 2.95.2 ...
> > 
> > > 
> > > My guess is that you have a program that is using something
> > > from libsupc++ that hasn't been tested/implemented.
> > 
> > Looking further into it
> > 
> > > 
> > > -- 
> > > .--------------------------------------------------------.
> > > |       Mind: Embedded Linux and eCos Development        |
> > > |--------------------------------------------------------|
> > > | Gary Thomas              email:  gary.thomas@mind.be   |
> > > | Mind ( http://mind.be )  tel:    +1 (970) 229-1963     |
> > > | gpg: http://www.chez-thomas.org/gary/gpg_key.asc       |
> > > '--------------------------------------------------------'
> > -- 
> > ----------------------------------------------------------------------
> > ir. Bob Koninckx
> > Katholieke Universiteit Leuven
> > Division Production Engineering,                   tel.  +32 16 322535
> > Machine Design and Automation                      fax.  +32 16 322987
> > Celestijnenlaan 300B                  bob.koninckx@mech.kuleuven.ac.be
> > B-3001 Leuven Belgium               http://www.mech.kuleuven.ac.be/pma
> > ----------------------------------------------------------------------
> -- 
> ----------------------------------------------------------------------
> ir. Bob Koninckx
> Katholieke Universiteit Leuven
> Division Production Engineering,                   tel.  +32 16 322535
> Machine Design and Automation                      fax.  +32 16 322987
> Celestijnenlaan 300B                  bob.koninckx@mech.kuleuven.ac.be
> B-3001 Leuven Belgium               http://www.mech.kuleuven.ac.be/pma
> ----------------------------------------------------------------------
-- 
----------------------------------------------------------------------
ir. Bob Koninckx
Katholieke Universiteit Leuven
Division Production Engineering,                   tel.  +32 16 322535
Machine Design and Automation                      fax.  +32 16 322987
Celestijnenlaan 300B                  bob.koninckx@mech.kuleuven.ac.be
B-3001 Leuven Belgium               http://www.mech.kuleuven.ac.be/pma
----------------------------------------------------------------------


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

  reply	other threads:[~2003-03-22 16:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-22 12:48 Bob Koninckx
2003-03-22 12:58 ` Gary D. Thomas
2003-03-22 13:46   ` Bob Koninckx
2003-03-22 14:05     ` Bob Koninckx
2003-03-23 16:12       ` Bob Koninckx [this message]
2003-03-24 21:31         ` Bart Veer
2003-03-24 21:35           ` Gary D. Thomas
2003-03-24 21:37             ` Bob Koninckx
2003-03-24 22:45             ` Bart Veer
2003-03-25  1:09               ` Jonathan Larmour
2003-03-24 21:42           ` Thomas Koeller
2003-03-24 23:08             ` Bart Veer
2003-03-24 22:36           ` Jonathan Larmour
2006-03-16 17:14 [ECOS] "_impure_ptr"? Michele Portolan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1048349264.24126.4.camel@pc-002 \
    --to=bob.koninckx@mech.kuleuven.ac.be \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=gary.thomas@mind.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).