Created
July 12, 2025 20:14
-
-
Save mattiasb/a57b613ad3f6fe35bd25557eac5b81d1 to your computer and use it in GitHub Desktop.
MSE build error 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[146/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o | |
FAILED: CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o | |
/run/ccache/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_REGEX_DYN_LINK -DUNOFFICIAL_BUILD -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/run/build/magicseteditor2/src -I/usr/include/hunspell -isystem /app/lib/wx/include/gtk3-unicode-3.3 -isystem /app/include/wx-3.3 -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -pthread -Wall -Wsuggest-override -Wstrict-null-sentinel -Wno-comment -Wno-unused-parameter -O3 -DNDEBUG -std=gnu++17 -Winvalid-pch -include /run/build/magicseteditor2/CMakeFiles/magicseteditor.dir/cmake_pch.hxx -MD -MT CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o -MF CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o.d -o CMakeFiles/magicseteditor.dir/src/script/parser.cpp.o -c /run/build/magicseteditor2/src/script/parser.cpp | |
/run/build/magicseteditor2/src/script/parser.cpp: In constructor ‘TokenIterator::TokenIterator(const String&, Packaged*, bool, const String&, std::vector<ScriptParseError>&)’: | |
/run/build/magicseteditor2/src/script/parser.cpp:99:13: warning: ‘TokenIterator::package’ will be initialized after [-Wreorder] | |
99 | Packaged* package; ///< Package the input is from | |
| ^~~~~~~ | |
/run/build/magicseteditor2/src/script/parser.cpp:89:20: warning: ‘bool TokenIterator::newline’ [-Wreorder] | |
89 | bool newline; ///< Did we just pass a newline? | |
| ^~~~~~~ | |
/run/build/magicseteditor2/src/script/parser.cpp:130:1: warning: when initialized here [-Wreorder] | |
130 | TokenIterator::TokenIterator(const String& str, Packaged* package, bool string_mode, String const& filename, vector<ScriptParseError>& errors) | |
| ^~~~~~~~~~~~~ | |
/run/build/magicseteditor2/src/script/parser.cpp: In member function ‘void TokenIterator::readToken()’: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:54: error: no match for ‘operator+’ (operand types are ‘StringView’ and ‘const wchar_t [2]’) | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
| | | |
| StringView | |
In file included from /usr/include/c++/14.3.0/string:48, | |
from /app/include/wx-3.3/wx/unichar.h:16, | |
from /app/include/wx-3.3/wx/strvararg.h:30, | |
from /app/include/wx-3.3/wx/string.h:34, | |
from /app/include/wx-3.3/wx/object.h:23, | |
from /app/include/wx-3.3/wx/wx.h:14, | |
from /run/build/magicseteditor2/src/util/prec.hpp:29, | |
from /run/build/magicseteditor2/CMakeFiles/magicseteditor.dir/cmake_pch.hxx:5, | |
from <command-line>: | |
/usr/include/c++/14.3.0/bits/stl_iterator.h:627:5: note: candidate: ‘template<class _Iterator> constexpr std::reverse_iterator<_Iterator> std::operator+(typename reverse_iterator<_Iterator>::difference_type, const reverse_iterator<_Iterator>&)’ | |
627 | operator+(typename reverse_iterator<_Iterator>::difference_type __n, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/stl_iterator.h:627:5: note: template argument deduction/substitution failed: | |
In file included from /run/build/magicseteditor2/src/util/prec.hpp:92: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘const wchar_t [2]’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/stl_iterator.h:1798:5: note: candidate: ‘template<class _Iterator> constexpr std::move_iterator<_IteratorL> std::operator+(typename move_iterator<_IteratorL>::difference_type, const move_iterator<_IteratorL>&)’ | |
1798 | operator+(typename move_iterator<_Iterator>::difference_type __n, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/stl_iterator.h:1798:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: mismatched types ‘const std::move_iterator<_IteratorL>’ and ‘const wchar_t [2]’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
In file included from /usr/include/c++/14.3.0/string:54: | |
/usr/include/c++/14.3.0/bits/basic_string.h:3598:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)’ | |
3598 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3598:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3616:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)’ | |
3616 | operator+(const _CharT* __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3616:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: mismatched types ‘const _CharT*’ and ‘StringView’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3635:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(_CharT, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)’ | |
3635 | operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3635:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ and ‘const wchar_t [2]’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3652:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)’ | |
3652 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3652:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3670:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, _CharT)’ | |
3670 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3670:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3682:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)’ | |
3682 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3682:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3689:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)’ | |
3689 | operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3689:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3696:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)’ | |
3696 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3696:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3719:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(const _CharT*, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)’ | |
3719 | operator+(const _CharT* __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3719:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: mismatched types ‘const _CharT*’ and ‘StringView’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3726:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(_CharT, __cxx11::basic_string<_CharT, _Traits, _Allocator>&&)’ | |
3726 | operator+(_CharT __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3726:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: mismatched types ‘std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ and ‘const wchar_t [2]’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3733:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, const _CharT*)’ | |
3733 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3733:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3740:5: note: candidate: ‘template<class _CharT, class _Traits, class _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Allocator> std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, _CharT)’ | |
3740 | operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/bits/basic_string.h:3740:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘std::__cxx11::basic_string<_CharT, _Traits, _Allocator>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
In file included from /app/include/boost/detail/container_fwd.hpp:98, | |
from /app/include/boost/container_hash/extensions.hpp:22, | |
from /app/include/boost/container_hash/hash.hpp:761, | |
from /app/include/boost/regex/v4/basic_regex.hpp:23, | |
from /app/include/boost/regex/v4/regex.hpp:67, | |
from /app/include/boost/regex.hpp:31, | |
from /run/build/magicseteditor2/src/util/regex.hpp:27, | |
from /run/build/magicseteditor2/src/util/prec.hpp:98: | |
/usr/include/c++/14.3.0/complex:340:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const complex<_Tp>&, const complex<_Tp>&)’ | |
340 | operator+(const complex<_Tp>& __x, const complex<_Tp>& __y) | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/complex:340:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘const std::complex<_Tp>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/complex:349:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const complex<_Tp>&, const _Tp&)’ | |
349 | operator+(const complex<_Tp>& __x, const _Tp& __y) | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/complex:349:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: ‘StringView’ is not derived from ‘const std::complex<_Tp>’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/complex:358:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const _Tp&, const complex<_Tp>&)’ | |
358 | operator+(const _Tp& __x, const complex<_Tp>& __y) | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/complex:358:5: note: template argument deduction/substitution failed: | |
/run/build/magicseteditor2/src/script/parser.cpp:189:56: note: mismatched types ‘const std::complex<_Tp>’ and ‘const wchar_t [2]’ | |
189 | String include_file = trim(StringView(pos, eol)) + _("_") + settings.locale; | |
| ^ | |
/usr/include/c++/14.3.0/complex:459:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator+(const complex<_Tp>&)’ | |
459 | operator+(const complex<_Tp>& __x) | |
| ^~~~~~~~ | |
/usr/include/c++/14.3.0/complex:459:5: note: candidate expects 1 argument, 2 provided | |
In file included from /run/build/magicseteditor2/src/gfx/gfx.hpp:17, | |
from /run/build/magicseteditor2/src/gfx/generated_image.hpp:14, | |
from /run/build/magicseteditor2/src/script/to_value.hpp:17, | |
from /run/build/magicseteditor2/src/script/parser.cpp:12: | |
/run/build/magicseteditor2/src/util/real_point.hpp:213:18: note: candidate: ‘RealPoint operator+(const RealSize&, const RealPoint&)’ | |
213 | inline RealPoint operator + (const RealSize& s, const RealPoint& p) { | |
| ^~~~~~~~ | |
/run/build/magicseteditor2/src/util/real_point.hpp:213:46: note: no known conversion for argument 1 from ‘StringView’ to ‘const RealSize&’ | |
213 | inline RealPoint operator + (const RealSize& s, const RealPoint& p) { | |
| ~~~~~~~~~~~~~~~~^ | |
/run/build/magicseteditor2/src/util/real_point.hpp:216:18: note: candidate: ‘RealPoint operator+(const RealPoint&, const RealSize&)’ | |
216 | inline RealPoint operator + (const RealPoint& p, const RealSize& s) { | |
| ^~~~~~~~ | |
/run/build/magicseteditor2/src/util/real_point.hpp:216:47: note: no known conversion for argument 1 from ‘StringView’ to ‘const RealPoint&’ {aka ‘const Vector2D&’} | |
216 | inline RealPoint operator + (const RealPoint& p, const RealSize& s) { | |
| ~~~~~~~~~~~~~~~~~^ | |
[147/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/functions/spelling.cpp.o | |
[148/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/image.cpp.o | |
[149/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/profiler.cpp.o | |
[150/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/functions/basic.cpp.o | |
/run/build/magicseteditor2/src/script/functions/basic.cpp: In member function ‘virtual ScriptValueP ScriptBuiltIn_make_map::eval(Context&, bool) const’: | |
/run/build/magicseteditor2/src/script/functions/basic.cpp:695:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] | |
695 | while (key = keys_it->next()) { | |
| ^ | |
/run/build/magicseteditor2/src/script/functions/basic.cpp:697:33: warning: suggest parentheses around assignment used as truth value [-Wparentheses] | |
697 | if (value = values_it->next()) { | |
| ^ | |
/run/build/magicseteditor2/src/script/functions/basic.cpp:705:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses] | |
705 | if (value = values_it->next()) { | |
| ^ | |
[151/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/script.cpp.o | |
/run/build/magicseteditor2/src/script/script.cpp: In member function ‘void Script::addInstruction(InstructionType, unsigned int)’: | |
/run/build/magicseteditor2/src/script/script.cpp:123:24: warning: narrowing conversion of ‘d’ from ‘unsigned int’ to ‘unsigned int:26’ [-Wnarrowing] | |
123 | Instruction i = {t, {d}}; | |
| ^ | |
/run/build/magicseteditor2/src/script/script.cpp: In member function ‘void Script::addInstruction(InstructionType, const ScriptValueP&)’: | |
/run/build/magicseteditor2/src/script/script.cpp:131:55: warning: narrowing conversion of ‘(((unsigned int)((Script*)this)->Script::constants.std::vector<boost::intrusive_ptr<ScriptValue> >::size()) - 1)’ from ‘unsigned int’ to ‘unsigned int:26’ [-Wnarrowing] | |
131 | Instruction i = {t, {(unsigned int)constants.size() - 1}}; | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | |
/run/build/magicseteditor2/src/script/script.cpp: In member function ‘void Script::addInstruction(InstructionType, const String&)’: | |
/run/build/magicseteditor2/src/script/script.cpp:136:55: warning: narrowing conversion of ‘(((unsigned int)((Script*)this)->Script::constants.std::vector<boost::intrusive_ptr<ScriptValue> >::size()) - 1)’ from ‘unsigned int’ to ‘unsigned int:26’ [-Wnarrowing] | |
136 | Instruction i = {t, {(unsigned int)constants.size() - 1}}; | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ | |
[152/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/script_manager.cpp.o | |
[153/175] Building CXX object CMakeFiles/magicseteditor.dir/src/script/functions/regex.cpp.o | |
ninja: build stopped: subcommand failed. | |
Error: module magicseteditor2: Child process exited with code 1 | |
make: *** [Makefile:62: build/] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment