Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917164 - games-emulation/melonds-jg-0.9.5 - /.../DSi_Camera.cpp: error: clamp is not a member of std
Summary: games-emulation/melonds-jg-0.9.5 - /.../DSi_Camera.cpp: error: clamp is not a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: orbea
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-14
  Show dependency tree
 
Reported: 2023-11-11 10:34 UTC by Toralf Förster
Modified: 2023-11-12 06:39 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.11 KB, text/plain)
2023-11-11 10:34 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,66.61 KB, application/x-xz)
2023-11-11 10:34 UTC, Toralf Förster
Details
environment (environment,59.05 KB, text/plain)
2023-11-11 10:34 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-11-11 10:34 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,34.14 KB, application/x-xz)
2023-11-11 10:34 UTC, Toralf Förster
Details
games-emulation:melonds-jg-0.9.5:20231111-083613.log (games-emulation:melonds-jg-0.9.5:20231111-083613.log,14.68 KB, text/plain)
2023-11-11 10:34 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,78.32 KB, application/x-xz)
2023-11-11 10:34 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,15.80 KB, application/x-xz)
2023-11-11 10:34 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-11-11 10:34:39 UTC
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
/var/tmp/portage/games-emulation/melonds-jg-0.9.5/work/melonds-0.9.5/jollygood/../src/DSi.cpp:869:14: warning: ignoring return value of size_t fread(void*, size_t, size_t, FILE*) declared with attribute warn_unused_result [-Wunused-result]
  869 |         fread(data, 16, 1, nand);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
 x86_64-pc-linux-gnu-g++ -O3 -pipe -march=native -fno-diagnostics-color -fPIC -std=c++17 -DMELONDS_VERSION=\"0.9.5\" -c ../src/DSi_DSP.cpp -o objs/src/DSi_DSP.o
/var/tmp/portage/games-emulation/melonds-jg-0.9.5/work/melonds-0.9.5/jollygood/../src/DSi_Camera.cpp: In function void DSi_CamModule::TransferScanline(u32):
/var/tmp/portage/games-emulation/melonds-jg-0.9.5/work/melonds-0.9.5/jollygood/../src/DSi_Camera.cpp:206:23: error: clamp is not a member of std
  206 |             r1 = std::clamp(r1, 0, 255); g1 = std::clamp(g1, 0, 255); b1 = std::clamp(b1, 0, 255);
      |                       ^~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_systemd-20231105-205452

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.4
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0
  [2]   rust-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.20.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
4)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm
  [4]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 32d2bf5d262c17f24aae39315c9c1b7d7f9af94d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Nov 11 07:46:53 2023 +0000

    2023-11-11 07:46:53 UTC

emerge -qpvO games-emulation/melonds-jg
[ebuild  N    ] games-emulation/melonds-jg-0.9.5
Comment 1 Toralf Förster gentoo-dev 2023-11-11 10:34:40 UTC
Created attachment 874555 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-11-11 10:34:41 UTC
Created attachment 874556 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2023-11-11 10:34:42 UTC
Created attachment 874557 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-11-11 10:34:43 UTC
Created attachment 874558 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-11-11 10:34:44 UTC
Created attachment 874559 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-11-11 10:34:45 UTC
Created attachment 874560 [details]
games-emulation:melonds-jg-0.9.5:20231111-083613.log
Comment 7 Toralf Förster gentoo-dev 2023-11-11 10:34:46 UTC
Created attachment 874561 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2023-11-11 10:34:47 UTC
Created attachment 874562 [details]
temp.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2023-11-12 06:39:52 UTC
The bug has been closed via the following commit(s):

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

commit 697ed03f38a540bd44f16dbffbdabe59e9ead5a4
Author:     orbea <orbea@riseup.net>
AuthorDate: 2023-11-11 22:09:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-11-12 06:38:01 +0000

    games-emulation/melonds-jg: fix gcc-14 build issue
    
    Closes: https://bugs.gentoo.org/917164
    Upstream-PR: https://github.com/melonDS-emu/melonDS/pull/1874
    Upstream-Commit: https://github.com/melonDS-emu/melonDS/commit/e63e29ca91ba5fc1630634fbb9f064b9cce6cc1f
    Upstream-Commit: https://gitlab.com/jgemu/melonds/-/commit/e63e29ca91ba5fc1630634fbb9f064b9cce6cc1f
    Signed-off-by: orbea <orbea@riseup.net>
    Closes: https://github.com/gentoo/gentoo/pull/33773
    Signed-off-by: Sam James <sam@gentoo.org>

 .../melonds-jg/files/melonds-jg-0.9.5-gcc14.patch  | 29 ++++++++++++++++++++++
 games-emulation/melonds-jg/melonds-jg-0.9.5.ebuild |  1 +
 2 files changed, 30 insertions(+)