From ecf2a4235c2a7cd8f5bd9b65e1a9aed5adf9f463 Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Wed, 16 Mar 2022 20:47:02 -0700 Subject: [PATCH] Disable building tests when compiling with GCC Signed-off-by: Michel Alexandre Salim --- cachelib.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cachelib.spec b/cachelib.spec index e9cf337..7147c1b 100644 --- a/cachelib.spec +++ b/cachelib.spec @@ -7,9 +7,16 @@ %if %{with toolchain_clang} %global toolchain clang +%bcond_without build_tests +%else +# failure when compiled with GCC 11: +# /builddir/build/BUILD/CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/compact_cache/tests/CCacheTests.cpp:114:1: required from here +# /builddir/build/BUILD/CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/../cachelib/compact_cache/CCacheFixedLruBucket.h:277:11: internal compiler error: Floating point exception +# 277 | memcpy(destPtr, srcPtr, sizeof(T)); +# | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ +%bcond_with build_tests %endif -%bcond_without build_tests # tests not discoverable by ctest yet %bcond_with check