delorie.com/archives/browse.cgi | search |
DKIM-Filter: | OpenDKIM Filter v2.11.0 delorie.com 46KIJl0G1739173 |
Authentication-Results: | delorie.com; |
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=GEgq3kM9 | |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org E7AE6385E82D |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1721499585; | |
bh=ESMKTN5qUYlaUHVm24YAew9udsHUnA6XU6KYJXLdfj0=; | |
h=Date:Subject:To:References:Cc:In-Reply-To:List-Id: | |
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: | |
From:Reply-To:From; | |
b=GEgq3kM9KKukEhWF5LQIHG8mLdgL6Stgh8U5DzkOkp5zEEyGCv2Cs4Ui4JZUNyOjl | |
ON9WYmp6ldLmarsYqa+aKiPl99lCqIBdWENzBkKkBtwmdKuB9n7vdV/vFZ2OEJoVaP | |
B/fGkY1ueGFcMy5MAsssAR98UlXJX5rDkKTL0xY8= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org D0FB53858D20 |
ARC-Filter: | OpenARC Filter v1.0.0 sourceware.org D0FB53858D20 |
ARC-Seal: | i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721499527; cv=none; |
b=NqarLduo8fEfKCfQkLklGmL2akLzYz2QK2JsJKkzmJwYP5121WJIsu2tM4AjLaiI+PiPqsOA+11SM0oq1uYfaXzjt3TSinsumXPjWTd++3S8/AvjAm0vlcOlh2z/XSX2unCnWYwNG2ZWcjIcYiiZssichYuSyUdoW0B5yWt5lXQ= | |
ARC-Message-Signature: | i=1; a=rsa-sha256; d=sourceware.org; s=key; |
t=1721499527; c=relaxed/simple; | |
bh=wqJFwD+nQnbwqx42lOZr8WT82EEhKAIcufjNf7ZdRi0=; | |
h=Message-ID:Date:MIME-Version:Subject:To:From; | |
b=Smhjug1uxnFjvjkuIirewcRYxbyJDWV5W2Zc1zwHu/+QhBNeALFDYOKm12bOU4yJm62BfTXiRDPQKZCnksbjdnGQUOf6fdWeRLd5d2oOAP49Y6jIk6Ir5jx8JO9L1tnazt0zumOxHyrPXRzZKQr07JEzF7u+lUZxcM6f3RGG7xk= | |
ARC-Authentication-Results: | i=1; server2.sourceware.org |
X-SNCR-Rigid: | 669441D800B7364B |
X-Originating-IP: | [86.143.43.103] |
X-OWM-Source-IP: | 86.143.43.103 |
X-OWM-Env-Sender: | jon DOT turney AT dronecode DOT org DOT uk |
X-RazorGate-Vade: | gggruggvucftvghtrhhoucdtuddrgeeftddrheefgdduvddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecunecujfgurheptgfkffggfgfuvfhfhfevjgesmhdtreertddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepffdvfeekkeeiudeiueeuveeifffhgedvgffflefhleelgfeuuefhkedvlefhgeehnecuffhomhgrihhnpehgnhhurdhorhhgpdhsthgrtghkohhvvghrfhhlohifrdgtohhmnecukfhppeekiedrudegfedrgeefrddutdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekiedrudegfedrgeefrddutdefpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdpnhgspghrtghpthhtohepvddprhgtphhtthhopegtrghrlhhordgsrhgrmhhinhhisehgmhgrihhlrdgtohhmpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgvvhfkrfephhhoshhtkeeiqddugeefqdegfedquddtfedrrhgrnhhgvgekiedqudegfedrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhies |
sghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhsthepsghtphhrughrghhotdduud | |
X-RazorGate-Vade-Verdict: | clean 0 |
X-RazorGate-Vade-Classification: | clean |
X-VadeSecure-score: | verdict=clean score=0/300, class=clean |
Message-ID: | <a3fc36ac-9467-474c-ad89-d84eab10a1bf@dronecode.org.uk> |
Date: | Sat, 20 Jul 2024 19:18:41 +0100 |
MIME-Version: | 1.0 |
User-Agent: | Mozilla Thunderbird |
Subject: | Re: CYGPORT not setting CMAKE_SYSTEM_PROCESSOR when cross compiling |
with aarch64-w64-mingw32. | |
To: | "Carlo B." <carlo DOT bramini AT gmail DOT com> |
References: | <CADt9577Y5_BM8KeXZ-upOU6P-Lj78W7TUxi37PNCF8G2mr3GYg AT mail DOT gmail DOT com> |
Cc: | cygwin AT cygwin DOT com |
In-Reply-To: | <CADt9577Y5_BM8KeXZ-upOU6P-Lj78W7TUxi37PNCF8G2mr3GYg@mail.gmail.com> |
X-Spam-Status: | No, score=-7.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, |
JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, | |
RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, 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.30 |
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: | Jon Turney via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | Jon Turney <jon DOT turney AT dronecode DOT org DOT uk> |
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> |
This is a multi-part message in MIME format. --------------fPKZkW2OcibGjVR5Ms0B0pxx Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 19/07/2024 09:08, Carlo B. via Cygwin wrote: > Hello, > > GCC development branch includes experimental support Windows on ARM64 > (WOA), which will be officially released next year with version 15, at > least according to latest news. > So, I compiled it and I created a number of packages for CYGWIN > including binutils, gcc, mingw runtime and several libraries, not > released yet to my repository. > Although the "aarch64-w64-mingw32" target is still experimental, I > have to say that this cross compiler worked very well, at least until > now. Great work! We'd certainly welcome and appreciate your help getting packages for this into our repository, also. > However, some problems appear because there are some thirdy party > tools not expecting to have mingw combined with something different > than i686 or x86_64. > For example, it is impossible to create a shared library when using > libtool, more details could be found here: > https://savannah.gnu.org/support/?111081 Huh. I guess someone should fix that, then! I think for a start, the regex around line 5724 in libtool (near the comment about keeping it in sync with _LT_CHECK_MAGIC_METHOD) needs updating to match arm64 archives... > For this reason, you have to use CMake or other alternative tools > instead of autotools. > > Actually, another problem can happen when creating the packages for > CYGWIN with CYGPORT utility. > For example, I tried to build a noarch package of libpng for CYGWIN, > by using the new aarch64-w64-mingw32. > I have used CMake to bypass the above trouble with libtool. > Unfortunately, the build process still fails because it didn't compile > the sources for adding the functions with NEON acceleration. > The cause of the problem is the variable CMAKE_SYSTEM_PROCESSOR that is empty. > This is not a bug of CMake, because CMAKE_SYSTEM_PROCESSOR is > typically set into CMAKE_TOOLCHAIN_FILE by the user when cross > compiling. > At the moment, I bypassed the trouble by adding > "-DCMAKE_SYSTEM_PROCESSOR=aarch64" to CYGCMAKE_ARGS into my script. > I gave a look into /usr/share/cygport/cygclass/cmake.cygclass and it > seems to me that there is nothing for setting the CPU type. > Perhaps it would be worth to add support for setting > CMAKE_SYSTEM_PROCESSOR into cmake.cygclass, by checking the content of > ${CTARGET}, if it exists with a known CPU. Interesting. I took a look and there are several existing packages which have been cross-built for x86 and x86_64 MinGW using cmake, so either it seems this hasn't yet appeared as a problem for those arches and/or packages... It's not terribly clear what the valid values are for that cmake variable, and what it controls, but the answer [1] makes it seem like it's not a lot: [1] https://stackoverflow.com/questions/70475665/what-are-the-possible-values-of-cmake-system-processor But yeah, this seems eminently fixable in cygport, something like the attached I think. --------------fPKZkW2OcibGjVR5Ms0B0pxx Content-Type: text/plain; charset=UTF-8; name="0001-cmake-Define-CMAKE_SYSTEM_PROCESSOR-when-cross-compi.patch" Content-Disposition: attachment; filename*0="0001-cmake-Define-CMAKE_SYSTEM_PROCESSOR-when-cross-compi.pa"; filename*1="tch" Content-Transfer-Encoding: base64 RnJvbSA1ODQ4MjA1YmM0NmUzNTk4ZjQwZDQ2NThlN2ExN2VjY2QzYmVkYmI2IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKb24gVHVybmV5IDxqb24udHVybmV5QGRyb25lY29k ZS5vcmcudWs+CkRhdGU6IFNhdCwgMjAgSnVsIDIwMjQgMTU6MjM6MDEgKzAxMDAKU3ViamVj dDogW1BBVENIIGN5Z3BvcnRdIGNtYWtlOiBEZWZpbmUgQ01BS0VfU1lTVEVNX1BST0NFU1NP UiB3aGVuCiBjcm9zcy1jb21waWxpbmcKCi0tLQogY3lnY2xhc3MvY21ha2UuY3lnY2xhc3Mg fCAxNiArKysrKysrKysrKysrKystCiAxIGZpbGUgY2hhbmdlZCwgMTUgaW5zZXJ0aW9ucygr KSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL2N5Z2NsYXNzL2NtYWtlLm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Niw0ICsyNTAsNCBAQCBzcmNfaW5zdGFsbCgpIHsKIH0KICMqKioqCiAKLXJlYWRvbmx5IC1m IF9fY21ha2Vfc3lzdGVtIGN5Z2NtYWtlCityZWFkb25seSAtZiBfX2NtYWtlX3N5c3RlbSBf X2NtYWtlX3Byb2MgY3lnY21ha2UKLS0gCjIuNDUuMQoK --------------fPKZkW2OcibGjVR5Ms0B0pxx Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --------------fPKZkW2OcibGjVR5Ms0B0pxx--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |