delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/04/04:41:08

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=CVKRAVQRpCHwuk2IXdGgB+EMgNEvnaI5gNXOftT76+O
Wf5Lh55pYT45WSaEJaKbUBda1uPVBzmSXtwDS1SryJArnHMsqadrUTuh3JAc/q8c
wBLdup5ZXrzpoOl9eaU5MjJSjYzqteOPg+JgHuAVOH7cnyfFFm0+A+YzmIYHifZE
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=jpG81AGCokDJX4btQii0fT8cFy0=; b=cLijJTxL744XVJpPi
oo7z0ejQp16+ljH/R0XkO/5kzJpi425/NOu0FapImYyuQj4g3dbYSZjdNheMeL4F
NP+1SmqHs8/Eb55ibwyHxMqTxzULye1wyqT5a9XA63D1R7LOCMGCIuNHo8YcrExj
2fZWmVJOHJs1dcBdVQG6nP2FzA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ie0-f172.google.com
X-Received: by 10.43.137.5 with SMTP id im5mr881928icc.55.1396600848140; Fri, 04 Apr 2014 01:40:48 -0700 (PDT)
Message-ID: <533E7010.2010202@users.sourceforge.net>
Date: Fri, 04 Apr 2014 03:40:48 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Trouble with running cygwin dll on Vortex86MX+ CPU
References: <loom DOT 20140403T003453-906 AT post DOT gmane DOT org>
In-Reply-To: <loom.20140403T003453-906@post.gmane.org>

On 2014-04-02 18:03, Colin wrote:
> The problem I have can be reduced to this: I compile a simple "Hello
> World" console mode c program. I copy the .exe file and cygwin1.dll onto
> an embedded PC, open a console window, and run the program. The program
> runs, and returns immediately to the command prompt, with no output. No
> error messages, no nothing...
>
> The embedded PC is currently running a full installation of Windows XP
> Professional, SP3. It does so quite happily. It's CPU is DM&P Vortex86MX+
> 933MHz. I am able to run a "Hello World" program compiled with a native
> Windows compiler on it successfully.
>
> In discussing this with the embedded PC supplier, he suggests that the
> cygwin1.dll is exiting because it doesn't recognise the CPU.

Actually, if Wikipedia[1] is correct (yes, yes, I know), the problem is 
that the CPU doesn't recognize the code.  Apparently, these CPUs are 
missing the CMOV instruction used when compiling with gcc -march=i686, 
which has been the default setting for the Cygwin x86 compilers for 
several years now.

Therefore, in order to even attempt to make this work, you would have to 
recompile gcc for -march=i586 default, then rebuild *everything* with 
that gcc; but I can't guarantee that there won't be other issues as well.


Yaakov

[1] https://en.wikipedia.org/wiki/Vortex86#CPU


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019