Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943324 - games-engines/scummvm: 2.8.1-r1 - px_array.h:308:66: error: assignment of member ‘m_userPosition’ in read-only object
Summary: games-engines/scummvm: 2.8.1-r1 - px_array.h:308:66: error: assignment of mem...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-12 13:33 UTC by Petr Šourek
Modified: 2024-11-13 08:08 UTC (History)
2 users (show)

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


Attachments
emerge.info.txt (emerge.info.txt,10.83 KB, text/plain)
2024-11-12 13:33 UTC, Petr Šourek
Details
build.log (build.log.txt.bz2,184.42 KB, application/x-bzip2)
2024-11-12 13:35 UTC, Petr Šourek
Details
emerge -pvq (emerge.pvq.txt,196 bytes, text/plain)
2024-11-12 13:35 UTC, Petr Šourek
Details
environment (environment.txt,93.82 KB, text/plain)
2024-11-12 13:36 UTC, Petr Šourek
Details
gcc14.patch (gcc14.patch,1.70 KB, patch)
2024-11-12 13:38 UTC, Petr Šourek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Šourek 2024-11-12 13:33:01 UTC
Created attachment 908583 [details]
emerge.info.txt

Hello,

I get error when compiling scummvm 2.8.1-r1:
./common/singleton.h:92:17: note: remove the ‘< >’
In file included from ./engines/icb/debug.h:32:
./engines/icb/common/px_array.h: In member function ‘const Type& ICB::rcActArray<Type>::operator[](uint32) const’:
./engines/icb/common/px_array.h:105:66: error: assignment of member ‘m_userPosition’ in read-only object
  105 |                 ((const rcActArray<Type> *)this)->m_userPosition = n + 1;
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
./engines/icb/common/px_array.h: In member function ‘const Type ICB::rcIntArray<Type>::operator[](uint32) const’:
./engines/icb/common/px_array.h:308:66: error: assignment of member ‘m_userPosition’ in read-only object
  308 |                 ((const rcIntArray<Type> *)this)->m_userPosition = index + 1;
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
make: *** [Makefile.common:178: engines/icb/actor.o] Error 1
Comment 1 Petr Šourek 2024-11-12 13:35:06 UTC
Created attachment 908584 [details]
build.log
Comment 2 Petr Šourek 2024-11-12 13:35:36 UTC
Created attachment 908585 [details]
emerge -pvq
Comment 3 Petr Šourek 2024-11-12 13:36:00 UTC
Created attachment 908586 [details]
environment
Comment 4 Petr Šourek 2024-11-12 13:38:08 UTC
Might be solved by this commit: https://github.com/scummvm/scummvm/pull/5655
Comment 5 Petr Šourek 2024-11-12 13:38:46 UTC
Created attachment 908587 [details, diff]
gcc14.patch

Compiling. Will let know if it helped
Comment 6 Petr Šourek 2024-11-13 08:08:54 UTC
Patch is working.