From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3464 invoked by alias); 6 Jun 2018 16:25:26 -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 3057 invoked by uid 89); 6 Jun 2018 16:25:01 -0000 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 Received: from mga17.intel.com (HELO mga17.intel.com) (192.55.52.151) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Jun 2018 16:25:00 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Jun 2018 09:24:39 -0700 X-ExtLoop1: 1 Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga006.jf.intel.com with ESMTP; 06 Jun 2018 09:24:38 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.146]) by IRSMSX153.ger.corp.intel.com ([169.254.9.60]) with mapi id 14.03.0319.002; Wed, 6 Jun 2018 17:24:37 +0100 From: "Soegtrop, Michael" To: Ulli Horlacher , "cygwin@cygwin.com" Subject: RE: running self compiled 32 bit binary on 64 bit Windows? Date: Wed, 06 Jun 2018 16:25:00 -0000 Message-ID: <0F7D3B1B3C4B894D824F5B822E3E5A17787FB4BB@IRSMSX102.ger.corp.intel.com> References: <20180606115005.GA15015@rus.uni-stuttgart.de> In-Reply-To: <20180606115005.GA15015@rus.uni-stuttgart.de> x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOTkyYjIwZDktZmY0MS00YTU5LWI4Y2YtNzFhNjRlNGE2M2Q0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSWpaQ0VsMzJXbVZjTVRQOUU0NXlxTU94WDNGTWpvOWZ6aG5vWkkxOUY1am5BN1ZDaG53OGtPdzlUOUtxNVVPWiJ9 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00066.txt.bz2 Dear Ulli, for MinGW (your ldd dump didn't include Cygwin dlls, so I assume you are do= ing MinGW builds) I would recommend to compile 32 bit binaries using a 32 b= it Cygwin (which can be installed on 64 bit machines). The reason is that the Windows file system has some hacks. Some DLLs are av= ailable as 32 bit and 64 bit versions under the same file name and path, an= d which version you get depends on if a 32 bit or 64 bit process accesses t= hem. For this reason a linker which is a 64 bit process and tries to link 3= 2 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 re= quired DLLs using a 32 bit or 64 bit copy program somewhere and tell the li= nker 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