Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918666 - games-emulation/melonds-0.9.5-r4 - /.../DSi_Camera.cpp: error: clamp is not a member of std
Summary: games-emulation/melonds-0.9.5-r4 - /.../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: Maciej Barć
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-14
  Show dependency tree
 
Reported: 2023-11-27 17:40 UTC by Toralf Förster
Modified: 2023-12-10 17:08 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.18 KB, text/plain)
2023-11-27 17:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,140.61 KB, text/plain)
2023-11-27 17:40 UTC, Toralf Förster
Details
environment (environment,101.37 KB, text/plain)
2023-11-27 17:40 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.13 KB, application/x-xz)
2023-11-27 17:40 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,19.39 KB, application/x-xz)
2023-11-27 17:40 UTC, Toralf Förster
Details
games-emulation:melonds-0.9.5-r4:20231127-172708.log (games-emulation:melonds-0.9.5-r4:20231127-172708.log,20.87 KB, text/plain)
2023-11-27 17:40 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,249.66 KB, text/plain)
2023-11-27 17:40 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,25.59 KB, application/x-xz)
2023-11-27 17:40 UTC, Toralf Förster
Details
include <algorithm> (include-algorithm.patch,299 bytes, patch)
2023-12-09 16:38 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 2023-11-27 17:40:06 UTC
too long lines were shrinked:

[9/119] /usr/bin/x86_64-pc-linux-gnu-g++ -DARCHITECTURE_x86_64=1 -DJIT_ENABLED -DMELONDS_VERSION=\"0.9.5\" -DOGLRENDERER_ENABLED -I/var/tmp/portage/games-emulation/melonds-0.9.5-r4/work/melonDS-0.9.5/src/teakra/src/../include  -O3 -pipe -march=native -fno-diagnostics-color -fno-strict-aliasing -std=
[10/119] /usr/bin/x86_64-pc-linux-gnu-g++ -DARCHITECTURE_x86_64=1 -DJIT_ENABLED -DMELONDS_VERSION=\"0.9.5\" -DOGLRENDERER_ENABLED -I/var/tmp/portage/games-emulation/melonds-0.9.5-r4/work/melonDS-0.9.5/src/teakra/src/../include  -O3 -pipe -march=native -fno-diagnostics-color -fno-strict-aliasing -std
[11/119] /usr/bin/x86_64-pc-linux-gnu-g++ -DARCHITECTURE_x86_64=1 -DJIT_ENABLED -DMELONDS_VERSION=\"0.9.5\" -DOGLRENDERER_ENABLED -I/var/tmp/portage/games-emulation/melonds-0.9.5-r4/work/melonDS-0.9.5/src/teakra/src/../include  -O3 -pipe -march=native -fno-diagnostics-color -fno-strict-aliasing -std
FAILED: src/CMakeFiles/core.dir/DSi_Camera.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DARCHITECTURE_x86_64=1 -DJIT_ENABLED -DMELONDS_VERSION=\"0.9.5\" -DOGLRENDERER_ENABLED -I/var/tmp/portage/games-emulation/melonds-0.9.5-r4/work/melonDS-0.9.5/src/teakra/src/../include  -O3 -pipe -march=native -fno-diagnostics-color -fno-strict-aliasing -std=gnu++17 
/var/tmp/portage/games-emulation/melonds-0.9.5-r4/work/melonDS-0.9.5/src/DSi_Camera.cpp: In function void DSi_CamModule::TransferScanline(u32):
/var/tmp/portage/games-emulation/melonds-0.9.5-r4/work/melonDS-0.9.5/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: 17.1_desktop_gnome_systemd-20231123-170505

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.5
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.5
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

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 2d64f2fd278f143a45290fb8bd84dc8080dfc0b3
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 27 16:47:03 2023 +0000

    2023-11-27 16:47:03 UTC

emerge -qpvO games-emulation/melonds
[ebuild  N    ] games-emulation/melonds-0.9.5-r4  USE="jit opengl"
Comment 1 Toralf Förster gentoo-dev 2023-11-27 17:40:07 UTC
Created attachment 875830 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-11-27 17:40:08 UTC
Created attachment 875831 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-11-27 17:40:10 UTC
Created attachment 875832 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-11-27 17:40:10 UTC
Created attachment 875833 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-11-27 17:40:11 UTC
Created attachment 875834 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-11-27 17:40:12 UTC
Created attachment 875835 [details]
games-emulation:melonds-0.9.5-r4:20231127-172708.log
Comment 7 Toralf Förster gentoo-dev 2023-11-27 17:40:14 UTC
Created attachment 875836 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2023-11-27 17:40:15 UTC
Created attachment 875837 [details]
temp.tar.xz
Comment 9 Christopher Fore 2023-12-09 16:38:36 UTC
Created attachment 878576 [details, diff]
include <algorithm>

Looks like including <algorithm> fixes this.
Comment 10 Christopher Fore 2023-12-09 16:41:30 UTC
Upstream has it already it seems 

https://github.com/melonDS-emu/melonDS/commit/e63e29ca91ba5fc1630634fbb9f064b9cce6cc1f
Comment 11 Larry the Git Cow gentoo-dev 2023-12-10 17:08:58 UTC
The bug has been closed via the following commit(s):

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

commit 831def21f26427feb8a3b137e1d20254276b00a8
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2023-12-10 16:57:28 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2023-12-10 17:08:56 +0000

    games-emulation/melonds: include algorithm
    
    Bug: https://github.com/melonDS-emu/melonDS/pull/1874
    Closes: https://bugs.gentoo.org/918666
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../files/melonds-0.9.5-DSi_Camera-algorithm.patch | 24 ++++++++++++++++++++++
 games-emulation/melonds/melonds-0.9.5-r4.ebuild    | 13 +++++++++---
 2 files changed, 34 insertions(+), 3 deletions(-)