libgcrypt compile error on OS X: mpih-mul1-asm.S:43:9: error: invalid alignment value

NIIBE Yutaka gniibe at fsij.org
Thu Apr 24 08:04:01 CEST 2014


Hello,

On 2014-04-23 at 22:09 +0100, Douglas Held wrote:
> mpih-mul1-asm.S:43:9: error: invalid alignment value
>  .align 1<<(5)
>         ^
[...]
> $ uname -a
> Darwin dougair 13.1.0 Darwin Kernel Version 13.1.0: Wed Apr  2
> 23:52:02 PDT 2014; root:xnu-2422.92.1~2/RELEASE_X86_64 x86_64

Although I don't have any experience, I think that some patch like
following is needed.  Please try and let me know if it works.

diff --git a/mpi/config.links b/mpi/config.links
index 0217d35..4f35ea2 100644
--- a/mpi/config.links
+++ b/mpi/config.links
@@ -127,6 +127,12 @@ case "${host}" in
 	path="i586 i386"
         mpi_cpu_arch="x86"
 	;;
+    x86_64-apple-darwin*)
+	echo '#define BSD_SYNTAX' >>./mpi/asm-syntax.h
+	cat  $srcdir/mpi/i386/syntax.h	    >>./mpi/asm-syntax.h
+	path="amd64"
+        mpi_cpu_arch="x86"
+	;;
     x86_64-*-*)
 	echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h
 	cat  $srcdir/mpi/i386/syntax.h	    >>./mpi/asm-syntax.h
-- 





More information about the Gcrypt-devel mailing list