Source: pcre3
Version: 1:8.35-3.1
Severity: wishlist
Tags: patch
User: debian-powerpc...@breakpoint.cc
Usertags: powerpcspe

Hi,

on powerpcspe, the build fails as follows:

...
/usr/bin/make check VERBOSE=1
make[1]: Entering directory '/«PKGBUILDDIR»'
/usr/bin/make  check-am
make[2]: Entering directory '/«PKGBUILDDIR»'
/usr/bin/make  
make[3]: Entering directory '/«PKGBUILDDIR»'
/usr/bin/make  all-am
make[4]: Entering directory '/«PKGBUILDDIR»'
make[4]: Leaving directory '/«PKGBUILDDIR»'
make[3]: Leaving directory '/«PKGBUILDDIR»'
/usr/bin/make  check-TESTS
make[3]: Entering directory '/«PKGBUILDDIR»'
make[4]: Entering directory '/«PKGBUILDDIR»'
./test-driver: line 107: 19695 Illegal instruction     "$@" > $log_file 2>&1
FAIL: pcre_jit_test
...

Therefore, I'm proposing the attached patch.

Thanks in advance,

Roland


-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: powerpcspe (ppc)

Kernel: Linux 3.9.0-dirty (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: pcre3-8.35/sljit/sljitConfigInternal.h
===================================================================
--- pcre3-8.35.orig/sljit/sljitConfigInternal.h	2014-10-03 15:36:08.000000000 +0200
+++ pcre3-8.35/sljit/sljitConfigInternal.h	2014-10-03 15:47:05.470848579 +0200
@@ -115,7 +115,11 @@
 #  define SLJIT_CONFIG_UNSUPPORTED 1
 # endif
 #elif defined(__ppc__) || defined(__powerpc__) || defined(_ARCH_PPC) || defined(_ARCH_PWR) || defined(_ARCH_PWR2) || defined(_POWER)
-#define SLJIT_CONFIG_PPC_32 1
+# ifndef __NO_FPRS__
+#  define SLJIT_CONFIG_PPC_32 1
+# else
+#  define SLJIT_CONFIG_UNSUPPORTED 1
+# endif
 #elif defined(__mips__) && !defined(_LP64)
 #define SLJIT_CONFIG_MIPS_32 1
 #elif defined(__mips64)

Reply via email to