Skip to content

Conversation

@jrflat
Copy link
Contributor

@jrflat jrflat commented Aug 3, 2025

System fails to build on Amazon Linux 2 with the error:

/Swift/swift-system/Sources/CSystem/include/io_uring.h:141:18: error: typedef redefinition with different types ('uint64_t' (aka 'unsigned long') vs 'unsigned long long')
  141 | typedef uint64_t __u64;
      |                  ^
/usr/include/asm-generic/int-ll64.h:31:42: note: previous definition is here
   31 | __extension__ typedef unsigned long long __u64;
      |                                          ^

We can guard the __u64, __u32, etc. typedefs with #if !defined for the various _ASM_GENERIC_INT headers where these types are already defined.

Verified System builds successfully on Amazon Linux 2 with this change.

@jrflat
Copy link
Contributor Author

jrflat commented Aug 3, 2025

@swift-ci please test

@glessard glessard merged commit 890830f into apple:release/1.6.0 Aug 4, 2025
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants