From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6031 invoked by alias); 4 Apr 2014 08:34:03 -0000 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 Received: (qmail 6021 invoked by uid 89); 4 Apr 2014 08:34:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 04 Apr 2014 08:34:01 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 56AE28E13DE; Fri, 4 Apr 2014 10:33:59 +0200 (CEST) Date: Fri, 04 Apr 2014 08:34:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Trouble with running cygwin dll on Vortex86MX+ CPU Message-ID: <20140404083359.GD2508@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QCC2I/2CckNfI+Tr" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2014-04/txt/msg00033.txt.bz2 --QCC2I/2CckNfI+Tr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2317 On Apr 2 23:03, Colin wrote: > Hi Team, >=20 > I'm new here, but have dabbled in Cygwin for a few years. I hope someone= =20 > more knowledgeable than myself can help with with this issue which is=20 > quite frankly baffling me for the past few weeks. >=20 > The problem I have can be reduced to this: I compile a simple "Hello=20 > World" console mode c program. I copy the .exe file and cygwin1.dll onto= =20 > an embedded PC, open a console window, and run the program. The program=20 > runs, and returns immediately to the command prompt, with no output. No=20 > error messages, no nothing... >=20 > I can do the same on any desktop PC running Windows XP, or 7, my "Hello=20 > World" runs as expected. >=20 > The embedded PC is currently running a full installation of Windows XP=20 > Professional, SP3. It does so quite happily. It's CPU is DM&P Vortex86MX+= =20 > 933MHz. I am able to run a "Hello World" program compiled with a native=20 > Windows compiler on it successfully. I had a quick look into the programmer's manual for this CPU, and per this document the CPU is i486DX compatible. This could be the problem. The Cygwin GCC defaults to i686 for a long time and naturally the Cygwin DLL as well as your own application are built for i686. > In discussing this with the embedded PC supplier, he suggests that the=20 > cygwin1.dll is exiting because it doesn't recognise the CPU. Is this=20 > explanation plausible? And if it is, is there a solution available, or=20 > must I give up on using cygwin for this application? As far as the pre-built Cygwin goes, I fear that you can't do a lot. You could try to build Cygwin in i486 mode, and if that works, you have to make sure to build applications against the newly built crt0.o and libcygwin.a. But that's not all to keep in mind. When building applications, parts of GCC are linked in as well, namely crtbegin.o and crtend.o, and sometimes cyggcc_s-1.dll. All these may or may not use post-i486 opcodes, so if push comes to shove you'd end up having to rebuild GCC for i486 as well. I'm not trying to discourage you, but you might have a lot of experimenting to do to get this working. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --QCC2I/2CckNfI+Tr Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTPm53AAoJEPU2Bp2uRE+g7PMP/RTaH6oOL9AA0nhkw8LD6hq0 EHhFq6AG1tqMwuIH9iv5Laum4nKoHizbmlkC5jL6fOhUWJYObWFEyHYoA1sZHU5C VmGvMV82twEKo6JuoGXnoub2XnJZP5wnxHmAaudLs0B4vmMHAZ3l9/i6ifHLEmH3 z3L5ORfHHsjFHmfZbZOZcKeGqp2vE8OaAEiyBU53RwEtCgCgl5l7OjomqAYbNOaj I0sbPI6MOFEJaKz0GpQEECbhiP7NR5xZam900tn3UyzJ7PgDSNqtY7P3X++svmJT RR4gXhhe2uYLhV4YyXBAGjD4vNyZmnNsQwVAcj6WOCXoLIEN9oqaELyo/Y1m0aRX MThhj4OsVwBzmtbOWajxcsZGBph7VCcgGSjicyi9STD+XzQv/dw3mjw3XEjBXrWz j4Mi48x/mROGJm0sESiGT5sCP6rnxmx9JTdldeXMrFYO6BVwP0mUs9q2gf9Rd364 O+OV8i9nOkn7sS9kz5J7CPAviBZewcc7D4cx4YI78Zzw5V5vEk5+bpf2PJdwdmXb LVAbrSKLjJjP6pmkMqJ3DKLFQIZrsXCbdd4z1hitbDjeC/CjTWwDLY2qXamHbrg+ 3dQWIG7EtRoj05PakftmBm4YoQrMMPcXui8WnlK0AQpdsoggY8Z/oadv5pKfVdfz UcjYluCATSPYn4XNIsto =Bley -----END PGP SIGNATURE----- --QCC2I/2CckNfI+Tr--