Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925105 - games-engines/openmw-0.48.0 error: ‘sort’ is not a member of ‘std’, 'rotate' is not a member of std.
Summary: games-engines/openmw-0.48.0 error: ‘sort’ is not a member of ‘std’, 'rotate' ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Alexey
URL:
Whiteboard: ~arch only
Keywords: PullRequest
Depends on:
Blocks: gcc-14
  Show dependency tree
 
Reported: 2024-02-20 20:58 UTC by germ
Modified: 2024-11-01 18:57 UTC (History)
2 users (show)

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


Attachments
emerge --info (emergeinfo.txt,6.52 KB, text/plain)
2024-02-20 20:58 UTC, germ
Details
build log (IolB8kzQ,52.59 KB, text/plain)
2024-02-20 21:00 UTC, germ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description germ 2024-02-20 20:58:17 UTC
Created attachment 885547 [details]
emerge --info

This is likely just missing an #include <algorithm> somewhere.

error: ‘sort’ is not a member of ‘std’; did you mean ‘qsort’?
  190 |     std::sort(mFiles.begin(), mFiles.end(), [](const FileStruct& left, const FileStruct& right) {
      |          ^~~~
      |          qsort
/var/tmp/portage/games-engines/openmw-0.48.0/work/openmw-openmw-0.48.0/components/bsa/bsa_file.cpp: In member function ‘virtual void Bsa::BSAFile::writeHeader()’:
/var/tmp/portage/games-engines/openmw-0.48.0/work/openmw-openmw-0.48.0/components/bsa/bsa_file.cpp:214:10: error: ‘sort’ is not a member of ‘std’; did you mean ‘qsort’?
  214 |     std::sort(mFiles.begin(), mFiles.end(), [](const FileStruct& left, const FileStruct& right) {
      |          ^~~~
      |          qsort
/var/tmp/portage/games-engines/openmw-0.48.0/work/openmw-openmw-0.48.0/components/bsa/bsa_file.cpp: In member function ‘void Bsa::BSAFile::addFile(const std::string&, std::istream&)’:
/var/tmp/portage/games-engines/openmw-0.48.0/work/openmw-openmw-0.48.0/components/bsa/bsa_file.cpp:304:18: error: ‘rotate’ is not a member of ‘std’
  304 |             std::rotate(mFiles.begin(), mFiles.begin() + 1, mFiles.end());
      |                  ^~~~~~
COMMON_FLAGS="-O2 -march=native -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

ACCEPT_LICENSE="*"
ACCEPT_KEYWORDS="~amd64"
ABI_X86="64 32"
EMERGE_DEFAULT_OPTS="--complete-graph y --with-bdeps y  --load-average=32 --jobs=32"
FEATURES="candy sign unmerge-orphans parallel-fetch parallel-install"
MAKEOPTS="-j32"
USE="X alsa dbus elogind udev -kde -qt6 -q5 -qt4 gnome gtk"
VIDEO_CARDS="amdgpu radeon radeonsi"
INPUT_DEVICES="libinput evdev"

SIGNED_OFF_BY="germ <germtoo@outlook.com>"

LC_MESSAGES=C.utf8
QEMU_SOFTMMU_TARGETS="alpha aarch64 aarch64_be armeb arm i386 loongarch64 hppa m68k mips mipsn32 mips64 mips64el mipsel ppc ppc64 riscv32 riscv64 s390x sh4 sh4eb sparc sparc64 x86_64"
QEMU_USER_TARGETS="alpha aarch64 aarch64_be armeb arm armeb i386 loongarch64 hppa m68k mips mipsn32 mipsn32el mips64 mips64el mipsel ppc ppc64 ppc64le ppc64abi32 riscv32 riscv64 s390x sh4 sh4eb sparc sparc32plus sparc64"
Comment 1 germ 2024-02-20 21:00:58 UTC
Created attachment 885548 [details]
build log
Comment 2 Larry the Git Cow gentoo-dev 2024-03-04 21:48:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=546afd11b7bde55829c409c406eac51c8d023d78

commit 546afd11b7bde55829c409c406eac51c8d023d78
Author:     Alexey Sokolov <alexey+gentoo@asokolov.org>
AuthorDate: 2024-02-22 22:46:38 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2024-03-04 21:48:18 +0000

    games-engines/openmw: fix build with gcc 14
    
    Closes: https://bugs.gentoo.org/925105
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Closes: https://github.com/gentoo/gentoo/pull/35490
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 games-engines/openmw/files/openmw-0.48.0-gcc14.patch | 13 +++++++++++++
 games-engines/openmw/openmw-0.48.0.ebuild            |  4 ++++
 2 files changed, 17 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2024-06-08 01:46:23 UTC
The bug has been referenced in the following commit(s):

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

commit f8204b23574c9e3e553985b6efb2af382158ff67
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2024-06-08 00:35:26 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2024-06-08 01:11:45 +0000

    games-engines/openmw: update patch for missing headers
    
    Bug: https://bugs.gentoo.org/925105
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 games-engines/openmw/files/openmw-0.48.0-gcc14.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)