From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KMNONGUVo2WcEwAA62LTzQ:P1 (envelope-from ) for ; Sat, 13 Jan 2024 23:57:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KMNONGUVo2WcEwAA62LTzQ (envelope-from ) for ; Sat, 13 Jan 2024 23:57:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=xtpzTOIc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705186661; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8ebCYunJsZhwNbCebtYrT4TBwkS9tZMhEQBn3l9pyDU=; b=T/UiQdyjEcDKUsZ+dOFDVv99v7+WS0TCZO74mpZaqH7/dVTs+Ifw1q3tSYJClC84S9xALn hoFTNVGTcFlTEETXEzK/lMMfEA6R/4Bh88lyzS9aTHJVzhdbVVLR/g1eyjijrq0B4N6sS7 pitmwO1hqwhO7kQcUEb4x6evy4ufLkJCEd5ovnjiQPMeldg8aNhoC2K8Y4CyjMtYBUGE16 GLed1gX0cdOHjRPcsHPUunCEAPBaP+M1Tg2nu8xxeNn5bzOpzLdV+3u4skFiHPN2fc2LeB yy5opjOMWIB7X4VYyYm6Az7Auu/pa2QFqQqO/QrmVRpLyHFhAXIOdrIJbuNO9Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705186661; a=rsa-sha256; cv=none; b=PAhUPVJXjzo6viGgMWok0cV7Npqf7Icrv5YqYm8pggmkGbrRr53s8Jgwk67lp1bC7aOSbG xaAH7TnnvTvMxHLfyjo0tVCXHgpvY9mlgCJhNxqpMy5Z07TAWB5ta9pB4c157aqxpb38+r EhQIKgGfk98uWt08b1Mven/gXmSloVMS7svrcEw/+sxDIedmTq+PEoYiyfE4Ypw7Fg4qaW utcg18ZCnQto/7Z3DDn5R1YbgmkCI/zCw56qmH4Pydx15lmyiLAl5Sdh/djYA6BwjFre2I Q6OcXrS3LFqNRqr85w8vJRalw3/W3osba3nGD8GjOONw+A2bB+yrn6v5B2ruVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=xtpzTOIc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8ED646E91C for ; Sat, 13 Jan 2024 23:57:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOmw6-0001aR-UN; Sat, 13 Jan 2024 17:57:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOmw4-0001ZT-Is for bug-guix@gnu.org; Sat, 13 Jan 2024 17:57:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOmw3-0002JP-VO for bug-guix@gnu.org; Sat, 13 Jan 2024 17:57:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOmw2-0004Y6-PU for bug-guix@gnu.org; Sat, 13 Jan 2024 17:57:02 -0500 Subject: bug#68429: Catch2-3.5.1 tests fails on i686-linux, SSE extension References: <3e5407f77e0e70bafed2f11eed692cdc@freakingpenguin.com> In-Reply-To: <3e5407f77e0e70bafed2f11eed692cdc@freakingpenguin.com> Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sat, 13 Jan 2024 22:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 68429 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Richard Sent Cc: 68429-done@debbugs.gnu.org Mail-Followup-To: 68429@debbugs.gnu.org, john.kehayias@protonmail.com, richard@freakingpenguin.com Received: via spool by 68429-done@debbugs.gnu.org id=D68429.170518661117445 (code D ref 68429); Sat, 13 Jan 2024 22:57:02 +0000 Received: (at 68429-done) by debbugs.gnu.org; 13 Jan 2024 22:56:51 +0000 Received: from localhost ([127.0.0.1]:41318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOmvq-0004XI-UL for submit@debbugs.gnu.org; Sat, 13 Jan 2024 17:56:51 -0500 Received: from mail-4316.protonmail.ch ([185.70.43.16]:59113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOmvp-0004Wq-5O for 68429-done@debbugs.gnu.org; Sat, 13 Jan 2024 17:56:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1705186604; x=1705445804; bh=8ebCYunJsZhwNbCebtYrT4TBwkS9tZMhEQBn3l9pyDU=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=xtpzTOIcxwymh33KNkmJBxU8CxthOXROF7c922ceYSfpavR+sSB8JIyen1Z2Flz8R 1FeuLvg+nmXseJB9yTPJ3U91PwxNl1any+51t6LxRB7KsHIjzewUQeI2viuEnNpNcD MjExPL6yecsJDFp9RAbJhS+NPTTFJ5CFYni4dMIX9I4en7u5hBjwLStEHbZ+4cYjZl HXiUP/byBhcWKM177YvcWyUpI0eAlZZEjTGU6zICG1I9p9NAWijQDLzK/aJUY09/LR +/PK749VdqgwfIwvJRkEzwfQqkTadvcq8tSSvJ8niYHmbTG/w5fu0VGWH28zBj64iT r4Cqm6sieTXyA== Date: Sat, 13 Jan 2024 22:56:22 +0000 Message-ID: <878r4sc06k.fsf@protonmail.com> Feedback-ID: 7805494:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: John Kehayias From: John Kehayias via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.20 X-Spam-Score: -7.20 X-Migadu-Queue-Id: 8ED646E91C X-TUID: TfU5bPY7GJxX Hi, On Sat, Jan 13, 2024 at 11:43 AM, Richard Sent wrote: > Opening a ticket so discussions a bit more organized. Hope this > doesn't step on anybody's toes. > > Catch2-3.5.1 fails to build with system=3Di686-linux, log attached. This > is due to a test added upstream that assumes the SSE extension is > present, > SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp:570. > > One fix was proposed that replaces GCC with Clang, attached. This > works because Clang assumes the SSE extension by default. If we add > "-DCMAKE_CXX_FLAGS=3D-mno-sse", the test fails again. > > Another solution is to add "-DCMAKE_CXX_FLAGS=3D-msse -mfpmath=3Dsse" to > the existing package definition. > > Of the two, the second is more explicit in how the problem is > resolved, but I don't know if we should assume SSE is present on i686. > Thanks! Looking at other packages, seems it is find to enable SSE, just for x86_64 and i686. Other times we explicitly disable SSE2 more generally, but in this case it makes sense to match upstream (unless they change this) and enable in these cases. So, I used that configure flag just for those systems in 18393fcdddf5c3d834fa89ebf5f3925fc5b166ed which I've pushed. I added you and another (Jo Gay, from the other channel) as co-authors for finding the fix(es). > An issue was opened upstream at > https://github.com/catchorg/Catch2/issues/2796 > And thanks for this too! John > Richard Sent > > diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm > index 449340f331..e09a7bd82a 100644 > --- a/gnu/packages/check.scm > +++ b/gnu/packages/check.scm > @@ -621,9 +621,14 @@ (define-public catch2-3 > (arguments > (list > #:configure-flags > - #~(list "-DCATCH_DEVELOPMENT_BUILD=3DON" > + #~(list "-DCMAKE_CXX_COMPILER=3Dclang++" ; tests fail with gcc-11 = on i686 > + "-DCMAKE_CXX_STANDARD=3D14" > + "-DCMAKE_CXX_STANDARD_REQUIRED=3DON" > + "-DCMAKE_CXX_EXTENSIONS=3DOFF" > + "-DCATCH_DEVELOPMENT_BUILD=3DON" > "-DCATCH_ENABLE_WERROR=3DOFF" > "-DBUILD_SHARED_LIBS=3DON"))) > + (native-inputs (list clang-10)) > (inputs (list python-wrapper)) > (synopsis "Automated test framework for C++ and Objective-C") > (description "Catch2 stands for C++ Automated Test Cases in Headers = and is