* bug#74216: [science team] flint build failure
@ 2024-11-05 20:43 Greg Hogan
2024-11-05 20:47 ` bug#74216: [PATCH science-team] gnu: flint: Update gcc version Greg Hogan
2024-11-12 14:01 ` bug#74216: [science team] flint build failure Andreas Enge
0 siblings, 2 replies; 4+ messages in thread
From: Greg Hogan @ 2024-11-05 20:43 UTC (permalink / raw)
To: 74216; +Cc: Andreas Enge, Sharlatan Hellseher, bavier
[-- Attachment #1: Type: text/plain, Size: 1317 bytes --]
flint fails to build for me with the following error unless I include
as an input a newer gcc version.
Greg
--8<---------------cut here---------------start------------->8---
CC fmpz_poly_q/add.c
In file included from src/fft_small/mpn_mul.c:17:
src/fft_small/mpn_mul.c: In function ‘_mpn_from_ffts_8’:
./src/crt_helpers.h:120:3: error: ‘asm’ operand has impossible constraints
120 | __asm__ ("addq %23,%q7\nadcq %21,%q6\nadcq %19,%q5\n\tadcq
%17,%q4\n\tadcq %15,%q3\n\tadcq %13,%q2\n\tadcq %11,%q1\n\tadcq
%9,%q0" \
| ^~~~~~~
./src/crt_helpers.h:378:5: note: in expansion of macro
‘add_ssssssssaaaaaaaaaaaaaaaa’
378 | add_ssssssssaaaaaaaaaaaaaaaa(z[7],z[6],z[5],z[4],z[3],z[2],z[1],z[0],
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./src/crt_helpers.h:120:3: error: ‘asm’ operand has impossible constraints
120 | __asm__ ("addq %23,%q7\nadcq %21,%q6\nadcq %19,%q5\n\tadcq
%17,%q4\n\tadcq %15,%q3\n\tadcq %13,%q2\n\tadcq %11,%q1\n\tadcq
%9,%q0" \
| ^~~~~~~
./src/crt_helpers.h:378:5: note: in expansion of macro
‘add_ssssssssaaaaaaaaaaaaaaaa’
378 | add_ssssssssaaaaaaaaaaaaaaaa(z[7],z[6],z[5],z[4],z[3],z[2],z[1],z[0],
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
--8<---------------cut here---------------end--------------->8---
[-- Attachment #2: diy9z2pwhjn6g5friaxcq32jpdx36b-flint-3.1.2.drv.gz --]
[-- Type: application/gzip, Size: 65460 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#74216: [PATCH science-team] gnu: flint: Update gcc version.
2024-11-05 20:43 bug#74216: [science team] flint build failure Greg Hogan
@ 2024-11-05 20:47 ` Greg Hogan
2024-11-12 14:01 ` bug#74216: [science team] flint build failure Andreas Enge
1 sibling, 0 replies; 4+ messages in thread
From: Greg Hogan @ 2024-11-05 20:47 UTC (permalink / raw)
To: 74216; +Cc: Greg Hogan, Andreas Enge, Eric Bavier, Sharlatan Hellseher
* gnu/packages/algebra.scm (flint)[inputs]: Add gcc-14.
Change-Id: Ie9d20d5d0740770591016922d2d2a3aa54c57069
---
gnu/packages/algebra.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 2187cd062d..b782605771 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -458,7 +458,7 @@ (define-public flint
(base32 "0017bjncpx4kdx67qcnm3nahz3gyyi2w3ggkrx586r3llcqs9czx"))))
(build-system gnu-build-system)
(inputs
- (list ntl))
+ (list gcc-14 ntl))
(propagated-inputs
(list gmp mpfr)) ; header files included by flint.h or mpfr_mat.h
(arguments
base-commit: 6e50b0c56a8cc767bd3acb26638f78c450bde718
--
2.46.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#74216: [science team] flint build failure
2024-11-05 20:43 bug#74216: [science team] flint build failure Greg Hogan
2024-11-05 20:47 ` bug#74216: [PATCH science-team] gnu: flint: Update gcc version Greg Hogan
@ 2024-11-12 14:01 ` Andreas Enge
2024-11-12 19:19 ` Greg Hogan
1 sibling, 1 reply; 4+ messages in thread
From: Andreas Enge @ 2024-11-12 14:01 UTC (permalink / raw)
To: Greg Hogan; +Cc: bavier, Sharlatan Hellseher, 74216
Hello Greg,
Am Tue, Nov 05, 2024 at 03:43:31PM -0500 schrieb Greg Hogan:
> flint fails to build for me with the following error unless I include
> as an input a newer gcc version.
out of curiosity, what is your exact build architecture and processor
line? The package builds without problems on my rather old laptop, and
on the Guix build farms.
I have asked someone who knows the flint code well, and they said it
means that gcc has trouble realising how to expand the assembly code
into load and stores and computation on machines with less than 8
registers. Apparently it is a combination of compiler versions and
processor specifics.
Apart from that, I think we can apply your patch without worries, but
I am just curious about what is happening.
What is mildly worrying is that we already use the "--disable-assembly"
configure flag; this could be a bug in the flint configuration.
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#74216: [science team] flint build failure
2024-11-12 14:01 ` bug#74216: [science team] flint build failure Andreas Enge
@ 2024-11-12 19:19 ` Greg Hogan
0 siblings, 0 replies; 4+ messages in thread
From: Greg Hogan @ 2024-11-12 19:19 UTC (permalink / raw)
To: Andreas Enge; +Cc: 74216-done, Sharlatan Hellseher, bavier
On Tue, Nov 12, 2024 at 9:01 AM Andreas Enge <andreas@enge.fr> wrote:
>
> Hello Greg,
>
> Am Tue, Nov 05, 2024 at 03:43:31PM -0500 schrieb Greg Hogan:
> > flint fails to build for me with the following error unless I include
> > as an input a newer gcc version.
>
> out of curiosity, what is your exact build architecture and processor
> line? The package builds without problems on my rather old laptop, and
> on the Guix build farms.
AWS r7a, AMD EPYC (4th Gen) 9R14
> I have asked someone who knows the flint code well, and they said it
> means that gcc has trouble realising how to expand the assembly code
> into load and stores and computation on machines with less than 8
> registers. Apparently it is a combination of compiler versions and
> processor specifics.
>
> Apart from that, I think we can apply your patch without worries, but
> I am just curious about what is happening.
>
> What is mildly worrying is that we already use the "--disable-assembly"
> configure flag; this could be a bug in the flint configuration.
>
> Andreas
Thanks for investigating this issue and pointing me in the right
direction. Turns out the flint package builds successfully when
upgrading GCC from 11.4 to 11.5. It looks like the processor was too
new.
When considering reproducible builds, this is a bug when building on
future, unknown hardware. For a time-bomb we can set back the clock,
and here we would need processor emulation?
Marking as done since the fix is to update a core package.
Greg
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-11-12 19:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-05 20:43 bug#74216: [science team] flint build failure Greg Hogan
2024-11-05 20:47 ` bug#74216: [PATCH science-team] gnu: flint: Update gcc version Greg Hogan
2024-11-12 14:01 ` bug#74216: [science team] flint build failure Andreas Enge
2024-11-12 19:19 ` Greg Hogan
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.