From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28792 invoked by alias); 3 Nov 2011 12:53:43 -0000 Received: (qmail 28693 invoked by uid 22791); 3 Nov 2011 12:53:20 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Thu, 03 Nov 2011 12:53:00 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 39B062C0485; Thu, 3 Nov 2011 13:52:58 +0100 (CET) Date: Thu, 03 Nov 2011 12:53:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Problem with execution of binary file Message-ID: <20111103125258.GA15704@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <1320322806.5480.161.camel@kare-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1320322806.5480.161.camel@kare-desktop> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-11/txt/msg00035.txt.bz2 On Nov 3 12:20, Edvardsen KÃ¥re wrote: > I keep getting the "cannot execute binary file" and don't understand > why. I have compiled same software on two different machines, but only > one of the binaries work (it works on both machines). The successful > machine is a HP laptop with W7 Pro, the other unsuccessful is a HP > desktop in a AD network domain with W7 Enterpr and cygwin is installed > with lokal admin rights only, so I keep getting the "Your group is > currently mkpasswd..." message. What about running $ mkpasswd -l -d > /etc/passwd $ mkgroup -l -d > /etc/group so you don't get this message? > I don't know if this may affect the > result, but should not, as I can run the other successful binary. > > I was guided to run "strace" along with the call to the erroneous binary > and the output is pasted below. The problem binary is called > "FLEXPART_GFORTRAN" Can anyone see what's wrong in the strace log? No. What the strace shows is that bash does not even try to fork and then exec FLEXPART_GFORTRAN. Rather, it just opens the file, reads the first few bytes and then prints the error message: > 4514 125618 [main] bash 536 open: open (./FLEXPART_GFORTRAN, 0x0) > [...] > 25 126365 [main] bash 536 open: 3 = open (./FLEXPART_GFORTRAN, 0x0) > 209 126574 [main] bash 536 isatty: 0 = isatty (3) > [...] > 25 126623 [main] bash 536 lseek64: 0 = lseek (3, 0, 1) > [...] > 24 126710 [main] bash 536 readv: 80 = readv (3, 0x28CA34, 1), errno > 0 > 458 127168 [main] bash 536 open: open > (/usr/share/locale/locale.alias, 0x0) > [...etc...] For some reason which isn't visible in the strace, bash doesn't even close the file anymore. What does `file FLEXPART_GFORTRAN.exe' print? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple