LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-28-2012, 12:30 PM   #1
madhav024
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 ")")


Regards,
Madhav.
 
Old 08-29-2012, 08:58 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
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
Code:
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
me011089
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
madhav024
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.

Regards,
Madhav.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 01:30 PM.

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