gmp-5.1.x build fails for linux armv4 targets

Mike Frysinger vapier at gentoo.org
Sun Apr 21 04:23:26 CEST 2013


starting with gmp-5.1.0, building gmp for armv4 processors fails due to 
__gmpn_invert_limb being undefined.  comparing to gmp-5.0.5, it looks like it's 
because the mpn/arm/ subdir no longer gets searched.

looks like this was introduced with this commit:
commit fdd10eef4e4a4f888b23b39e2641a84101d435e1
Author: Torbjorn Granlund <tege at gmplib.org>
Date:   Wed Nov 28 16:19:56 2012 +0100

    Support specific ARM processors.

before that commit, armv4 procs would get caught up in the general glob:
	case $host_cpu in
...
	*)
		path="arm"
		;;
	esac

but now it hits an empty case:
	case $host_cpu in
	armsa1 | armv4*)
		;;

the commit seems to imply the goal was to support more cpu-specific flags 
(gcc_cflags_arch), so i'm not sure the disabling of path was on purpose.

this fix to latest hg repo seems to fix things for me.  at least, gmp can now be 
linked against when building mpfr :).
-mike

--- a/configure.ac
+++ b/configure.ac
@@ -582,6 +582,7 @@ case $host in
     # options fail.
     case $host_cpu in
       armsa1 | arm9tdmi | armv4*)
+	path="arm"
 	;;
       armxscale | arm9te | arm10 | armv5*)
 	path="arm/v5 arm"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://gmplib.org/list-archives/gmp-bugs/attachments/20130420/86d91421/attachment.bin>


More information about the gmp-bugs mailing list