GNU bug report logs -
#72451
[PATCH core-updates] gnu: gsl: Fix build on i686.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72451 in the body.
You can then email your comments to 72451 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#72451
; Package
guix-patches
.
(Sat, 03 Aug 2024 20:03:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kaelyn Takata <kaelyn.alexi <at> protonmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Sat, 03 Aug 2024 20:03:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/maths.scm (gsl)[arguments]<#:make-flags>: Include the default
CFLAGS, restoring the optimized build and fixing test failures on i686.
Change-Id: I64a43368b000995e03810b33de131aba4203d02b
---
gnu/packages/maths.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index c06eddcc34..984aa35066 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -729,7 +729,7 @@ (define-public gsl
(build-system gnu-build-system)
(arguments
(let ((system (%current-system)))
- `(#:make-flags (list "CFLAGS=-fPIC")
+ `(#:make-flags (list "CFLAGS=-g -O2 -fPIC")
#:phases
(modify-phases %standard-phases
,@(cond
base-commit: baad95b19a24401cad8bee7290e5dbf3b3f38287
--
2.45.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#72451
; Package
guix-patches
.
(Sun, 18 Aug 2024 17:46:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 72451 <at> debbugs.gnu.org (full text, mbox):
Hi Ludo,
I noticed this morning that you recently pushed commit fa8dbbe59d to fix the i686-linux gsl test failures. I'd submitted a similar fix about two weeks ago (along with a couple of other i686-linux fixes that affect building wine64), and I wanted to mention that I don't think your commit does the right thing with CFLAGS. When I figured out the error, I noticed a side-effect of passing CFLAGS=-fPIC as the #:make-flags is that it disables the optimized build (or at least relies on whatever optimizations the compiler defaults to, which AFAIK is little to none). While your patch also cleans up the definition a bit by no longer disabling some tests, I think the correct approach is to include the package's default CFLAGS as part of the #:make-flags as I did in issue 72451 so that optimizations aren't unintentionally disabled.
Cheers,
Kaelyn
Information forwarded
to
guix-patches <at> gnu.org
:
bug#72451
; Package
guix-patches
.
(Tue, 20 Aug 2024 12:44:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 72451 <at> debbugs.gnu.org (full text, mbox):
Hi Kaelyn,
Kaelyn <kaelyn.alexi <at> protonmail.com> skribis:
> I noticed this morning that you recently pushed commit fa8dbbe59d to fix the i686-linux gsl test failures. I'd submitted a similar fix about two weeks ago (along with a couple of other i686-linux fixes that affect building wine64), and I wanted to mention that I don't think your commit does the right thing with CFLAGS. When I figured out the error, I noticed a side-effect of passing CFLAGS=-fPIC as the #:make-flags is that it disables the optimized build (or at least relies on whatever optimizations the compiler defaults to, which AFAIK is little to none). While your patch also cleans up the definition a bit by no longer disabling some tests, I think the correct approach is to include the package's default CFLAGS as part of the #:make-flags as I did in issue 72451 so that optimizations aren't unintentionally disabled.
Oh, apologies for not noticing <https://issues.guix.gnu.org/72451>.
What you did looks correct to me. I added a FIXME about ‘CFLAGS=-fPIC’
stating roughly what you explained here.
The reason I did not change CFLAGS on other architectures was to avoid a
massive rebuild at this late stage of the branch (‘gsl’ has 2.9K
dependents).
But I agree: we should clean that up for all platforms, and check which
of the tests really need to be skipped on 32-bit platforms once compiled
with optimizations. We can create a branch with such a patch once
‘core-updates’ is merged.
WDYT?
Thanks,
Ludo’.
bug closed, send any further explanations to
72451 <at> debbugs.gnu.org and Kaelyn Takata <kaelyn.alexi <at> protonmail.com>
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 28 Aug 2024 21:20:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 26 Sep 2024 11:24:12 GMT)
Full text and
rfc822 format available.
This bug report was last modified 267 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.