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

Bug 790776

Summary: media-gfx/solvespace-2.3 - /.../exportvector.cpp: error: numeric_limits is not a member of std (maybe gcc-11 related)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Victor Kustov <ktrace>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
media-gfx:solvespace-2.3:20210518-021259.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-18 07:12:48 UTC
      |                 ~~~~~~~~~~~~~~~~^
/var/tmp/portage/media-gfx/solvespace-2.3/work/solvespace-2.3/src/exportvector.cpp: In member function ‘size_t PolylineBuilder::VectorHash::operator()(const SolveSpace::Vector&) const’:
/var/tmp/portage/media-gfx/solvespace-2.3/work/solvespace-2.3/src/exportvector.cpp:78:45: error: ‘numeric_limits’ is not a member of ‘std’
   78 |             static const size_t size = std::numeric_limits<size_t>::max() / 2 - 1;
      |                                             ^~~~~~~~~~~~~~
/var/tmp/portage/media-gfx/solvespace-2.3/work/solvespace-2.3/src/exportvector.cpp:78:66: error: expected primary-expression before ‘>’ token
   78 |        static const size_t size = std::numeric_limits<size_t>::max() / 2 - 1;

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j2-20210510-163136

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-9.3.1
 [3] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.10
Available Rust versions:
  [1]   rust-bin-1.52.1
  [2]   rust-1.52.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
  [1]   php7.3
  [2]   php7.4
  [3]   php8.0 *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue May 18 01:20:13 UTC 2021

emerge -qpvO media-gfx/solvespace
[ebuild  N    ] media-gfx/solvespace-2.3
Comment 1 Toralf Förster gentoo-dev 2021-05-18 07:12:49 UTC
Created attachment 709572 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-18 07:12:51 UTC
Created attachment 709575 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-18 07:12:52 UTC
Created attachment 709578 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-18 07:12:54 UTC
Created attachment 709581 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-18 07:12:55 UTC
Created attachment 709584 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-18 07:12:57 UTC
Created attachment 709587 [details]
media-gfx:solvespace-2.3:20210518-021259.log
Comment 7 Toralf Förster gentoo-dev 2021-05-18 07:12:58 UTC
Created attachment 709590 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2021-06-07 16:04:55 UTC
The bug has been closed via the following commit(s):

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

commit 099369de66cdc8a91f4e9b372bb2c38a6767a881
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-07 06:40:38 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-07 07:13:54 +0000

    media-gfx/solvespace: fix build with GCC 11
    
    Closes: https://bugs.gentoo.org/790776
    Signed-off-by: Sam James <sam@gentoo.org>

 .../solvespace-2.3-gcc11-missing-limits-inc.patch     | 19 +++++++++++++++++++
 media-gfx/solvespace/solvespace-2.3.ebuild            |  7 ++++++-
 2 files changed, 25 insertions(+), 1 deletion(-)