delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/06/12:25:36

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:mime-version
:content-transfer-encoding; q=dns; s=default; b=TV6f4unK+t2YLO0A
HKozZ5QJq6XfXpXI2hcgfjGB9wEA9ba/uftDvZl935BrQ3v0tLoX3OXFYsppu3B0
quWbBYT2WtZQjagmqQW42WM+wiG6jAQO1DpxtbAGh4chMAufVbTKmLJfoShVpHnF
yBh/jGqctMPJcbReV6wUy5GNhb4=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:mime-version
:content-transfer-encoding; s=default; bh=uw8d31kZWb1551MDxHJ23T
psR6M=; b=Nhj2yqTNu2eUk6W0dbmG2knAxZMcD1rt3dnydKqaJsxCStaAvztZuE
H0gulKxRdVjL1P9n7k6Qg5sMN9+I+dd3K2RJtAyKCHicX3vJ7sxq2Ue1fLoEK4PD
rMdkSDAbcuSgOlM87MA+r5C8aw2V7FQU0n7tagsXjO/7ZTJnHBlXQ=
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=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=directors, 1012, nicole, Deutschland
X-HELO: mga17.intel.com
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
X-ExtLoop1: 1
From: "Soegtrop, Michael" <michael DOT soegtrop AT intel DOT com>
To: Ulli Horlacher <framstag AT rus DOT uni-stuttgart DOT de>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: running self compiled 32 bit binary on 64 bit Windows?
Date: Wed, 6 Jun 2018 16:24:37 +0000
Message-ID: <0F7D3B1B3C4B894D824F5B822E3E5A17787FB4BB@IRSMSX102.ger.corp.intel.com>
References: <20180606115005 DOT GA15015 AT rus DOT uni-stuttgart DOT de>
In-Reply-To: <20180606115005.GA15015@rus.uni-stuttgart.de>
x-ctpclassification: CTP_NT
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTkyYjIwZDktZmY0MS00YTU5LWI4Y2YtNzFhNjRlNGE2M2Q0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSWpaQ0VsMzJXbVZjTVRQOUU0NXlxTU94WDNGTWpvOWZ6aG5vWkkxOUY1am5BN1ZDaG53OGtPdzlUOUtxNVVPWiJ9
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w56GPZdK029577

Dear Ulli,

for MinGW (your ldd dump didn't include Cygwin dlls, so I assume you are doing MinGW builds) I would recommend to compile 32 bit binaries using a 32 bit Cygwin (which can be installed on 64 bit machines).

The reason is that the Windows file system has some hacks. Some DLLs are available as 32 bit and 64 bit versions under the same file name and path, and which version you get depends on if a 32 bit or 64 bit process accesses them. For this reason a linker which is a 64 bit process and tries to link 32 bit bianries gets the 64 bit versions of system DLLs. So in order to link 32 bit apps you need a linker which runs as a 32 bit process and for this you need a 32 bit Cygwin.

The only other option (I know of) is to copy the required version of the required DLLs using a 32 bit or 64 bit copy program somewhere and tell the linker where to find them.

Best regards,

Michael
Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Christian Lamprechter
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


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