GNU bug report logs -
#49659
[PATCH core-updates] gnu: guile: Fix failing tests on i686-linux.
Previous Next
Reported by: Maxime Devos <maximedevos <at> telenet.be>
Date: Tue, 20 Jul 2021 11:28:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 49659 <at> debbugs.gnu.org (full text, mbox):
i586-gnu might have the same issue.
* gnu/packages/guile.scm (guile-3.0)[arguments]<#:configure-flags>:
Add "-fexcess-precision=standard" to CFLAGS when
(target-x86-32?) is true.
Fixes: <https://issues.guix.gnu.org/49368>.
---
gnu/packages/guile.scm | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index d78c57e88c..86621e4ca0 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -16,6 +16,7 @@
;;; Copyright © 2018 Eric Bavier <bavier <at> member.fsf.org>
;;; Copyright © 2019 Taylan Kammer <taylan.kammer <at> gmail.com>
;;; Copyright © 2020, 2021 Efraim Flashner <efraim <at> flashner.co.il>
+;;; Copyright © 2021 Maxime Devos <maximedevos <at> telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -316,11 +317,19 @@ without requiring the source code to be rewritten.")
(arguments
(substitute-keyword-arguments (package-arguments guile-2.2)
((#:configure-flags flags ''())
- (let ((flags `(cons "--enable-mini-gmp" ,flags)))
- ;; XXX: JIT-enabled Guile crashes in obscure ways on GNU/Hurd.
- (if (hurd-target?)
- `(cons "--disable-jit" ,flags)
- flags)))
+ ;; XXX: JIT-enabled Guile crashes in obscure ways on GNU/Hurd.
+ `(cons* ,@(if (hurd-target?)
+ '("--disable-jit")
+ '())
+ ;; -fexcess-precision=standard is required when compiling for
+ ;; i686-linux, otherwise "numbers.test" will fail
+ ;; (see <https://issues.guix.gnu.org/49368> and
+ ;; <https://issues.guix.gnu.org/49659>).
+ ,@(if (target-x86-32?)
+ '("CFLAGS=-g -O2 -fexcess-precision=standard")
+ '())
+ "--enable-mini-gmp"
+ ,flags))
((#:phases phases)
`(modify-phases ,phases
(add-before 'check 'disable-stack-overflow-test
--
2.32.0
This bug report was last modified 3 years and 303 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.