Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 946970

Summary: dev-libs/criterion-2.4.1-r1 - [gcc-15] alloc.h: error: SIZE_MAX was not declared in this scope [-Wtemplate-body]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Tomáš Mózes <hydrapolic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-libs:criterion-2.4.1-r1:20241225-014742.log
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
logs.tar.xz
qlist-info.txt.xz
temp.tar.xz

Description Toralf Förster gentoo-dev 2024-12-26 22:02:52 UTC
too long lines were shrinked:

FAILED: samples/description.cc.bin.p/description.cc.o 
x86_64-pc-linux-gnu-g++ -Isamples/description.cc.bin.p -Isamples -I../Criterion-2.4.1/samples -Iinclude -I../Criterion-2.4.1/include -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++11 -Wno-unused-parameter -Wno-unused-value -fvisibility=h
In file included from ../Criterion-2.4.1/include/criterion/types.h:31,
                 from ../Criterion-2.4.1/include/criterion/criterion.h:31,
                 from ../Criterion-2.4.1/samples/description.cc:1:
../Criterion-2.4.1/include/criterion/alloc.h: In function typename std::enable_if<std::is_fundamental<_Tp>::value>::type* criterion::new_arr(std::size_t):
../Criterion-2.4.1/include/criterion/alloc.h:146:16: error: SIZE_MAX was not declared in this scope [-Wtemplate-body]
  146 |     if (len > (SIZE_MAX - sizeof (size_t)) / sizeof (T)) {
      |                ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_systemd_test-20241217-170002

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-15 *
clang version 19.1.6
llvm-config: 19.1.6
Python 3.12.8
go version go1.23.4 linux/amd64
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.81.0
  [2]   rust-bin-1.83.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit f4c3fc4c9bc6113d717e3f991205a7d3fd68ce2d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Dec 24 20:48:20 2024 +0000

    2024-12-24 20:48:20 UTC

emerge -qpvO =dev-libs/criterion-2.4.1-r1
[ebuild  N    ] dev-libs/criterion-2.4.1-r1  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2024-12-26 22:02:53 UTC
Created attachment 915000 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-12-26 22:02:54 UTC
Created attachment 915001 [details]
dev-libs:criterion-2.4.1-r1:20241225-014742.log
Comment 3 Toralf Förster gentoo-dev 2024-12-26 22:02:55 UTC
Created attachment 915002 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-12-26 22:02:56 UTC
Created attachment 915003 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-12-26 22:02:57 UTC
Created attachment 915004 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-12-26 22:02:58 UTC
Created attachment 915005 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-12-26 22:03:00 UTC
Created attachment 915006 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-12-26 22:03:01 UTC
Created attachment 915007 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-12-26 22:03:02 UTC
Created attachment 915008 [details]
temp.tar.xz
Comment 10 Larry the Git Cow gentoo-dev 2024-12-27 15:48:33 UTC
The bug has been closed via the following commit(s):

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

commit 4ec7f476f4dfd2cbb79660036e1ffcfc52008ef6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-27 15:47:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-27 15:47:16 +0000

    dev-libs/criterion: fix build w/ gcc-15
    
    Closes: https://bugs.gentoo.org/946970
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/criterion/criterion-2.4.1-r1.ebuild            |  4 ++++
 dev-libs/criterion/files/criterion-2.4.1-includes.patch | 14 ++++++++++++++
 2 files changed, 18 insertions(+)