Hello.

The following:

diff --git a/winsup/cygwin/cygwin.sc.in b/winsup/cygwin/cygwin.sc.in
index 5007a3694..e71e0189c 100644
--- a/winsup/cygwin/cygwin.sc.in
+++ b/winsup/cygwin/cygwin.sc.in
@@ -1,6 +1,8 @@
+SEARCH_DIR("=/lib/w32api");
 #ifdef __x86_64__
 OUTPUT_FORMAT(pei-x86-64)
-SEARCH_DIR("/usr/x86_64-pc-cygwin/lib/w32api"); SEARCH_DIR("=/usr/lib/w32api");
+#elif __aarch64__
+OUTPUT_FORMAT(pei-aarch64-little)
 #else
 #error unimplemented for this target
 #endif 

breaks Fedora build 
(https://github.com/Windows-on-ARM-Experiments/newlib-cygwin/actions/runs/16051682177).

Also this:

diff --git a/winsup/cygwin/cygwin.sc.in b/winsup/cygwin/cygwin.sc.in
index 5007a3694..dda28692e 100644
--- a/winsup/cygwin/cygwin.sc.in
+++ b/winsup/cygwin/cygwin.sc.in
@@ -1,9 +1,13 @@
 #ifdef __x86_64__
 OUTPUT_FORMAT(pei-x86-64)
-SEARCH_DIR("/usr/x86_64-pc-cygwin/lib/w32api"); SEARCH_DIR("=/usr/lib/w32api");
+SEARCH_DIR("/usr/x86_64-pc-cygwin/lib/w32api");
+#elif __aarch64__
+OUTPUT_FORMAT(pei-aarch64-little)
+SEARCH_DIR("/usr/aarch64-pc-cygwin/lib/w32api");
 #else
 #error unimplemented for this target
 #endif
+SEARCH_DIR("=/lib/w32api");
 #define __CONCAT1(a,b) a##b
 #define __CONCAT(a,b) __CONCAT1(a,b)
 #define _SYM(x)        __CONCAT(__USER_LABEL_PREFIX__, x)     

breaks the Fedora build 
(https://github.com/Windows-on-ARM-Experiments/newlib-cygwin/actions/runs/16051815462).

While this:

diff --git a/winsup/cygwin/cygwin.sc.in b/winsup/cygwin/cygwin.sc.in
index 5007a3694..2a734a5b1 100644
--- a/winsup/cygwin/cygwin.sc.in
+++ b/winsup/cygwin/cygwin.sc.in
@@ -1,9 +1,11 @@
 #ifdef __x86_64__
 OUTPUT_FORMAT(pei-x86-64)
-SEARCH_DIR("/usr/x86_64-pc-cygwin/lib/w32api"); SEARCH_DIR("=/usr/lib/w32api");
+#elif __aarch64__
+OUTPUT_FORMAT(pei-aarch64-little)
 #else
 #error unimplemented for this target
 #endif
+SEARCH_DIR("=/usr/lib/w32api");
 #define __CONCAT1(a,b) a##b
 #define __CONCAT(a,b) __CONCAT1(a,b)
 #define _SYM(x)        __CONCAT(__USER_LABEL_PREFIX__, x)

seems to work 
(https://github.com/Windows-on-ARM-Experiments/newlib-cygwin/actions/runs/16057401863).

Attachment: v3-0001-Cygwin-define-OUTPUT_FORMAT-and-SEARCH_DIR-for-AArch64.patch
Description: v3-0001-Cygwin-define-OUTPUT_FORMAT-and-SEARCH_DIR-for-AArch64.patch

Reply via email to