Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 08-28-2012, 12:30 PM   #1
LQ Newbie
Registered: Aug 2012
Posts: 5

Rep: Reputation: Disabled
./hello: 1: Syntax error: word unexpected (expecting ")")

hi i have cross compiled the sample program (which contains simple printf statement) for ARM architecture and when i run this executable program its showing below error can some one help me in getting out of this.
./hello: 1: Syntax error: word unexpected (expecting ")")

Old 08-29-2012, 08:58 AM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
It is considered bad form to hijack a thread. You should start your own thread.
Having said that, I would suggest that you make sure your executable program really is that. What is the result of
file ./hello
If it doesn't specifically state that it is ARM object code, then you've probably done something wrong in compiling and moving the executable to the target architecture. It sounds very much like you're trying to execute a C source file.
--- rod.

[EDIT] Looks like the mods have started a new thread for you

Last edited by theNbomr; 09-02-2012 at 11:17 AM.
Old 09-02-2012, 02:49 AM   #3
LQ Newbie
Registered: Jun 2011
Posts: 16

Rep: Reputation: Disabled
Hi madhav,
It seems like you didn't crosscompiled it correctly,please make sure that you've got an arm executable by typing 'file <executable bame>',(I got the error because my compilation was not complete,i.e, I just made an object file ,I fixed it after cross compiling it with proper option to generate executable)
Old 09-09-2012, 04:33 AM   #4
LQ Newbie
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
ya thanks for the information, there was a minor mistake as i used -c option while compilation which resulted in generating only object file, so i was trying to execute this so i got the error.
thanks for the information.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Qt Embedded configure - qmake Syntax error: word unexpected (expecting ")") gpsguru Linux - Embedded & Single-board computer 0 08-30-2012 04:55 PM
./project line 1 : Syntax error : unexpected word (expecting ")")... navya Linux - Newbie 29 05-01-2012 09:58 AM
i2c4: line1 : syntax error: unexpected word (expecting " )" ) pillisrikanth Linux - Software 1 12-07-2011 06:18 AM
[SOLVED] line 1: syntax error: word unexpected (expecting ")") me011089 Linux - Embedded & Single-board computer 5 08-23-2011 08:34 AM
Busybox Syntax error: word unexpected (expecting ")") asprakash Linux - Embedded & Single-board computer 6 10-13-2010 02:22 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration