Source: openmpi
Version: 1.10.2-6
Severity: important
Tags: patch

Hi!
Here's a patch that fixes FTBFS on x32.  The old code uses i386 assembly,
which doesn't work.  On the other hand, amd64 one seems to work without any
further changes.

Could you please act on this patch rather soon?  Currently the default mpi
on x32 is mpich which causes problems.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: x32 (x86_64)

Kernel: Linux 4.4.0-x32 (SMP w/6 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
--- openmpi-1.10.2.orig/config/opal_config_asm.m4
+++ openmpi-1.10.2/config/opal_config_asm.m4
@@ -795,6 +795,11 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
         OMPI_GCC_INLINE_ASSIGN=""
         OPAL_ASM_SUPPORT_64BIT=0
         case "${host}" in
+        x86_64-*x32)
+            ompi_cv_asm_arch="AMD64"
+            OPAL_ASM_SUPPORT_64BIT=1
+            OMPI_GCC_INLINE_ASSIGN='"xaddl %1,%0" : "=m"(ret), "+r"(negone) : "m"(ret)'
+            ;;
         i?86-*|x86_64*)
             if test "$ac_cv_sizeof_long" = "4" ; then
                 ompi_cv_asm_arch="IA32"

Reply via email to