Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error on MacOS with latest Godot #64

Open
jbromberg opened this issue Dec 14, 2023 · 5 comments
Open

Build Error on MacOS with latest Godot #64

jbromberg opened this issue Dec 14, 2023 · 5 comments

Comments

@jbromberg
Copy link

When trying to build on the latest version of Godot on MacOS via the command scons platform=macos module_luascript_enabled=yes I get the following build errors:

modules/luascript/debug.cpp:144:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(tmpbuf, "%6d %s %ld %2ld ",
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/stdio.h:180:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
modules/luascript/debug.cpp:155:2: warning: 'vsprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead. [-Wdeprecated-declarations]
        vsprintf(finalbuf, tmpbuf, ap);
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/stdio.h:199:1: note: 'vsprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead.")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
In file included from         #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
modules/luascript/lua_script.cpp                                                      ^
:23:
modules/luascript/lua_script_language.h:117:3: error: expected expression
                print_debug("_LuaScriptLanguage::get_singleton");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
In file included from modules/luascript/lua_script.cpp:23:
modules/luascript/lua_script_language.h:123:3: error: expected expression
                print_debug("_LuaScriptLanguage::acquire");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:32:2: error: expected expression
        print_debug("LuaScript::constructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:41:2: error: expected expression
        print_debug("LuaScript::destructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:50:2: error: expected expression
        print_debug("LuaScript::can_instantiate");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:57:2: error: expected expression
        print_debug("LuaScript::get_base_script");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:63:2: error: expected expression
        print_debug("LuaScript::get_global_name");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:69:2: error: expected expression
        print_debug("LuaScript::inherits_script");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:75:2: error: expected expression
        print_debug("LuaScript::get_instance_base_type");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:81:2: error: expected expression
        print_debug("LuaScript::instance_create( p_this = " + p_this->get_class_name() + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:100:2: error: expected expression
        print_debug("LuaScript::placeholder_instance_create( p_this = " + p_this->get_class_name() + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:116:2: error: expected expression
        print_debug("LuaScript::instance_has( p_this = " + p_this->get_class_name() + " ) found = " + (found ? "yes" : "no") + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:122:2: error: expected expression
        print_debug("LuaScript::has_source_code");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:128:2: error: expected expression
        print_debug("LuaScript::get_source_code");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:134:2: error: expected expression
        print_debug("LuaScript::set_source_code");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:165:2: error: expected expression
        print_debug("LuaScript::get_documentation");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:171:2: error: expected expression
        print_debug("LuaScript::get_class_icon_path");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:176:2: error: expected expression
        print_debug("LuaScript::get_class_category");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script.cpp:194:2: error: expected expression
        print_debug("LuaScript::is_tool");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
scons: *** [modules/luascript/lua_script.macos.editor.arm64.o] Error 1
2 warnings generated.
In file included from modules/luascript/lua_script_instance.cpp:24:
modules/luascript/lua_script_language.h:117:3: error: expected expression
                print_debug("_LuaScriptLanguage::get_singleton");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
In file included from modules/luascript/lua_script_instance.cpp:24:
modules/luascript/lua_script_language.h:123:3: error: expected expression
                print_debug("_LuaScriptLanguage::acquire");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:33:2: error: expected expression
        print_debug("LuaScriptInstance::destructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:54:2: error: expected expression
        print_debug("LuaScriptInstance::get_property_list");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:65:2: error: expected expression
        print_debug("LuaScriptInstance::validate_property");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:80:2: error: expected expression
        print_debug("LuaScriptInstance::get_owner");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:86:2: error: expected expression
        print_debug("LuaScriptInstance::get_property_state");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:90:2: error: expected expression
        print_debug("LuaScriptInstance::get_method_list");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:95:2: error: expected expression
        print_debug("LuaScriptInstance::has_method( p_method = " + p_method + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:101:2: error: expected expression
        print_debug("LuaScriptInstance::callp( p_method = " + p_method + " ) " + baseClassName);
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:126:2: error: expected expression
        print_debug("LuaScriptInstance::refcount_incremented");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:131:2: error: expected expression
        print_debug("LuaScriptInstance::refcount_decremented");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:137:2: error: expected expression
        print_debug("LuaScriptInstance::get_script");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:143:2: error: expected expression
        print_debug("LuaScriptInstance::is_placeholder");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:159:2: error: expected expression
        print_debug("LuaScriptInstance::get_rpc_config");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_instance.cpp:165:2: error: expected expression
        print_debug("LuaScriptInstance::get_language");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
16 errors generated.
scons: *** [modules/luascript/lua_script_instance.macos.editor.arm64.o] Error 1
modules/luascript/editor/luascript_editor_syntax_highlighter.cpp:27:2: error: expected expression
        print_debug("LuaScriptEditorSyntaxHighlighter::constructor");
        ^
modules/luascript/editor/../debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/editor/luascript_editor_syntax_highlighter.cpp:31:2: error: expected expression
        print_debug("LuaScriptEditorSyntaxHighlighter::destructor");
        ^
modules/luascript/editor/../debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/editor/luascript_editor_syntax_highlighter.cpp:41:2: error: expected expression
        print_debug("LuaScriptEditorSyntaxHighlighter::_clear_highlighting_cache");
        ^
modules/luascript/editor/../debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/editor/luascript_editor_syntax_highlighter.cpp:45:2: error: expected expression
        print_debug("LuaScriptEditorSyntaxHighlighter::_update_cache");
        ^
modules/luascript/editor/../debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/editor/luascript_editor_syntax_highlighter.cpp:49:2: error: expected expression
        print_debug("LuaScriptEditorSyntaxHighlighter::_get_name");
        ^
modules/luascript/editor/../debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/editor/luascript_editor_syntax_highlighter.cpp:55:2: error: expected expression
        print_debug("LuaScriptEditorSyntaxHighlighter::_get_supported_languages");
        ^
modules/luascript/editor/../debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/editor/luascript_editor_syntax_highlighter.cpp:64:2: error: expected expression
        print_debug("LuaScriptEditorSyntaxHighlighter::_create");
        ^
modules/luascript/editor/../debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
In file included from modules/luascript/lua_script_language.cpp:20:
modules/luascript/lua_script_language.h:117:3: error: expected expression
                print_debug("_LuaScriptLanguage::get_singleton");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
In file included from modules/luascript/lua_script_language.cpp:20:
modules/luascript/lua_script_language.h:123:3: error: expected expression
                print_debug("_LuaScriptLanguage::acquire");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:37:2: error: expected expression
        print_debug("LuaScriptLanguage::constructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:44:2: error: expected expression
        print_debug("LuaScriptLanguage::destructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:53:2: error: expected expression
        print_debug("LuaScriptLanguage::init");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:58:2: error: expected expression
        print_debug("LuaScriptLanguage::get_name");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:64:2: error: expected expression
        print_debug("LuaScriptLanguage::get_type");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:70:2: error: expected expression
        print_debug("LuaScriptLanguage::get_extension");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:76:2: error: expected expression
        print_debug("LuaScriptLanguage::finish");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:81:2: error: expected expression
        print_debug("LuaScriptLanguage::get_reserved_words");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:135:2: error: expected expression
        print_debug("LuaScriptLanguage::get_comment_delimiters");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:142:2: error: expected expression
        print_debug("LuaScriptLanguage::get_doc_comment_delimiters");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:146:2: error: expected expression
        print_debug("LuaScriptLanguage::get_string_delimiters");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:157:2: error: expected expression
        print_debug("LuaScriptLanguage::make_template( p_template = " + p_template + ", p_class_name = " + p_class_name + ", p_base_class_name = " + p_base_class_name + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:192:2: error: expected expression
        print_debug("LuaScriptLanguage::get_built_in_templates");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:198:2: error: expected expression
        print_debug("LuaScriptLanguage::is_using_templates");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:227:2: error: expected expression
        print_debug("LuaScriptLanguage::validate_path( p_path = " + p_path + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:233:2: error: expected expression
        print_debug("LuaScriptLanguage::create_script");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_language.cpp:239:2: error: expected expression
        print_debug("LuaScriptLanguage::has_named_classes");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
scons: *** [modules/luascript/lua_script_language.macos.editor.arm64.o] Error 1
7 errors generated.
scons: *** [modules/luascript/editor/luascript_editor_syntax_highlighter.macos.editor.arm64.o] Error 1
In file included from modules/luascript/lua_script_resource_formate_loader.cpp:24:
modules/luascript/lua_script_language.h:117:3: error: expected expression
                print_debug("_LuaScriptLanguage::get_singleton");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
In file included from modules/luascript/lua_script_resource_formate_loader.cpp:24:
modules/luascript/lua_script_language.h:123:3: error: expected expression
                print_debug("_LuaScriptLanguage::acquire");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_loader.cpp:27:2: error: expected expression
        print_debug("LuaScriptResourceFormatLoader::constructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_loader.cpp:31:2: error: expected expression
        print_debug("LuaScriptResourceFormatLoader::destructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_loader.cpp:35:2: error: expected expression
        print_debug("LuaScriptResourceFormatLoader::load( p_path = " + p_path + ", p_original_path = " + p_original_path + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_loader.cpp:69:2: error: expected expression
        print_debug("LuaScriptResourceFormatLoader::get_recognized_extensions");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_loader.cpp:75:2: error: expected expression
        print_debug("LuaScriptResourceFormatLoader::handles_type( p_type = " + p_type + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_loader.cpp:81:2: error: expected expression
        print_debug("LuaScriptResourceFormatLoader::get_resource_type( p_path = " + p_path + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_loader.cpp:87:2: error: expected expression
        print_debug("LuaScriptResourceFormatLoader::get_dependencies( p_path = " + p_path + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_saver.cpp:26:2: error: expected expression
        print_debug("LuaScriptResourceFormatSaver::constructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_saver.cpp:30:2: error: expected expression
        print_debug("LuaScriptResourceFormatSaver::destructor");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_saver.cpp:33:2: error: expected expression
        print_debug("LuaScriptResourceFormatSaver::save( p_path = " + p_path + " )");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_saver.cpp:57:2: error: expected expression
        print_debug("LuaScriptResourceFormatSaver::get_recognized_extensions");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/lua_script_resource_formate_saver.cpp:65:2: error: expected expression
        print_debug("LuaScriptResourceFormatSaver::recognize");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
9 errors generated.
scons: *** [modules/luascript/lua_script_resource_formate_loader.macos.editor.arm64.o] Error 1
5 errors generated.
scons: *** [modules/luascript/lua_script_resource_formate_saver.macos.editor.arm64.o] Error 1
In file included from modules/luascript/register_types.cpp:23:
modules/luascript/lua_script_language.h:117:3: error: expected expression
                print_debug("_LuaScriptLanguage::get_singleton");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
In file included from modules/luascript/register_types.cpp:23:
modules/luascript/lua_script_language.h:123:3: error: expected expression
                print_debug("_LuaScriptLanguage::acquire");
                ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
modules/luascript/register_types.cpp:34:2: error: expected expression
        print_debug("register_types._editor_init");
        ^
modules/luascript/debug.h:30:67: note: expanded from macro 'print_debug'
#define print_debug(fmt, ...)  print_line(vformat(fmt, __VA_ARGS__))
                                                                  ^
3 errors generated.
scons: *** [modules/luascript/register_types.macos.editor.arm64.o] Error 1
scons: building terminated because of errors.
@perbone
Copy link
Owner

perbone commented Dec 15, 2023

Hi! I just got warnings about this so did not realize it would be removed so soon. I'll try to fix it ASAP.

  • Perbone

@jbromberg
Copy link
Author

If there's anything I can do to help, let me know!

@linkerlin
Copy link

[ 23%] Compiling modules/luascript/lib/antlr4/CharStream.cpp ...
modules/luascript/lib/antlr4/ANTLRInputStream.cpp:56:36: error: 'value' is unavailable: introduced in macOS 10.14
_data = std::move(maybe_utf32).value();
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:962:28: note: 'value' has been explicitly marked unavailable here
constexpr value_type&& value() &&
^
modules/luascript/lib/antlr4/ANTLRInputStream.cpp:160:31: error: 'value' is unavailable: introduced in macOS 10.14
return std::move(maybeUtf8).value();
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:962:28: note: 'value' has been explicitly marked unavailable here
constexpr value_type&& value() &&
^
modules/luascript/lib/antlr4/ANTLRInputStream.cpp:175:31: error: 'value' is unavailable: introduced in macOS 10.14
return std::move(maybeUtf8).value();
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/optional:962:28: note: 'value' has been explicitly marked unavailable here
constexpr value_type&& value() &&
^
3 errors generated.
scons: *** [modules/luascript/lib/antlr4/ANTLRInputStream.macos.editor.x86_64.o] Error 1
scons: building terminated because of errors.

@perbone
Copy link
Owner

perbone commented Feb 20, 2024

macOS build it's broken, I'll try to fix it asap.

@gityinlf
Copy link

gityinlf commented Nov 8, 2024

how can I fix it on macOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants