X-Recipient: archive-cygwin@delorie.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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=nXC/+7jZ5mdIMr7h
	imgmp9gOQZQVSeciYHVladPgSv4bi7Bnz1aOuHBUdQ5xauegIOhb+2/d9xFn6dOD
	fpKGcD0tD2VEMAivfY9yYwGzLiuVjzXRItdneQ3M+J2uP2binhnSdSlmHgatxgfn
	dZuJjr0K6e8HPrs5Vv7wGqzojd0=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=Q75+dp1UO1qiePLqwbhsaB
	9GIuQ=; b=nPdaSS9u0+3zIyp4GUtuIj+nRKALRd7XiGx8xvXci+3tmqHSfao6Bh
	wmV8tfJ9WSDwOGXbRWLHmYfHnQLqsNSPcgk/SraRQR+gWI90b+tcbeVxCWR8RHNF
	K5RwcHbhNa91le9DpreBes9I94rSrUAmdzHxMfKJo7XouZJgMTOv0=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=UD:ru, HX-Priority:Normal, H*F:D*yandex.ru, H*R:D*cygwin.com
X-HELO: forward101o.mail.yandex.net
Authentication-Results: smtp4j.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Fri, 8 Jun 2018 19:41:24 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <49498971.20180608194124@yandex.ru>
To: Ulli Horlacher <framstag@rus.uni-stuttgart.de>, cygwin@cygwin.com
Subject: Re: running self compiled 32 bit binary on 64 bit Windows?
In-Reply-To: <20180608135221.GF20898@rus.uni-stuttgart.de>
References: <20180606115005.GA15015@rus.uni-stuttgart.de>   <0F7D3B1B3C4B894D824F5B822E3E5A17787FB4BB@IRSMSX102.ger.corp.intel.com>  <3110356010.20180606204945@yandex.ru>  <540c62ab-2519-9f57-6565-d536d8b74ef2@gmail.com>  <944481618.20180607010455@yandex.ru>  <20180608133017.GB20898@rus.uni-stuttgart.de>  <0F7D3B1B3C4B894D824F5B822E3E5A17787FD684@IRSMSX102.ger.corp.intel.com>  <20180608135221.GF20898@rus.uni-stuttgart.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Ulli Horlacher!

>> 2.) Do a Cygwin build and copy cygwin1.dll

> I already have a /usr/bin/cygwin1.dll on the Windows 8 target system.

It's a wrong architecture. You need a 32-bit one for your 32-bit program.

> Do I have to replace it?

No.
Just build a 64-bit version of your program.

>> 3.) Do a Cygwin build and install a matching cygwin on the destination
>> machine in case you need not just a posix compliant C environment, but
>> also a bash or other Unix tools

> This is what I first did:
> Transfered the 32 bit cygwin with my self compiled binaries

You have to install Cygwin, not "transfer".


-- 
With best regards,
Andrey Repin
Friday, June 8, 2018 19:40:10

Sorry for my terrible english...


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

