Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Problem running Neutrino binary compiled from IBM Rhapsody: (2 Items)
   
Problem running Neutrino binary compiled from IBM Rhapsody  
Forwarded from the IDE forum:

--------8<--------

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

-------->8--------
Re: Problem running Neutrino binary compiled from IBM Rhapsody  
Hello
Some additional info. I am able to compile the same C++ code for x86 and run it on the QNX virtual machine. I have a 
feeling there is something missing in my iMX25 image that the binary will not run on the iMX25. I did include libc and 
libstdc++ in the image but that doe snot solve the problem. 

Thanks for any help

Marcel