Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Run time error: (2 Items)
   
Run time error  
hello,

I am compiling an IBM rhapsody (v7.5)  application for an arm target (freescale i.MX25) running QNX 6.4.1. The 
compilation runs ok, but when i try to run the binary on the target, i get the following error

terminate called after throwing an instance of '__gnu_cxx::__concurrence_broadcast_error'
  what():  __gnu_cxx::__concurrence_broadcast_error

I can run applications that I creates as QNX c++ applications using momentics. So i am wondering if I am linking 
incorrectly? I added the link command below. Would be thankful for any suggestions or ideas.  Thank you

Marcel


C:/QNX641/host/win32/x86/usr/bin/ntoarm-ld -EL -m armnto -p --dynamic-linker /usr/lib/ldqnx.so.2 C:/QNX641/target/qnx6/
armle/lib/crt1.o C:/QNX641/target/qnx6/armle/lib/crti.o C:/QNX641/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.4.0/4.
3.3/crtbegin.o MainDefaultComponent.o Hello.o C:/Programme/IBM/Rational/Rhapsody/7.5/Share/LangCpp/lib/QNX641oxfarmle.a 
C:/Programme/IBM/Rational/Rhapsody/7.5/Share/LangCpp/lib/QNX641simulinkintegrationarmle.a -Bstatic -lm -lcpp -o 
DefaultComponent -rpath-link C:/QNX641/target/qnx6/armle/lib:C:/QNX641/target/qnx6/armle/usr/lib:C:/QNX641/target/qnx6/
armle/lib/gcc/4.3.3:C:/QNX641/target/qnx6/armle/opt/lib -Y/cygdrive/C/QNX641/target/qnx6/armle/lib:/cygdrive/C/QNX641/
target/qnx6/armle/usr/lib:/cygdrive/C/QNX641/target/qnx6/armle/opt/lib -LC:/QNX641/host/win32/x86/usr/lib/gcc/arm-
unknown-nto-qnx6.4.0/4.3.3// -LC:/QNX641/target/qnx6/armle/lib/gcc/4.3.3 -LC:/QNX641/target/qnx6/usr/arm-unknown-nto-
qnx6.4.0/lib// -LC:/QNX641/target/qnx6/armle/lib -LC:/QNX641/target/qnx6/armle/usr/lib -LC:/QNX641/target/qnx6/armle/opt
/lib -lcpp -lcxa C:/QNX641/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.4.0/4.3.3///libgcc.a -lcxa -lc -dn -Bstatic -
lc C:/QNX641/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.4.0/4.3.3///libgcc.a C:/QNX641/host/win32/x86/usr/lib/gcc/
arm-unknown-nto-qnx6.4.0/4.3.3/crtend.o C:/QNX641/target/qnx6/armle/lib/crtn.o
Re: Run time error  
Hi, Marcel,

As you are evidently using the Momentics SDP toolchains for Neutrino
within IBM Rhapsody, this is more a question for our general-toolchain
forum than the IDE forum.  I have forwarded your question to
general-toolchain:

http://community.qnx.com/sf/discussion/do/listPosts/projects.toolchain/discussion.core_development_tools.topc11222

I hope that you will get a helpful answer from the experts there.

Cheers,

Christian


On Mon, 2009-12-14 at 12:01 -0500, Marcel Meerstetter wrote:

> hello,
> 
> I am compiling an IBM rhapsody (v7.5)  application for an arm target (freescale i.MX25) running QNX 6.4.1. The 
compilation runs ok, but when i try to run the binary on the target, i get the following error
> 
> terminate called after throwing an instance of '__gnu_cxx::__concurrence_broadcast_error'
>   what():  __gnu_cxx::__concurrence_broadcast_error
> 
> I can run applications that I creates as QNX c++ applications using momentics. So i am wondering if I am linking 
incorrectly? I added the link command below. Would be thankful for any suggestions or ideas.  Thank you
> 
> Marcel
> 
> 
> C:/QNX641/host/win32/x86/usr/bin/ntoarm-ld -EL -m armnto -p --dynamic-linker /usr/lib/ldqnx.so.2 C:/QNX641/target/qnx6
/armle/lib/crt1.o C:/QNX641/target/qnx6/armle/lib/crti.o C:/QNX641/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.4.0/4
.3.3/crtbegin.o MainDefaultComponent.o Hello.o C:/Programme/IBM/Rational/Rhapsody/7.5/Share/LangCpp/lib/QNX641oxfarmle.a
 C:/Programme/IBM/Rational/Rhapsody/7.5/Share/LangCpp/lib/QNX641simulinkintegrationarmle.a -Bstatic -lm -lcpp -o 
DefaultComponent -rpath-link C:/QNX641/target/qnx6/armle/lib:C:/QNX641/target/qnx6/armle/usr/lib:C:/QNX641/target/qnx6/
armle/lib/gcc/4.3.3:C:/QNX641/target/qnx6/armle/opt/lib -Y/cygdrive/C/QNX641/target/qnx6/armle/lib:/cygdrive/C/QNX641/
target/qnx6/armle/usr/lib:/cygdrive/C/QNX641/target/qnx6/armle/opt/lib -LC:/QNX641/host/win32/x86/usr/lib/gcc/arm-
unknown-nto-qnx6.4.0/4.3.3// -LC:/QNX641/target/qnx6/armle/lib/gcc/4.3.3 -LC:/QNX641/target/qnx6/usr/arm-unknown-nto-
qnx6.4.0/lib// -LC:/QNX641/target/qnx6/armle/lib -!
LC:/QNX641/target/qnx6/armle/usr/lib -LC:/QNX641/target/qnx6/armle/opt/lib -lcpp -lcxa C:/QNX641/host/win32/x86/usr/lib/
gcc/arm-unknown-nto-qnx6.4.0/4.3.3///libgcc.a -lcxa -lc -dn -Bstatic -lc C:/QNX641/host/win32/x86/usr/lib/gcc/arm-
unknown-nto-qnx6.4.0/4.3.3///libgcc.a C:/QNX641/host/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx6.4.0/4.3.3/crtend.o C:/
QNX641/target/qnx6/armle/lib/crtn.o
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post43814
> 


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems