[lapack] 01/01: Do not compile the testsuite with -frecursive.

Sébastien Villemot sebastien at moszumanska.debian.org
Fri Nov 22 16:58:40 UTC 2013


This is an automated email from the git hooks/post-receive script.

sebastien pushed a commit to branch master
in repository lapack.

commit 219eb374240148185e332b545dad9dc3976eb764
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Fri Nov 22 17:58:29 2013 +0100

    Do not compile the testsuite with -frecursive.
    
    Otherwise some test binaries allocate too much space on the stack, leading to
    crashes on mips{,el}.
---
 debian/changelog |    8 ++++++++
 debian/rules     |    5 ++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index dd708cb..77516c7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+lapack (3.5.0-2) UNRELEASED; urgency=low
+
+  * Do not compile the testsuite with -frecursive. Otherwise some test
+    binaries allocate too much space on the stack, leading to crashes on
+    mips{,el}.
+
+ -- Sébastien Villemot <sebastien at debian.org>  Fri, 22 Nov 2013 17:56:33 +0100
+
 lapack (3.5.0-1) unstable; urgency=low
 
   * New upstream release.
diff --git a/debian/rules b/debian/rules
index be5a15a..4b7c330 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,6 +28,9 @@ ifeq ($(ARCH),alpha)
 endif
 
 # Using the -frecursive flag is the solution recommended by upstream for #693269
+# However, we don't want to use -frecursive for the testsuite, it leads to
+#  segfaults on mips{,el} (xeigtstz allocates too much space on the stack)
+FFLAGS_TESTSUITE = $(FFLAGS)
 FFLAGS += -frecursive
 FFLAGS_NOOPT += -frecursive
 
@@ -118,7 +121,7 @@ lapacke/liblapacke.a: make.inc
 
 testing/testing_results.txt: liblapack.so
 	LD_LIBRARY_PATH=$$(pwd):$$LD_LIBRARY_PATH \
-		$(MAKE) PICOPTS= \
+		$(MAKE) PICOPTS= OPTS=$(FFLAGS_TESTSUITE) \
 		LLIB="-L $$(pwd) -llapack -lblas" lapack_testing
 
 #

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lapack.git



More information about the debian-science-commits mailing list