From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oJ55Ffta5GB6bAEAgWs5BA (envelope-from ) for ; Tue, 06 Jul 2021 15:30:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +CksEfta5GCtFwAAB5/wlQ (envelope-from ) for ; Tue, 06 Jul 2021 13:30:35 +0000 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 982072B442 for ; Tue, 6 Jul 2021 15:30:34 +0200 (CEST) Received: from localhost ([::1]:36646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m0l9j-0003GV-Ql for larch@yhetil.org; Tue, 06 Jul 2021 09:30:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m0l5O-00064y-Tu for bug-guix@gnu.org; Tue, 06 Jul 2021 09:26:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m0l5O-0003JM-3G for bug-guix@gnu.org; Tue, 06 Jul 2021 09:26:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m0l5O-00024J-02 for bug-guix@gnu.org; Tue, 06 Jul 2021 09:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49368: Guile 3.0.7 test failures on i686-linux, glibc 2.33 [core-updates] Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Jul 2021 13:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49368 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 49368@debbugs.gnu.org Received: via spool by 49368-submit@debbugs.gnu.org id=B49368.16255779137872 (code B ref 49368); Tue, 06 Jul 2021 13:26:01 +0000 Received: (at 49368) by debbugs.gnu.org; 6 Jul 2021 13:25:13 +0000 Received: from localhost ([127.0.0.1]:47800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0l4a-00022u-Qd for submit@debbugs.gnu.org; Tue, 06 Jul 2021 09:25:13 -0400 Received: from xavier.telenet-ops.be ([195.130.132.52]:33520) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0l4Y-00022f-9Z for 49368@debbugs.gnu.org; Tue, 06 Jul 2021 09:25:11 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by xavier.telenet-ops.be with bizsmtp id RpR82500R0mfAB401pR80H; Tue, 06 Jul 2021 15:25:08 +0200 Message-ID: From: Maxime Devos Date: Tue, 06 Jul 2021 15:24:46 +0200 In-Reply-To: <87tulbxegp.fsf@inria.fr> References: <87tulbxegp.fsf@inria.fr> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-zj5JmesBmgvjJpKEsM7F" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1625577909; bh=Im1O07rkJfSmj63YOQVy+Ldr+FxtsYPE8xLrdMfxz9M=; h=Subject:From:To:Date:In-Reply-To:References; b=ELYOOiaTFcDwK+tSNnWhv/6cM2j4PIH4BnuC1FDq844fCd/8QXmGVCpOOX9+TV3TW QIIW3j+lxCulkkKQOoY91swVxB4QDxoGrT87FP4xfbWxL//62NVHOCubA3X42rrxDd qDJj7X4zgTdeh1qpElK5HgAzQj6q6D2sDmGK+U7SN0+VrBaM8EHLf3z1E49ErwdBMk UvUKEn4s714ZAhdCcwpdSqMXxy+haKLKcXqv6Lpc52Q8E1+gPZiU1b6qUux648+4Kl Gf/z7QUqhvN/MV1RaPuQ2Y2d0oRlhHbPajuzojleTGb5AkAIA+ca8py1UCG4bwp+l2 0xU1wxqQtkGYQ== 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625578234; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc: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=Im1O07rkJfSmj63YOQVy+Ldr+FxtsYPE8xLrdMfxz9M=; b=UlPXuu8ro8JTmUv0BkKG8cEvFlxEXFYzVfLPv3IkjE8VO75o7Q+H0Fh33H+b7epPpfmp0k ppX1W31/97C9VjI/aMUzdWGFR7vmy4cXXLkL9Kr71mFfPhdaBS5tiA759wVREvYZFP8MIl lT5/vFV7TcdPAEAPDT2zqHK8NajuUPqw9Cq2zNShBZOzhz6gkGShiuucTN6NSD1erWhwFj 8QPXcALEelm7eGXfKWQ2wFRtTpC3ubRjV/uc7h2GjqSNwB4pL8Hio/3fEuitaAFJ5c1MOY qsIxU1mb3emxIHzmJUPFX+HpCTAfyuVlboF9cn17PHLGAjY9VLp6qHQNh+pw5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625578234; a=rsa-sha256; cv=none; b=Y1YSBEFWjwHtKRvx/9O5ep6eNLZtkBvVXmPW3+Rd1JsHrjWcR/3a26MGYpJUQXeK28gSUc cON34uv88cWwwCon1DjrS6/QePywQswhbK/7Nlz/hicTDrR4ZI4HLKEB/rTL0KtfSEfhnd clOwFmIp7YoQ1c5g4KW6gMhuj6g+CZLXUvRgNaAzoYfRBF4o+h8uQJM45cc3PEqLRSmfft Ro8uiTzajmrk0zPJ04x5K2ifCCqxs/DZEGk9XgNy84zTauUU0mNYN1f8y1XwuYo0wdqzXy pR+MmpQeaSyQVYojGEkwbiIdHNld/pEZdVcrWpCbEtWInoy5zz/m9MDVZtBcTA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=ELYOOiaT; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=ELYOOiaT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 982072B442 X-Spam-Score: -3.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8BLlpJ0mv7ei --=-zj5JmesBmgvjJpKEsM7F Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op za 03-07-2021 om 23:41 [+0200]: > On current =E2=80=98core-updates=E2=80=99 > (ca. 39f1486efd70712416ca784f9014132644b04155), Guile 3.0.7, > specifically (@@ (gnu packages commencement) guile-final) fails tests on > i686-linux: >=20 > --8<---------------cut here---------------start------------->8--- > Running numbers.test > FAIL: numbers.test: Number-theoretic division: euclidean/: mixed types: (= 130.0 10/7) > FAIL: numbers.test: Number-theoretic division: euclidean/: mixed types: (= 130.0 -10/7) > FAIL: numbers.test: Number-theoretic division: floor/: mixed types: (130.= 0 10/7) > FAIL: numbers.test: Number-theoretic division: floor/: mixed types: (-130= .0 -10/7) > FAIL: numbers.test: Number-theoretic division: ceiling/: mixed types: (13= 0.0 -10/7) > FAIL: numbers.test: Number-theoretic division: ceiling/: mixed types: (-1= 30.0 10/7) > FAIL: numbers.test: Number-theoretic division: truncate/: mixed types: (1= 30.0 10/7) > FAIL: numbers.test: Number-theoretic division: truncate/: mixed types: (1= 30.0 -10/7) > FAIL: numbers.test: Number-theoretic division: truncate/: mixed types: (-= 130.0 10/7) > FAIL: numbers.test: Number-theoretic division: truncate/: mixed types: (-= 130.0 -10/7) > --8<---------------cut here---------------end--------------->8--- >=20 > Note that this doesn=E2=80=99t happen on =E2=80=98master=E2=80=99 (glibc = 3.31). >=20 > Ludo=E2=80=99. I wondered if the implementation of the C function 'ceil' is buggy, so I tried the following (spoiler: 'ceil' doesn't seem to be the issue, or I need another test case: Run "guix build --system=3Di686-linux -e (@@ (gnu packages commencement) gu= ile-final) --keep-failed". In the build directory, write to a file "test.c": #include #include int main(void) { double x; double y; if (scanf("%lf %lf", &x, &y) < 0) /* < 0 is actually incorrect here */ return 1; if (printf("%lf/%lf=3D%lf\n", x,y, x/y) < 0) return 1; if (printf("ceil(%lf/%lf)=3D%lf\n", x,y, ceil(x/y)) < 0) return 1; return 0; } Run ((exact->inexact 10/7) =3D 1.4285714285714286 on both master and core-u= pdates): $ gcc -Wall -Wextra -lm test.c -o test $ echo "130.0 1.4285714285714286" | ./test 130.000000/1.428571=3D91.000000 ceil(130.000000/1.428571)=3D91.000000 On master, the output is: 130.000000/1.428571=3D91.000000 ceil(130.000000/1.428571)=3D91.000000 (idem) Greetings, Maxime. --=-zj5JmesBmgvjJpKEsM7F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYORZnhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7q/WAQD4dfWMlKM9QjPclKIrEhyjZ5fr lUbDUyS3ybODRQXJyAD8CbgxbnFTq0qARX+7Cu/XY2oZxpd+on6g5ddpcFjbJAk= =3504 -----END PGP SIGNATURE----- --=-zj5JmesBmgvjJpKEsM7F--