public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] _impure_ptr ??
@ 2003-03-22 12:48 Bob Koninckx
  2003-03-22 12:58 ` Gary D. Thomas
  0 siblings, 1 reply; 14+ messages in thread
From: Bob Koninckx @ 2003-03-22 12:48 UTC (permalink / raw)
  To: ecos-discuss

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 ?

Thanks,
Bob

-- 
----------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [ECOS] "_impure_ptr"?
@ 2006-03-16 17:14 Michele Portolan
  0 siblings, 0 replies; 14+ messages in thread
From: Michele Portolan @ 2006-03-16 17:14 UTC (permalink / raw)
  To: ecos-discuss

Hello, I am having some problems in adapting an application to eCos:
when I compile it by itself no problems, everyting works just fine.
If on the other hand I put it into an object and link it inside an eCos framework I get the following error:

D:\cygwin\home\portolan\testbenches\proto\src\aescrypt2-rc1/aes_monte_carlo.c:80: undefined reference to `_impure_ptr'
D:\cygwin\home\portolan\testbenches\proto\src\aescrypt2-rc1/aes_monte_carlo.c:80: undefined reference to `_impure_ptr'

What is this "_impure_ptr"? How can I resolve the error?
Thanks anyone,

Michele

PS: to be complete: here are the compiler calls

to create the object:
sparc-elf-gcc -g -O2 -msoft-float -I -I../../../build/mingw_ecos/install/include -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority -c -o ../../objs/aes_monte_carlo.o aes_monte_carlo.c

to link it:
sparc-elf-gcc  -g -msoft-float -nostartfiles -I../build/mingw_ecos/install/include -I./src/jpeg-6b -L../build/mingw_ecos/install/lib  -T../build/mingw_ecos/install/lib/target.ld -msoft-float -g -nostdlib -fvtable-gc -Wl,--gc-sections -Wl,-static -o proto_ecos proto_ecos.o objs/jpeg_interface.o ./objs/jdatadst.o ./objs/jpeg_compressor_thread.o ./objs/libjpeg.a  objs/aes_monte_carlo.o


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-03-16 17:14 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-22 12:48 [ECOS] _impure_ptr ?? 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
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

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).