slackware64-current multilib fails to build pcsx2 slackbuild
by CuBeRJAN3 from LinuxQuestions.org on (#5S6BN)
I'm trying to build pcsx2 on a multilib system, however the compilation fails:
Code:[ 8%] Building CXX object common/src/Utilities/CMakeFiles/Utilities_NO_TLS.dir/VirtualMemory.cpp.o
In file included from /tmp/SBo/pcsx2-1.6.0/common/include/Utilities/Dependencies.h:206,
from /tmp/SBo/pcsx2-1.6.0/common/src/Utilities/PrecompiledHeader.h:21,
from /tmp/SBo/pcsx2-1.6.0/common/src/Utilities/VirtualMemory.cpp:16:
/usr/include/wx-3.0/wx/string.h:211:15: error: wxUniChar wxCStrData::operator[](unsigned int) const' cannot be overloaded with wxUniChar wxCStrData::operator[](size_t) const'
211 | wxUniChar operator[](unsigned int n) const { return operator[](size_t(n)); }
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:207:22: note: previous declaration wxUniChar wxCStrData::operator[](size_t) const'
207 | inline wxUniChar operator[](size_t n) const;
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1551:15: error: wxUniChar wxString::operator[](unsigned int) const' cannot be overloaded with wxUniChar wxString::operator[](size_t) const'
1551 | wxUniChar operator[](unsigned int n) const
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1548:15: note: previous declaration wxUniChar wxString::operator[](size_t) const'
1548 | wxUniChar operator[](size_t n) const
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1563:18: error: wxUniCharRef wxString::operator[](unsigned int)' cannot be overloaded with wxUniCharRef wxString::operator[](size_t)'
1563 | wxUniCharRef operator[](unsigned int n)
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1560:18: note: previous declaration wxUniCharRef wxString::operator[](size_t)'
1560 | wxUniCharRef operator[](size_t n)
| ^~~~~~~~
make[2]: *** [common/src/Utilities/CMakeFiles/Utilities_NO_TLS.dir/build.make:76: common/src/Utilities/CMakeFiles/Utilities_NO_TLS.dir/VirtualMemory.cpp.o] Chyba 1
make[1]: *** [CMakeFiles/Makefile2:423: common/src/Utilities/CMakeFiles/Utilities_NO_TLS.dir/all] Chyba 2
make: *** [Makefile:136: all] Chyba 2does anyone know how to fix this?
Code:[ 8%] Building CXX object common/src/Utilities/CMakeFiles/Utilities_NO_TLS.dir/VirtualMemory.cpp.o
In file included from /tmp/SBo/pcsx2-1.6.0/common/include/Utilities/Dependencies.h:206,
from /tmp/SBo/pcsx2-1.6.0/common/src/Utilities/PrecompiledHeader.h:21,
from /tmp/SBo/pcsx2-1.6.0/common/src/Utilities/VirtualMemory.cpp:16:
/usr/include/wx-3.0/wx/string.h:211:15: error: wxUniChar wxCStrData::operator[](unsigned int) const' cannot be overloaded with wxUniChar wxCStrData::operator[](size_t) const'
211 | wxUniChar operator[](unsigned int n) const { return operator[](size_t(n)); }
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:207:22: note: previous declaration wxUniChar wxCStrData::operator[](size_t) const'
207 | inline wxUniChar operator[](size_t n) const;
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1551:15: error: wxUniChar wxString::operator[](unsigned int) const' cannot be overloaded with wxUniChar wxString::operator[](size_t) const'
1551 | wxUniChar operator[](unsigned int n) const
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1548:15: note: previous declaration wxUniChar wxString::operator[](size_t) const'
1548 | wxUniChar operator[](size_t n) const
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1563:18: error: wxUniCharRef wxString::operator[](unsigned int)' cannot be overloaded with wxUniCharRef wxString::operator[](size_t)'
1563 | wxUniCharRef operator[](unsigned int n)
| ^~~~~~~~
/usr/include/wx-3.0/wx/string.h:1560:18: note: previous declaration wxUniCharRef wxString::operator[](size_t)'
1560 | wxUniCharRef operator[](size_t n)
| ^~~~~~~~
make[2]: *** [common/src/Utilities/CMakeFiles/Utilities_NO_TLS.dir/build.make:76: common/src/Utilities/CMakeFiles/Utilities_NO_TLS.dir/VirtualMemory.cpp.o] Chyba 1
make[1]: *** [CMakeFiles/Makefile2:423: common/src/Utilities/CMakeFiles/Utilities_NO_TLS.dir/all] Chyba 2
make: *** [Makefile:136: all] Chyba 2does anyone know how to fix this?