Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - /Temp/make31129.sh[1]: syntax error: `(' unexpected: (5 Items)
   
/Temp/make31129.sh[1]: syntax error: `(' unexpected  
Hi,

How can I get make to leave behind this temporary file so I can see what the problem is?

Anyone have any ideas what causes stuff like this?

Thanks
Kevin
Re: /Temp/make31129.sh[1]: syntax error: `(' unexpected  
Debugging makefiles is notoriously difficult.  You're pretty much stuck with the "-p" and "-d" flags and your own 
ingenuity.

The specific error your seeing is sometimes the result of forgetting to double a dollar sign in a shell script fragment,
 but there are plenty of other possibilities as well.
RE: /Temp/make31129.sh[1]: syntax error: `(' unexpected  
I also like to use the $(warning ...) and $(error ...) functions as
print statements for debugging makefiles. 

-----Original Message-----
From: Neil Schellenberger [mailto:community-noreply@qnx.com] 
Sent: Friday, July 03, 2009 1:30 PM
To: general-toolchain
Subject: Re: /Temp/make31129.sh[1]: syntax error: `(' unexpected

Debugging makefiles is notoriously difficult.  You're pretty much stuck
with the "-p" and "-d" flags and your own ingenuity.

The specific error your seeing is sometimes the result of forgetting to
double a dollar sign in a shell script fragment, but there are plenty of
other possibilities as well.


_______________________________________________
General
http://community.qnx.com/sf/go/post33074
RE: /Temp/make31129.sh[1]: syntax error: `(' unexpected  
Definitely useful too.  But beware make's two-phase execution model and
the differences between the different makevar flavours :-)

On Fri, 2009-07-03 at 14:16 -0400, Max Feil wrote:
> I also like to use the $(warning ...) and $(error ...) functions as
> print statements for debugging makefiles. 
> 
> -----Original Message-----
> From: Neil Schellenberger [mailto:community-noreply@qnx.com] 
> Sent: Friday, July 03, 2009 1:30 PM
> To: general-toolchain
> Subject: Re: /Temp/make31129.sh[1]: syntax error: `(' unexpected
> 
> Debugging makefiles is notoriously difficult.  You're pretty much stuck
> with the "-p" and "-d" flags and your own ingenuity.
> 
> The specific error your seeing is sometimes the result of forgetting to
> double a dollar sign in a shell script fragment, but there are plenty of
> other possibilities as well.
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post33074
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post33089
> 
Re: RE: /Temp/make31129.sh[1]: syntax error: `(' unexpected  
I noticed in makefile for QNX6.4.1 that backslash ("\") to continue lines are not well interpreted, is this your case ?