Mailing List Archive

libgcrypt tries to use SPARC32 assembly code on SPARC64
Hello,

this is http://bugs.debian.org/560028 reported by Aurelien Jarno.
Patch still applies on SVN head.

cu andreas
----- Forwarded message from Aurelien Jarno <aurel32@debian.org> -----

From: Aurelien Jarno <aurel32@debian.org>
Subject: Bug#560028: libgcrypt11: try to use SPARC32 assembly code on SPARC64

Package: libgcrypt11
Version: 1.4.1-1
Severity: normal
Tags: patch
User: debian-sparc@lists.debian.org
Usertags: sparc64

libgcrypt11 fails to build on sparc64, as it tries to mix SPARC32
assembly code on SPARC64. The patch below fixes the problem.

--- libgcrypt11-1.4.4.orig/mpi/config.links
+++ libgcrypt11-1.4.4/mpi/config.links
@@ -138,11 +138,10 @@
mpi_extra_modules="udiv-qrnnd"
;;
sparc64-*-linux-gnu)
- # An extra rule because we have an report for this one only.
- # Should be compared against the next GMP version
- echo '/* configured for sparc64-*-linux-gnu */' >>./mpi/asm-syntax.h
- path="sparc32v8 sparc32"
- mpi_extra_modules="udiv"
+ # There are no sparc64 assembler modules that work on GNU/Linux,
+ # so use the generic C functions.
+ echo '/* No working assembler modules available */' >>./mpi/asm-syntax.h
+ path=""
;;
sparc64-sun-solaris2*)
# Got a report that udiv is missing, so we try this one


-- System Information:
Debian Release: squeeze/sid
APT prefers stable
APT policy: (500, 'unstable')
Architecture: sparc64

Kernel: Linux 2.6.26-2-sparc64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

----- End forwarded message -----

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Re: libgcrypt tries to use SPARC32 assembly code on SPARC64 [ In reply to ]
> this is http://bugs.debian.org/560028 reported by Aurelien Jarno.
> Patch still applies on SVN head.

Thanks. I applied to to all versions as weel as to GnuPG 1.4.
Thus --disable-asm is not anymore needed.


Shalom-Salam,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel