Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Mon, 30 Apr 2001 20:14:26 -0400 From: Christopher Faylor To: "'cygwin AT cygwin DOT com'" Subject: Re: Execute "strace" on an executable in GNU make? Message-ID: <20010430201426.G29804@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: "'cygwin AT cygwin DOT com'" References: <2C08D4EECBDED41184BB00D0B747334202FB4357 AT exchanger DOT cacheflow DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <2C08D4EECBDED41184BB00D0B747334202FB4357@exchanger.cacheflow.com>; from david.karr@cacheflow.com on Mon, Apr 30, 2001 at 04:39:21PM -0700 On Mon, Apr 30, 2001 at 04:39:21PM -0700, Karr, David wrote: >I'm getting an unexplainable error (Invalid Argument) when I run a >particular executable, but only when I run it from "make". The executable >is not a cygwin executable. It runs fine when I run it from Bash or DOS, >just not from within Make. I've tried changing the call from "" to >"cmd /c " and "/bin/sh.exe -c ", but both of those fail. >I tried putting a print statement at the top of "main" (It's a C program), >but it doesn't get there when it fails. > >Will running the executable from the Makefile with "strace" help me? I'm >trying to figure out how to do this, but no matter what I specify with >"strace", I only get a zero length output file. Other people here with >similar environments don't get this symptom. strace only works on programs which use the cygwin DLL. IIRC, the program that you are attempting to execute is not a cygwin program. cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple