Source: libatomic-ops
Version: 7.4.4-3
Severity: wishlist
Tags: upstream patch

libatomic-ops FTBFS on arm64ilp32 arch. This trival patch fixes that.

It might be better to refactor the code to check for ILP32 on all
64-bit arches that support it rather than this per-arch fix, but I
don't know enough about the codebase to be sure if that is a good
idea. This is a safe, minimal patch.
diff -u libatomic-ops-7.4.4/debian/changelog libatomic-ops-7.4.4/debian/changelog
--- libatomic-ops-7.4.4.orig/src/atomic_ops/sysdeps/standard_ao_double_t.h
+++ libatomic-ops-7.4.4/src/atomic_ops/sysdeps/standard_ao_double_t.h
@@ -32,7 +32,7 @@
   typedef __m128 double_ptr_storage;
 #elif defined(_WIN32) && !defined(__GNUC__)
   typedef unsigned __int64 double_ptr_storage;
-#elif defined(__aarch64__)
+#elif defined(__aarch64__) && !defined(__ILP32__)
   typedef unsigned __int128 double_ptr_storage;
 #else
   typedef unsigned long long double_ptr_storage;

Reply via email to