X-Spam-Check-By: sourceware.org
Date: Mon, 24 Jul 2006 10:45:03 -0400
From: Christopher Faylor <cgf-no-personal-reply-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cannot execute binary on AMD Turion based laptop
Message-ID: <20060724144503.GA16031@trixie.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <cd94ed140607240214r7c4550b8q9f358fdf9356aa1d@mail.gmail.com> <016201c6af0b$d86a3d20$a501a8c0@CAM.ARTIMI.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <016201c6af0b$d86a3d20$a501a8c0@CAM.ARTIMI.COM>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mon, Jul 24, 2006 at 11:28:02AM +0100, Dave Korn wrote:
>On 24 July 2006 10:15, Keshavan Varadarajan wrote:
>>I have a laptop with AMD Turion processor running Windows XP SP2.  I
>>have installed cygwin on my laptop.  I am having problems executing the
>>programs I have compiled using gcc (that comes along with Cygwin).  The
>>following error is reported: $ ./dineroIV ./dineroIV: ./dineroIV:
>>cannot execute binary file
>>
>>I have checked the permissions on the file and it does have execute
>>permissions.  The file command indicates that it is a binary.

>>$ file dineroIV
>>dineroIV: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linu x 2.2.5, dynamically linked (uses shared libs), for GNU/Linux 2.2.5,  not stripped
>
> <boggle>  You appear to have inadvertently used a linux cross-compiler
>instead of the cygwin native gcc.

Either that or there's both a linux binary without an extension there
along with a cygwin binary with a .exe extension.

But wasn't this really obvious from the output of file?

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

