Hi,
At $dayjob we maintain our own cross-toolchains (mostly plucked from
gentoo linux). Out mips compiler ends up named
"mipsbe-softfloat-linux-gnu" which fails the supported CPU test based
on $host_cpu. I'm not sure how common the mipsbe thing is but I found
a few references to it on various gcc mailing lists so I assume we're
not the only ones.
So here's a patch to update the configure test. Actually I thought by
putting the mips64 stuff first we can collapse the mips32 tests into a
single wildcard match. Both approaches fix my problem but the 2nd one
is affects more platforms so might be a little more contentious.
I'm posting this here because I didn't want to create an account on
kde.org just to report a bug for which I already had a fix for. If you
really a bugzilla report raised let me know.
Cheers,
Chris
diff -ur valgrind-3.9.0.orig/configure valgrind-3.9.0/configure
--- valgrind-3.9.0.orig/configure 2013-11-01 12:33:32.000000000 +1300
+++ valgrind-3.9.0/configure 2014-02-13 15:11:29.401852475 +1300
@@ -5402,6 +5402,12 @@
ARCH_MAX="mips32"
;;
+ mipsbe)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
+$as_echo "ok (${host_cpu})" >&6; }
+ ARCH_MAX="mips32"
+ ;;
+
mipsel)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
$as_echo "ok (${host_cpu})" >&6; }
diff -ur valgrind-3.9.0.orig/configure.ac valgrind-3.9.0/configure.ac
--- valgrind-3.9.0.orig/configure.ac 2013-11-01 12:28:16.000000000 +1300
+++ valgrind-3.9.0/configure.ac 2014-02-13 15:10:42.951007986 +1300
@@ -200,6 +200,11 @@
ARCH_MAX="mips32"
;;
+ mipsbe)
+ AC_MSG_RESULT([ok (${host_cpu})])
+ ARCH_MAX="mips32"
+ ;;
+
mipsel)
AC_MSG_RESULT([ok (${host_cpu})])
ARCH_MAX="mips32"
diff -ur valgrind-3.9.0.orig/configure valgrind-3.9.0/configure
--- valgrind-3.9.0.orig/configure 2013-11-01 12:33:32.000000000 +1300
+++ valgrind-3.9.0/configure 2014-02-13 15:16:39.770112180 +1300
@@ -5396,35 +5396,24 @@
ARCH_MAX="arm"
;;
- mips)
+ mips64*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
$as_echo "ok (${host_cpu})" >&6; }
- ARCH_MAX="mips32"
+ ARCH_MAX="mips64"
;;
- mipsel)
+ mipsisa64*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
$as_echo "ok (${host_cpu})" >&6; }
- ARCH_MAX="mips32"
+ ARCH_MAX="mips64"
;;
- mipsisa32r2)
+ mips*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
$as_echo "ok (${host_cpu})" >&6; }
ARCH_MAX="mips32"
;;
- mips64*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
-$as_echo "ok (${host_cpu})" >&6; }
- ARCH_MAX="mips64"
- ;;
-
- mipsisa64*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (${host_cpu})" >&5
-$as_echo "ok (${host_cpu})" >&6; }
- ARCH_MAX="mips64"
- ;;
*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no (${host_cpu})" >&5
$as_echo "no (${host_cpu})" >&6; }
diff -ur valgrind-3.9.0.orig/configure.ac valgrind-3.9.0/configure.ac
--- valgrind-3.9.0.orig/configure.ac 2013-11-01 12:28:16.000000000 +1300
+++ valgrind-3.9.0/configure.ac 2014-02-13 15:16:34.490244133 +1300
@@ -195,30 +195,21 @@
ARCH_MAX="arm"
;;
- mips)
+ mips64*)
AC_MSG_RESULT([ok (${host_cpu})])
- ARCH_MAX="mips32"
+ ARCH_MAX="mips64"
;;
- mipsel)
+ mipsisa64*)
AC_MSG_RESULT([ok (${host_cpu})])
- ARCH_MAX="mips32"
+ ARCH_MAX="mips64"
;;
- mipsisa32r2)
+ mips*)
AC_MSG_RESULT([ok (${host_cpu})])
ARCH_MAX="mips32"
;;
- mips64*)
- AC_MSG_RESULT([ok (${host_cpu})])
- ARCH_MAX="mips64"
- ;;
-
- mipsisa64*)
- AC_MSG_RESULT([ok (${host_cpu})])
- ARCH_MAX="mips64"
- ;;
*)
AC_MSG_RESULT([no (${host_cpu})])
AC_MSG_ERROR([Unsupported host architecture. Sorry])
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users