Skip navigation.
Home
The QNX Community Portal

View topic - Binary throwing syntax error: `' unexpected

Binary throwing syntax error: `' unexpected

Discussion about the general applications that run on QNX6

Binary throwing syntax error: `' unexpected

Postby samchacko777 » Fri Nov 10, 2017 1:34 pm

I am trying run a third party application on QNX 6.5.0 ARM target. I succeeded in cross-compiling for Arm target from Linux Host using QNX SDP 6.5.0 .When I tried to run the binary on my Arm board, I am getting the below error "
# ./MyApp
./Myapp[1]: syntax error: `^AtL^P4$ó^M^B^F4' unexpected
Process 106521 (sh) exited status=1.

When inspected the binary, I got the below output.
#file MyApp
myApp: ELF 32-bit LSB executable, ARM, version 1, dynamically linked (uses shared libs), not stripped
The target architecture and the binary header doesn't mismatch. Any help in this matter is well appreciated.
samchacko777
New Member
 
Posts: 9
Joined: Tue Mar 17, 2009 10:20 am

Re: Binary throwing syntax error: `' unexpected

Postby Tim » Fri Nov 10, 2017 2:49 pm

My guess would be one of the following

1) Your missing a shared library that myApp requires
2) Your compilation of myApp doesn't match that of the shared libraries (ie different compiler version, different architecture (LSB/MSB, 32 v 64 bit) etc.
3) C vs C++ name mangling (is myApp a C or C++ application and if it's C++ are you specifying C++ at compile time)

You might want to try a statically linking myApp.

Tim
Tim
Senior Member
 
Posts: 1392
Joined: Wed Mar 10, 2004 12:28 am

Re: Binary throwing syntax error: `' unexpected

Postby samchacko777 » Mon Nov 13, 2017 2:02 pm

Thank you for your response. Today I found that the error came because of the file corruption happened during the FTP transfer of the binary to the target board.
samchacko777
New Member
 
Posts: 9
Joined: Tue Mar 17, 2009 10:20 am


Return to QNX6 - Applications

Who is online

Users browsing this forum: No registered users and 1 guest

cron