Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934463 - sci-mathematics/flint-3.1.0 tests take too much time, some test fail, some tests are not converging. gcc graphite issue?
Summary: sci-mathematics/flint-3.1.0 tests take too much time, some test fail, some te...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL: https://github.com/flintlib/flint/iss...
Whiteboard:
Keywords:
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2024-06-17 14:18 UTC by Arniii
Modified: 2024-06-28 10:21 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/portage/make.conf // profile default/linux/amd64/17.1/desktop/plasma gcc-13 O3 pipe march=native(verbose) lto graphite ggdb3 testing FEATUREs : testing (file_934463.txt,4.28 KB, text/plain)
2024-06-17 14:18 UTC, Arniii
Details
environment // profile default/linux/amd64/17.1/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3 (file_934463.txt,135.87 KB, text/plain)
2024-06-17 14:20 UTC, Arniii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniii 2024-06-17 14:18:37 UTC
Created attachment 895947 [details]
/etc/portage/make.conf // profile default/linux/amd64/17.1/desktop/plasma gcc-13 O3 pipe march=native(verbose) lto graphite ggdb3 testing FEATUREs : testing

Idk why it try to test src-fmpz_mat-test-main and src-fmpq_mpoly_factor-test-main for too much time. 

I've tried manually download the flint-3.1.0 from github releases, compile and test it. It took to test literally less than a minute via `ctest . -j24 --verbose --test-load 999 ` ( literally how portage does (+ --verbose), if believe htop what portage calls. )

idk why it takes too much time on the test via portage, please, explain. 

I'll attach environment and make.conf
Comment 1 Arniii 2024-06-17 14:20:55 UTC
Created attachment 895948 [details]
environment // profile default/linux/amd64/17.1/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3
Comment 2 Arniii 2024-06-17 14:38:40 UTC
hah interesting.

I've tried manually copy compile flags from portage, it fail some test with  qqbar_enclosure_raw: root refinement not converging

for example. Same from portage's attempt.

but previously I just have added -O3 -ggdb3 -pipe -march=native -flto=auto .

I need some iterations to find what flags cause it.
Comment 3 Arniii 2024-06-17 14:47:03 UTC
Iteration 1 with manual testing of release: it happens with my compile flags from my /etc/portage/make.conf

Iteration 2 with manual testing of release: it doesn't happen when without graphite flags
Comment 4 Arniii 2024-06-17 14:55:43 UTC
Iteration 3 with manual testing of release: it happens with my compile flags from my /etc/portage/make.conf, but with -O2

Iteration 4 with manual testing of release: it happens with my compile flags from my /etc/portage/make.conf, but with -O0
Comment 5 Arniii 2024-06-17 14:57:49 UTC
sorry, it happens , iteration 3 and 4 was with -O3 , they are the same as iteration 1
Comment 6 Arniii 2024-06-17 15:01:25 UTC
Iteration 5 with manual testing of release: it DOESN'T happen with `-O0 -pipe -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches`
Comment 7 Arniii 2024-06-17 15:05:01 UTC
Iteration 6 with manual testing of release: it HAPPENS with `-O3 -pipe -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches`
Comment 8 Arniii 2024-06-17 15:08:19 UTC
Iteration 7 with manual testing of release: it HAPPENS with `-O2 -pipe -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches`
Comment 9 Arniii 2024-06-17 15:12:08 UTC
Iteration 8 with manual testing of release: it HAPPENS with `-O2 -pipe -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches`
Comment 10 Arniii 2024-06-17 15:14:42 UTC
Iteration 9 with manual testing of release: it DOESN'T happen with `-O1 -pipe -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches`
Comment 11 Arniii 2024-06-17 15:17:48 UTC
Iteration 10 with manual testing of release: it DOESN'T happen with `-O2 -pipe  -ggdb3 -frecord-gcc-switches`
Comment 12 Arniii 2024-06-17 15:21:31 UTC
Iteration 11 with manual testing of release: it DOESN'T happen with `-O1 -pipe -march=native -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches`

also fyi: 
```
  │  ~/code/experiments/flint-3.1.0/build/GCC_13.2.1_x86_64-pc-linux-gnu/Debug  resolve-march-native                                                                                                                                  
-march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=30720

```
Comment 13 Arniii 2024-06-17 15:22:27 UTC
After all these attempts, I guess, it happens at least when -O2 and graphite flags.
Comment 14 Michael Orlitzky gentoo-dev 2024-06-26 22:00:21 UTC
Confirmed & reported upstream. Unless someone has a better idea, I think I'll filter the graphite flags for now.
Comment 15 Larry the Git Cow gentoo-dev 2024-06-26 22:23:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6d99555e8a35a1080174120515c87c59dc37a5e

commit f6d99555e8a35a1080174120515c87c59dc37a5e
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2024-06-26 22:09:31 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2024-06-26 22:20:04 +0000

    sci-mathematics/flint: add 3.1.3_p1
    
    Closes: https://bugs.gentoo.org/934463
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 sci-mathematics/flint/Manifest                     |   1 +
 .../flint/files/flint-3.1.3_p1-c99-I.patch         | 320 +++++++++++++++++++++
 sci-mathematics/flint/flint-3.1.3_p1.ebuild        |  89 ++++++
 3 files changed, 410 insertions(+)
Comment 16 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-27 04:44:19 UTC
Someone may want to try reduce it but it won't be me, at least not any time soon.