[flint] On ARM arches, disable tests that exhaust virtual memory while compiling.

Jerry James jjames at fedoraproject.org
Fri Feb 14 16:14:07 UTC 2014


commit 8378adebc0749cc0d3ac0c47ea07e3efdbae6b05
Author: Jerry James <jamesjer at betterlinux.com>
Date:   Fri Feb 14 09:14:30 2014 -0700

    On ARM arches, disable tests that exhaust virtual memory while compiling.

 flint.spec |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/flint.spec b/flint.spec
index 87da3e3..4ba0628 100644
--- a/flint.spec
+++ b/flint.spec
@@ -106,6 +106,9 @@ for fil in $(find . -name \*.c -o -name \*.h); do
 done
 
 %build
+# We set HAVE_FAST_COMPILER to 0 on ARM because otherwise the tests exhaust
+# virtual memory.  If other architectures run out of virtual memory while
+# building flintxx/test/t-fmpzxx.cpp, then do likewise.
 OS=Linux \
 MACHINE=%{_arch} \
 FLINT_LIB=libflint.so.%{sover} \
@@ -116,8 +119,13 @@ sh -x ./configure \
     --with-mpfr=%{_libdir} \
     --with-ntl=%{_libdir} \
     --enable-cxx \
+%ifarch %{arm}
+    CFLAGS="%{optflags} -DHAVE_FAST_COMPILER=0" \
+    CXXFLAGS="%{optflags} -DHAVE_FAST_COMPILER=0" \
+%else
     CFLAGS="%{optflags}" \
     CXXFLAGS="%{optflags}" \
+%endif
     LDFLAGS="-Wl,--as-needed $RPM_LD_FLAGS"
 make %{?_smp_mflags} verbose
 
@@ -134,7 +142,7 @@ ln -s libflint.so.%{sover} %{buildroot}%{_libdir}/libflint.so
 chmod 0755 %{buildroot}%{_libdir}/libflint.so.%{sover}
 
 %check
-make check
+make check QUIET_CC= QUIET_CXX= QUIET_AR=
 
 %post -p /sbin/ldconfig
 
@@ -165,6 +173,7 @@ make check
 - Minimize the set of LaTeX BRs
 - Enable verbose build
 - Link with Fedora LDFLAGS
+- On ARM arches, disable tests that exhaust virtual memory while compiling
 
 * Mon Aug  5 2013 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 2.3-1.20130801git4b383e2
 - Update to pre 2.4 snapshot that supports gmp, required by sagemath 5.10


More information about the scm-commits mailing list