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

Bug 789726

Summary: media-libs/intel-mediasdk-20.3.0 - /.../mctf_common.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: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: sam
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-libs:intel-mediasdk-20.3.0:20210512-192944.log.bz2
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-12 19:37:35 UTC
/var/tmp/portage/media-libs/intel-mediasdk-20.3.0/work/MediaSDK-intel-mediasdk-20.3.0/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp: In function ‘mfxU16 CalcNoiseStrength(double, double)’:
/var/tmp/portage/media-libs/intel-mediasdk-20.3.0/work/MediaSDK-intel-mediasdk-20.3.0/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp:2302:37: error: ‘numeric_limits’ is not a member of ‘std’
 2302 |     if (std::fabs(NSC) <= 10 * std::numeric_limits<double>::epsilon()) return 0;
      |                                     ^~~~~~~~~~~~~~
/var/tmp/portage/media-libs/intel-mediasdk-20.3.0/work/MediaSDK-intel-mediasdk-20.3.0/_studio/mfx_lib/mctf_package/mctf/src/mctf_common.cpp:2302:52: error: expected primary-expression before ‘double’
 2302 |     if (std::fabs(NSC) <= 10 * std::numeric_limits<double>::epsilon()) return 0;

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

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

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

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 Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   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	Wed May 12 18:50:24 UTC 2021

emerge -qpvO media-libs/intel-mediasdk
[ebuild  N    ] media-libs/intel-mediasdk-20.3.0
Comment 1 Toralf Förster gentoo-dev 2021-05-12 19:37:36 UTC
Created attachment 707715 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-12 19:37:38 UTC
Created attachment 707718 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-12 19:37:39 UTC
Created attachment 707721 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-12 19:37:41 UTC
Created attachment 707724 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-12 19:37:42 UTC
Created attachment 707727 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-12 19:37:43 UTC
Created attachment 707730 [details]
media-libs:intel-mediasdk-20.3.0:20210512-192944.log.bz2
Comment 7 Toralf Förster gentoo-dev 2021-05-12 19:37:44 UTC
Created attachment 707733 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2021-08-04 20:54:24 UTC
The bug has been closed via the following commit(s):

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

commit 7f967315cf184fd09f6691e4381c92535efa819d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-08-04 20:53:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-08-04 20:54:15 +0000

    media-libs/intel-mediasdk: add missing libdrm dep, fix GCC 11 build
    
    Closes: https://bugs.gentoo.org/805224
    Closes: https://bugs.gentoo.org/789726
    Signed-off-by: Sam James <sam@gentoo.org>

 ...el-mediasdk-20.3.0-missing-limits-include.patch | 26 ++++++++++++++++++++++
 ....3.0.ebuild => intel-mediasdk-20.3.0-r1.ebuild} |  8 ++++++-
 .../intel-mediasdk/intel-mediasdk-9999.ebuild      |  4 +++-
 3 files changed, 36 insertions(+), 2 deletions(-)