DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46J8AtoI1186318 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=Y04UzQzu X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 74917385DDE5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1721376653; bh=96Y3Zk4fll9Ap50ClJ7xSChYNzOXI/d0eGHfBGSSHMs=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Y04UzQzuUcI1lm8W0W6cph8qTC8Jm43zkYKwZ4P0CHPpjPkg00rWh24kOkwCuSAqS g/mg/bMXcZE18mFWuFB3ATL6hugZeiaOhIRUOY5QnslJZ1lyIhSw7SeXJfrH59Lu2N 6I7dBndXal8UABs1IZ6+mpdIM0CbZfrqD35R1rK4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B16793857349 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B16793857349 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721376550; cv=none; b=jpupDcG6xPSENzxxXn7SEXAelbt14qcWFTaZjiNRRsfZMyb7trQrXGNA3kqicxv62R9MCXA3uLtSx/EXVXKJxauoc8Lrs5uex778ZVarvG8c1zCue0mwTuzBezaCvI73yJhpXYn0O6qWZYCqmNwCSek+BZsBfRsR/tLetwR0Pjo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721376550; c=relaxed/simple; bh=+kru0CqmjTRLbklRHrJmJyrPo2Q0K5QhLhQZQd96qks=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=eZkGDtfsg9N+vefZhrJbiky3Inu090UrK+f0dXsoBIihzSLfo/m07KsaFkz9tyKO0PX6+aeLktMKaQsHM+kq7IvuYdrCmfYmvGi+mCeqb1/KbuZmHgOagda0/79opF5UEy9I04SQNfkqtyG46F1CM6fQwVen3GRAGMqSWrz0kKY= ARC-Authentication-Results: i=1; server2.sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721376545; x=1721981345; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+kru0CqmjTRLbklRHrJmJyrPo2Q0K5QhLhQZQd96qks=; b=r1Gin1PDmsnJ1t006aosRWUglp663AG77C8R9tqibdQOS0+wl0BwLjxFENh7xZVCNC HUh7qqKtGMNBjUoWq+H0qj2ZSPSqPFFGhSdEIM9OvC8oWmDHWMyaT4T7q/wmSvQi2499 IrMfr2MmH+Tk3MFWO8bSfVUmXiicfeeHnhMBhDTa0sfWpX2HfprP+0F226d8j3D6/325 MnYDcqeEcji70IMsPvKr1KMoQqX5DkVkQyEP2zdqzR118fPfr4Vw5HD7Ek7yuHCUHG5r PX6jOhlcfUXpLvFhpXLtGr6bUmRRDsxfhFKyAvwVQQVv46Hdr9q2Fe2MnCEdUAG8jLRr cCqA== X-Gm-Message-State: AOJu0Yw5X7d6MvjfB8cjVQtuByWAjvQPHiNvApPHVJSfK6TqhjLC07ak 0/orcCY0B+7sJkYLC/VHG2zBL+jhopSOvrHLQIkfB4wF01LWBuoCs7b5OQUV1Jydt1mNMRTPXOs t/G1tesExmbOx1zI/FvDEIPuuPPL6qT+3 X-Google-Smtp-Source: AGHT+IGrKH7TMgWtKMg9GB5AX1mXntk9lfI6IOzGw4rjxGYgiQw2+m+43Ms49PG92WKkTQwUrTEkLU9rtyP0yc5/zcg= X-Received: by 2002:adf:a3d7:0:b0:363:d980:9a9e with SMTP id ffacd0b85a97d-368317925e2mr4356060f8f.55.1721376545092; Fri, 19 Jul 2024 01:09:05 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 19 Jul 2024 10:08:55 +0200 Message-ID: Subject: CYGPORT not setting CMAKE_SYSTEM_PROCESSOR when cross compiling with aarch64-w64-mingw32. To: The Cygwin Mailing List X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: "Carlo B. via Cygwin" Reply-To: "Carlo B." Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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. 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 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. Thank you very much for your time. Sincerely, Carlo Bramini. -- 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