Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936498 - sci-mathematics/primecount-7.13 - [perl-5.40] [icu-75.1] [gcc-15] /.../libdivide.h: error: const class libdivide::divider<T, ALGO> has no member named denom
Summary: sci-mathematics/primecount-7.13 - [perl-5.40] [icu-75.1] [gcc-15] /.../libdiv...
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/kimwalisch/primeco...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-15
  Show dependency tree
 
Reported: 2024-07-22 18:49 UTC by Toralf Förster
Modified: 2024-07-30 20:29 UTC (History)
4 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.63 KB, text/plain)
2024-07-22 18:49 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,202.21 KB, text/plain)
2024-07-22 18:49 UTC, Toralf Förster
Details
environment (environment,98.81 KB, text/plain)
2024-07-22 18:49 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.15 KB, application/x-xz)
2024-07-22 18:49 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,46.90 KB, application/x-xz)
2024-07-22 18:49 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,51.43 KB, application/x-xz)
2024-07-22 18:49 UTC, Toralf Förster
Details
sci-mathematics:primecount-7.6:20240722-050920.log (sci-mathematics:primecount-7.6:20240722-050920.log,29.51 KB, text/plain)
2024-07-22 18:49 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,23.16 KB, application/x-xz)
2024-07-22 18:49 UTC, Toralf Förster
Details
Fixes template checking error (gcc-15-fix.patch,531 bytes, patch)
2024-07-30 15:49 UTC, Christopher Fore
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-07-22 18:49:43 UTC
too long lines were shrinked:

[38/48] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DIV32 -Dlibprimecount_EXPORTS -I/var/tmp/portage/sci-mathematics/primecount-7.6/work/primecount-7.6/include  -O2 -pipe -march=native -fno-diagnostics-color -fPIC -fno-diagnostics-color -mpopcnt -Wno-uninitialized -fopenmp -MD -MT CMakeFiles/libprimec
[39/48] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DIV32 -Dlibprimecount_EXPORTS -I/var/tmp/portage/sci-mathematics/primecount-7.6/work/primecount-7.6/include  -O2 -pipe -march=native -fno-diagnostics-color -fPIC -fno-diagnostics-color -mpopcnt -Wno-uninitialized -fopenmp -MD -MT CMakeFiles/libprimec
FAILED: CMakeFiles/libprimecount.dir/src/deleglise-rivat/S2_easy_libdivide.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_DIV32 -Dlibprimecount_EXPORTS -I/var/tmp/portage/sci-mathematics/primecount-7.6/work/primecount-7.6/include  -O2 -pipe -march=native -fno-diagnostics-color -fPIC -fno-diagnostics-color -mpopcnt -Wno-uninitialized -fopenmp -MD -MT CMakeFiles/libprimecount.dir
In file included from /var/tmp/portage/sci-mathematics/primecount-7.6/work/primecount-7.6/src/deleglise-rivat/S2_easy_libdivide.cpp:35:
/var/tmp/portage/sci-mathematics/primecount-7.6/work/primecount-7.6/include/libdivide.h: In member function bool libdivide::divider<T, ALGO>::operator==(const libdivide::divider<T, ALGO>&) const:
/var/tmp/portage/sci-mathematics/primecount-7.6/work/primecount-7.6/include/libdivide.h:2018:41: error: const class libdivide::divider<T, ALGO> has no member named denom
 2018 |         return div.denom.magic == other.denom.magic &&
      |                                         ^~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_hardened-20240719-044003

  UNMASKED:
    Please re-assign to toolchain@ if you get a test failure in C, C++, or Fortran code which makes no sense.
  <sys-devel/gcc-15.0.9999:15
    Requested by sam
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
    Requested by dilfridge and sam
  ~dev-lang/perl-5.40.0
  ~virtual/perl-Archive-Tar-3.20.10_rc
  ~virtual/perl-CPAN-Meta-Requirements-2.143.0
  ~virtual/perl-Compress-Raw-Bzip2-2.212.0
  ~virtual/perl-DB_File-1.859.0
  ~virtual/perl-Data-Dumper-2.189.0
  ~virtual/perl-Devel-PPPort-3.720.0
  ~virtual/perl-Exporter-5.780.0
  ~virtual/perl-ExtUtils-CBuilder-0.280.240
  ~virtual/perl-ExtUtils-Manifest-1.750.0
  ~virtual/perl-File-Spec-3.900.0
  ~virtual/perl-HTTP-Tiny-0.88.0
  ~virtual/perl-IO-1.550.0
  ~virtual/perl-IO-Compress-2.212.0
  ~virtual/perl-IO-Socket-IP-0.420.0
  ~virtual/perl-IO-Zlib-1.150.0
  ~virtual/perl-Math-BigInt-2.3.2
  ~virtual/perl-Math-BigInt-FastCalc-0.501.800
  ~virtual/perl-Math-BigRat-2.3.2
  ~virtual/perl-Module-CoreList-5.202.406.90
  ~virtual/perl-Module-Metadata-1.0.38
  ~virtual/perl-Pod-Simple-3.450.0
  ~virtual/perl-Safe-2.460.0
  ~virtual/perl-Socket-2.38.0
  ~virtual/perl-Test-Harness-3.480.0
  ~virtual/perl-Test-Simple-1.302.199
  ~virtual/perl-Text-Tabs+Wrap-2024.1.0
  ~virtual/perl-Time-HiRes-1.977.700
  ~virtual/perl-Time-Local-1.350.0
  ~virtual/perl-autodie-2.370.0
  ~virtual/perl-bignum-0.670.0
  ~virtual/perl-podlators-5.10.200_rc
  ~virtual/perl-threads-2.400.0
  ~virtual/perl-threads-shared-1.690.0
  ~virtual/perl-version-0.993.0

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-15 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.11_p9 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.412_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

php cli (if any):
  [1]   php8.3 *
go version go1.22.5 linux/amd64

  HEAD of ::gentoo
commit 4d4a9354144e0ea98ebffad12a690cc367fb73ad
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Jul 22 03:49:11 2024 +0000

    2024-07-22 03:49:11 UTC

emerge -qpvO sci-mathematics/primecount
[ebuild  N    ] sci-mathematics/primecount-7.6  USE="executable openmp -test" CPU_FLAGS_X86="popcnt"
Comment 1 Toralf Förster gentoo-dev 2024-07-22 18:49:44 UTC
Created attachment 898120 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-07-22 18:49:46 UTC
Created attachment 898121 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-07-22 18:49:47 UTC
Created attachment 898122 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-07-22 18:49:48 UTC
Created attachment 898123 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-07-22 18:49:49 UTC
Created attachment 898124 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-07-22 18:49:50 UTC
Created attachment 898125 [details]
qlist-info.txt.xz
Comment 7 Toralf Förster gentoo-dev 2024-07-22 18:49:51 UTC
Created attachment 898126 [details]
sci-mathematics:primecount-7.6:20240722-050920.log
Comment 8 Toralf Förster gentoo-dev 2024-07-22 18:49:52 UTC
Created attachment 898127 [details]
temp.tar.xz
Comment 9 Michael Orlitzky gentoo-dev 2024-07-27 23:23:23 UTC
Our version was lagging behind, any chance you can retry with primecount-7.13?
Comment 10 Toralf Förster gentoo-dev 2024-07-28 08:57:56 UTC
7.13 seems to work
Comment 11 Michael Orlitzky gentoo-dev 2024-07-28 11:27:34 UTC
Ok, thanks for checking.
Comment 12 Toralf Förster gentoo-dev 2024-07-29 19:50:16 UTC
not solved - sry:

/primecount-7.13/work/primecount-7.13/include  -O2 -pipe -march=native -fno-diagnostics-color -fPIC -fno-diagnostics-color -Wno-uninitialized -MD -MT CMakeFiles/libprimec
FAILED: CMakeFiles/libprimecount.dir/src/deleglise-rivat/S2_easy_libdivide.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_MULTIARCH_AVX512_BMI2 -Dlibprimecount_EXPORTS -I/var/tmp/portage/sci-mathematics/primecount-7.13/work/primecount-7.13/include  -O2 -pipe -march=native -fno-diagnostics-color -fPIC -fno-diagnostics-color -Wno-uninitialized -MD -MT CMakeFiles/libprimecount.dir
In file included from /var/tmp/portage/sci-mathematics/primecount-7.13/work/primecount-7.13/src/deleglise-rivat/S2_easy_libdivide.cpp:35:
/var/tmp/portage/sci-mathematics/primecount-7.13/work/primecount-7.13/include/libdivide.h: In member function 'bool libdivide::divider<T, ALGO>::operator==(const libdivide::divider<T, ALGO>&) const':
/var/tmp/portage/sci-mathematics/primecount-7.13/work/primecount-7.13/include/libdivide.h:2018:41: error: 'const class libdivide::divider<T, ALGO>' has no member named 'denom'
 2018 |         return div.denom.magic == other.denom.magic &&
      |                                         ^~~~~

 check_bgo.sh ~tinderbox/img/23.0_no_multilib_hardened_systemd-20240727-020502//var/tmp/tb/issues/20240729-194312-sci-mathematics_primecount-7.13
Comment 13 Michael Orlitzky gentoo-dev 2024-07-29 20:14:08 UTC
Ok, I wonder if this is related to

https://trofi.github.io/posts/322-gcc-15-template-checking-improvements.html

too? It's more template voodoo.
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-29 20:20:08 UTC
(In reply to Michael Orlitzky from comment #13)

Yes, almost certainly.
Comment 15 Christopher Fore 2024-07-30 15:49:45 UTC
Created attachment 898652 [details, diff]
Fixes template checking error
Comment 16 Larry the Git Cow gentoo-dev 2024-07-30 20:29:03 UTC
The bug has been closed via the following commit(s):

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

commit d67b9030c502912749bc458fea717f9bd3be16f4
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2024-07-30 20:22:02 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2024-07-30 20:28:25 +0000

    sci-mathematics/primecount: backport gcc-15 build fix
    
    Closes: https://bugs.gentoo.org/936498
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 .../files/primecount-7.13-gcc-15-buildfix.patch    | 30 ++++++++++++++++++++++
 ...count-7.13.ebuild => primecount-7.13-r1.ebuild} |  2 ++
 2 files changed, 32 insertions(+)