delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/12/11/15:42:59

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4914C383B698
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1670791330;
bh=Noo3zS6w91gO/CnRzjgWW0mo0oEv1jRsXMVFr7IgUws=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=AunrCI/gAOtFz0Wf4ZhxYjUOHG5behR/gSha7jMkLON+Vd4Q5IWecgpuZbQgR2o9O
Z8ura0wv1KUs5cmGc2xg//wgYzrODUl4IOt5OKQPa2lx3bK5nqCYNj2fCSMKDvaaia
+5bVeAFZZcRpQM1Z/Kjx11xlS6Fn/TizEANV5OQo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 962C6385B53E
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
t=1670791295; bh=R2uWwXEnYptKF8jNdcLQtxhOwZlf0CW8Sy4An5htLrz=;
h=X-Sonic-MF:Date:Subject:To:From:From:Subject;
b=G5oVSpSfk3yVoNMYYktMusNhPljInTf3Qke6YJvC2yTkMuncO5ahCrPLW+Re/qIV/5TQQHuqpFMg7LHtyzK4SaD2zvFOovXfxdj6DMPfiSyXzjLCe3APB7eGG49WZ2waCOKj3HV0ooFYWsIhfkvGnR5+hC7jRSDqYhsQTrRib/Hzjo/pipfCjv1lRcuNP0fnnzeVB/ttr5SoiMiBuR0pPMiPFk5vayojiNokN5SGXjl5RK2mYGyqgfyruBzaksVGpSiHSN9N5QA9N8f6NbYq+Rj6ictTjcxTjD/bGebNEVnz/R7yka+13rG8eXLt4JyQsepyM9pIksKQB8ehZBQiDQ==
X-YMail-OSG: o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aauu81EFqmpJO_gZgQQkVYEIiMO9q4wqmypBBNTxgHPN2R_uyY5ak
YM6bGoSb2GUQDFsdqv5fkjNWOl19x24H0xCpEFszadxeNzTNm1OMsAiyPCP4A4BbmG7eFkfQIldi
oQnZ4l2VZpW.iazHvElxwlgce3in2DjNMk2966pwWrX4n08AH5_NDG8O7ZgxitTw-
X-Sonic-MF: <msoegtrop AT yahoo DOT de>
Message-ID: <32b257b8-b9db-67d5-4c9a-597700027647@yahoo.de>
Date: Sun, 11 Dec 2022 21:41:31 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.5.1
Subject: Re: Creating the sqlite3.exe stand-alone w/o cygwin dependency
To: Jose Isaias Cabrera <jicman AT outlook DOT com>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
References: <DB9P251MB00639C367F5AA38BF0F18B55DE1C9 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
<86109171-9f9e-4541-e615-8ea4073f8137 AT cornell DOT edu>
<77194e33-0dcb-f0b0-906b-0e75c38b98de AT yahoo DOT de>
<DB9P251MB0063D46AB1B34F75B4FAB365DE1F9 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
<DB9P251MB0063C4C766B3FCE4FD1A32A4DE1E9 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
<c8f0bfa8-dd62-02d4-2a64-dfb80c8988ec AT yahoo DOT de>
<DB9P251MB0063791D209FB7A612196349DE1E9 AT DB9P251MB0063 DOT EURP251 DOT PROD DOT OUTLOOK DOT COM>
In-Reply-To: <DB9P251MB0063791D209FB7A612196349DE1E9@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>
X-Mailer: WebService/1.1.20926
mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, NICE_REPLY_A,
RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Michael Soegtrop via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Michael Soegtrop <MSoegtrop AT yahoo DOT de>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 2BBKgYiN003991

Hi José,

Yes, I did. I think you missed one of my emails. But, here is what I did:
> $ ldd sqlite3.exe
>          ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7ffc1d6f0000)
>          ntdll.dll => /cygdrive/c/Windows/SysWOW64/ntdll.dll (0x778c0000)
>          wow64.dll => /cygdrive/c/Windows/System32/wow64.dll (0x7ffc1c830000)
>          wow64win.dll => /cygdrive/c/Windows/System32/wow64win.dll (0x7ffc1d540000)

Ah, you compiled a 32 bit executable - I guess on a 64 bit install of 
cygwin.

Try

./configure --host=x86_64-w64-mingw32 CFLAGS=-shared CFLAGS=-static-libgcc

instead of

./configure --host=i686-w64-mingw32 CFLAGS=-shared CFLAGS=-static-libgcc

Of course you need to install the corresponding tool chain in cygwin.

As far as I can tell compiling 32 bit apps on 64 bit cygwin did never 
work (easily). Afair the reason is that certain DLLs like 
SYSTEM32/ntdll.dll have 2 copies under the same file name, a 32 bit and 
a 64 bit variant (a Windows file system hack). Which one you get depends 
on if the calling process is 32 bit or 64 bit. Now if you try to link a 
32 bit executable with a 64 bit linker, it gets the wrong DLL, so your 
32 bit app ends up being linked to a 64 bit DLL.

One could only compile 32 bit Windows apps with 32 bit cygwin - since 
this is no longer supported, I would say 32 bit MinGW is neither. There 
are hacks around this (use a 32 bit executable to copy the DLLs from 
System32 somewhere else and redirect the linker to these files). But the 
better choice is to stop compiling for 32 bit.

Best regards,

Michael


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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