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 X-Apparently-From: Message-ID: <3AEEB24E.F9F1DB4F@yahoo.com> Date: Tue, 01 May 2001 08:55:42 -0400 From: Earnie Boyd Reply-To: Cygwin Users X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Execute "strace" on an executable in GNU make? References: <2C08D4EECBDED41184BB00D0B747334202FB4359 AT exchanger DOT cacheflow DOT com> <20010430202941 DOT B30544 AT redhat DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Perhaps the -d or --debug switch can help? Earnie. Christopher Faylor wrote: > > Dunno. Sorry. I suspect that you are probably not running the program > that you think you're running. Maybe specifying the full path in the > makefile would help. > > Apologies if you've tried that. I don't remember. That is all that > I can think of. > > cgf > > On Mon, Apr 30, 2001 at 05:22:13PM -0700, Karr, David wrote: > >Sigh. Yes, that is the case. Ok, so "strace" won't help me. Is there any > >other information I can gather on this situation? It just will not run from > >within Make, no matter how I coerce it. It always fails immediately with > >"Invalid Argument", even before getting to "main". > > > >-----Original Message----- > >From: Christopher Faylor [mailto:cgf AT redhat DOT com] > >Sent: Monday, April 30, 2001 5:14 PM > >To: 'cygwin AT cygwin DOT com' > >Subject: Re: Execute "strace" on an executable in GNU make? > > > > > >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 > > > >-- > >Want to unsubscribe from this list? > >Check out: http://cygwin.com/ml/#unsubscribe-simple > > -- > cgf AT cygnus DOT com Red Hat, Inc. > http://sources.redhat.com/ http://www.redhat.com/ > > -- > Want to unsubscribe from this list? > Check out: http://cygwin.com/ml/#unsubscribe-simple _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple