Bug#856356: linbox FTBFS on mips/mipsel: segfault in test-charpoly

2017-03-08 Thread Radovan Birdic
Hi,

Test 'test-charpoly' fails for mips and mipsel:
https://github.com/linbox-team/linbox/issues/37

A workaround at this point could be to disable this test, please see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797167

Current solution for this in debian/rules file (which disables this test) does 
not work properly.

Disabling test should be done before autoreconf stage.
The test has been disabled for both mips and mipsel.
I have created and attached a patch which disables this test.
With this patch package builds successfully, without test-charpoly execution.

Regards,
Radovan--- linbox-1.4.2_orig/debian/rules	2016-11-29 22:32:45.0 +
+++ linbox-1.4.2/debian/rules	2017-03-07 13:56:57.0 +
@@ -15,10 +15,10 @@ DEB_HOST_ARCH_CPU ?= $(shell dpkg-archit
 
 # Disable failing test test-charpoly on mipsel.
 # See https://github.com/linbox-team/linbox/issues/37
-ifeq ($(DEB_HOST_ARCH_CPU), $(filter $(DEB_HOST_ARCH_CPU), mipsel))
-build:
+ifeq ($(DEB_HOST_ARCH_CPU), $(filter $(DEB_HOST_ARCH_CPU), mips mipsel))
+override_dh_autoreconf:
 	sed -e '/\s*test-charpoly\s*\\/d' -i tests/Makefile.am
-	dh build --with autoreconf --parallel
+	dh_autoreconf -a -O--parallel
 endif
 
 override_dh_auto_configure:


Bug#856356: linbox FTBFS on mips/mipsel: segfault in test-charpoly

2017-02-28 Thread Adrian Bunk
Source: linbox
Version: 1.4.2-3
Severity: important

https://buildd.debian.org/status/package.php?p=linbox=sid

...
PASS: test-blas-matrix
../build-aux/test-driver: line 107: 15983 Segmentation fault  "$@" > 
$log_file 2>&1
FAIL: test-charpoly
PASS: test-ntl-lzz_pex
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2 
-fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat 
-Werror=format-security ../linbox/liblinbox.la -Wl,-z,relro -Wl,-z,now -fopenmp 
-o test-toeplitz-det test-toeplitz-det.o -lntl -lmpfr  -liml   -fopenmp -lblas 
-llapack -lgivaro -lgmpxx -lgmp  -Wl,-z,relro -Wl,-z,now -fopenmp 
libtool: link: g++ -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro 
-Wl,-z -Wl,now -fopenmp -o .libs/test-toeplitz-det test-toeplitz-det.o -fopenmp 
-Wl,-z -Wl,relro -Wl,-z -Wl,now -fopenmp  ../linbox/.libs/liblinbox.so -lntl 
-lmpfr -liml -lblas -llapack -lgivaro -lgmpxx -lgmp -fopenmp
PASS: test-toeplitz-det
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2 
-fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat 
-Werror=format-security ../linbox/liblinbox.la -Wl,-z,relro -Wl,-z,now -fopenmp 
-o test-solve test-solve.o -lntl -lmpfr  -liml   -fopenmp -lblas -llapack 
-lgivaro -lgmpxx -lgmp  -Wl,-z,relro -Wl,-z,now -fopenmp 
libtool: link: g++ -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro 
-Wl,-z -Wl,now -fopenmp -o .libs/test-solve test-solve.o -fopenmp -Wl,-z 
-Wl,relro -Wl,-z -Wl,now -fopenmp  ../linbox/.libs/liblinbox.so -lntl -lmpfr 
-liml -lblas -llapack -lgivaro -lgmpxx -lgmp -fopenmp
PASS: test-solve
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2 
-fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat 
-Werror=format-security ../linbox/liblinbox.la -Wl,-z,relro -Wl,-z,now -fopenmp 
-o test-regression test-regression.o -lntl -lmpfr  -liml   -fopenmp -lblas 
-llapack -lgivaro -lgmpxx -lgmp  -Wl,-z,relro -Wl,-z,now -fopenmp 
libtool: link: g++ -g -O2 -fdebug-prefix-map=/«PKGBUILDDIR»=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro 
-Wl,-z -Wl,now -fopenmp -o .libs/test-regression test-regression.o -fopenmp 
-Wl,-z -Wl,relro -Wl,-z -Wl,now -fopenmp  ../linbox/.libs/liblinbox.so -lntl 
-lmpfr -liml -lblas -llapack -lgivaro -lgmpxx -lgmp -fopenmp
PASS: test-regression

   LinBox 1.4.2: tests/test-suite.log


# TOTAL: 15
# PASS:  14
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test-charpoly
===

FAIL test-charpoly (exit status: 139)


Testsuite summary for LinBox 1.4.2

# TOTAL: 15
# PASS:  14
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

See tests/test-suite.log
Please report to linbox-...@googlegroups.com

Makefile:2260: recipe for target 'test-suite.log' failed
make[5]: *** [test-suite.log] Error 1