Skip to content

Catastrophic build errors #23

Description

@LoganDark

There are so many errors here I don't really care to look through them and separate them out.

Output
0 LoganDark ~/ocvm env PKG_CONFIG_PATH=/usr/local/Cellar/lua/5.2.4_4/lib/pkgconfig/ make
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c main.cpp -o bin/main.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c apis/os.cpp -o bin/apis/os.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c apis/system.cpp -o bin/apis/system.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c apis/unicode.cpp -o bin/apis/unicode.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c apis/userdata.cpp -o bin/apis/userdata.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/component.cpp -o bin/components/component.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/computer.cpp -o bin/components/computer.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/eeprom.cpp -o bin/components/eeprom.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/filesystem.cpp -o bin/components/filesystem.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/gpu.cpp -o bin/components/gpu.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/internet.cpp -o bin/components/internet.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/keyboard.cpp -o bin/components/keyboard.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/modem.cpp -o bin/components/modem.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/sandbox.cpp -o bin/components/sandbox.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c components/screen.cpp -o bin/components/screen.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c io/frame.cpp -o bin/io/frame.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/ansi.cpp -o bin/drivers/ansi.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/ansi_escape.cpp -o bin/drivers/ansi_escape.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/basic_term.cpp -o bin/drivers/basic_term.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/connection.cpp -o bin/drivers/connection.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/factory_shell.cpp -o bin/drivers/factory_shell.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/fs_utils.cpp -o bin/drivers/fs_utils.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/internet_drv.cpp -o bin/drivers/internet_drv.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/kb_data.cpp -o bin/drivers/kb_data.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/kb_drv.cpp -o bin/drivers/kb_drv.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/modem_drv.cpp -o bin/drivers/modem_drv.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/mouse_drv.cpp -o bin/drivers/mouse_drv.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/raw_tty.cpp -o bin/drivers/raw_tty.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/term_buffer.cpp -o bin/drivers/term_buffer.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c drivers/worker.cpp -o bin/drivers/worker.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c color/color_map.cpp -o bin/color/color_map.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c model/client.cpp -o bin/model/client.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c model/config.cpp -o bin/model/config.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c model/host.cpp -o bin/model/host.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c model/log.cpp -o bin/model/log.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c model/luaproxy.cpp -o bin/model/luaproxy.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c model/prof_log.cpp -o bin/model/prof_log.o
c++ -g --std=c++14 -Wall -I/usr/local/opt/lua/include -I. -MMD -c model/value.cpp -o bin/model/value.o
In file included from drivers/ansi.cpp:2:
./color/color_types.h:5:1: warning: 'Color' defined as a struct here but previously declared as a class
      [-Wmismatched-tags]
struct Color
^
drivers/ansi.h:7:1: note: did you mean struct here?
class Color;
^~~~~
struct
drivers/worker.cpp:76:12: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
    return std::move(unique_lock<mutex> (_m));
           ^
drivers/worker.cpp:76:12: note: remove std::move call here
    return std::move(unique_lock<mutex> (_m));
           ^~~~~~~~~~                       ~
1 warning generated.
In file included from drivers/ansi_escape.cpp:12:
drivers/ansi.h:7:1: warning: class 'Color' was previously declared as a struct [-Wmismatched-tags]
class Color;
^
./color/color_types.h:5:8: note: previous use is here
struct Color
       ^
drivers/ansi.h:7:1: note: did you mean struct here?
class Color;
^~~~~
struct
components/filesystem.cpp:41:13: warning: 'this' pointer cannot be null in well-defined C++ code; comparison may be
      assumed to always evaluate to false [-Wtautological-undefined-compare]
        if (this == nullptr || _fs == nullptr)
            ^~~~    ~~~~~~~
model/prof_log.cpp:12:12: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
    return std::move(ofstream(filename, append ? fstream::app : fstream::out));
           ^
model/prof_log.cpp:12:12: note: remove std::move call here
    return std::move(ofstream(filename, append ? fstream::app : fstream::out));
           ^~~~~~~~~~                                                        ~
1 warning generated.
drivers/fs_utils.cpp:109:21: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
        *pOutData = std::move(static_cast<stringstream const&>(stringstream() << file.rdbuf()).str());
                    ^
drivers/fs_utils.cpp:109:21: note: remove std::move call here
        *pOutData = std::move(static_cast<stringstream const&>(stringstream() << file.rdbuf()).str());
                    ^~~~~~~~~~                                                                      ~
In file included from drivers/raw_tty.cpp:22:
In file included from ./drivers/ansi_escape.h:3:
In file included from ./io/frame.h:14:
./color/color_types.h:5:1: warning: 'Color' defined as a struct here but previously declared as a class
      [-Wmismatched-tags]
struct Color
^
drivers/ansi.h:7:1: note: did you mean struct here?
class Color;
^~~~~
struct
drivers/raw_tty.cpp:48:15: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
    _kb_drv = std::move(KeyboardTerminalDriver::create(hasMasterTty()));
              ^
drivers/raw_tty.cpp:48:15: note: remove std::move call here
    _kb_drv = std::move(KeyboardTerminalDriver::create(hasMasterTty()));
              ^~~~~~~~~~                                              ~
components/gpu.cpp:544:33: warning: braces around scalar initializer [-Wbraced-scalar-init]
                    it->value = {" "};
                                ^~~~~
drivers/ansi_escape.cpp:58:9: error: use of undeclared identifier 'sigtimedwait'
    if (sigtimedwait(&g_sigset, nullptr, &timeout) == SIGWINCH) // winched
        ^
In file included from drivers/raw_tty.cpp:1:
In file included from drivers/raw_tty.h:3:
In file included from drivers/mouse_drv.h:3:
In file included from ./io/event.h:3:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2285:5: warning:
      delete called on 'KeyboardTerminalDriver' that is abstract but has non-virtual destructor
      [-Wdelete-non-virtual-dtor]
    delete __ptr;
    ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2598:7: note:
      in instantiation of member function 'std::__1::default_delete<KeyboardTerminalDriver>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2552:19: note:
      in instantiation of member function 'std::__1::unique_ptr<KeyboardTerminalDriver,
      std::__1::default_delete<KeyboardTerminalDriver> >::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
drivers/raw_tty.cpp:48:25: note: in instantiation of member function 'std::__1::unique_ptr<KeyboardTerminalDriver,
      std::__1::default_delete<KeyboardTerminalDriver> >::~unique_ptr' requested here
    _kb_drv = std::move(KeyboardTerminalDriver::create(hasMasterTty()));
                        ^
1 warning and 1 error generated.
make: *** [bin/drivers/ansi_escape.o] Error 1
make: *** Waiting for unfinished jobs....
drivers/raw_tty.cpp:29:22: warning: unused variable '_original_kb_mode' [-Wunused-variable]
static unsigned long _original_kb_mode = 0;
                     ^
In file included from components/modem.cpp:1:
In file included from components/modem.h:3:
In file included from components/component.h:5:
./model/value.h:176:48: error: no matching function for call to 'push_ret'
        return ValuePack::push_ret(lua, arg) + ValuePack::push_ret(lua, args...);
                                               ^~~~~~~~~~~~~~~~~~~
./model/value.h:98:27: note: in instantiation of function template specialization 'ValuePack::push_ret<unsigned long>'
      requested here
        return ValuePack::push_ret(lua, args...);
                          ^
components/modem.cpp:182:23: note: in instantiation of function template specialization 'ValuePack::ret<unsigned long>'
      requested here
    return ValuePack::ret(lua, _maxPacketSize);
                      ^
./model/value.h:174:23: note: candidate function template not viable: requires at least 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const T& arg, const Ts&... args)
                      ^
./model/value.h:101:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, bool arg)
                      ^
./model/value.h:107:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, int32_t arg)
                      ^
./model/value.h:113:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, uint32_t arg)
                      ^
./model/value.h:119:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, int64_t arg)
                      ^
./model/value.h:125:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, uint64_t arg)
                      ^
./model/value.h:131:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, double arg)
                      ^
./model/value.h:137:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, float arg)
                      ^
./model/value.h:143:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const string& arg)
                      ^
./model/value.h:149:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const char* arg)
                      ^
./model/value.h:155:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const void* arg)
                      ^
./model/value.h:161:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const vector<char>& arg)
                      ^
./model/value.h:167:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const Value& v)
                      ^
In file included from apis/unicode.cpp:1:
In file included from apis/unicode.h:2:
In file included from ./model/luaproxy.h:7:
./model/value.h:176:48: error: no matching function for call to 'push_ret'
        return ValuePack::push_ret(lua, arg) + ValuePack::push_ret(lua, args...);
                                               ^~~~~~~~~~~~~~~~~~~
./model/value.h:98:27: note: in instantiation of function template specialization 'ValuePack::push_ret<unsigned long>'
      requested here
        return ValuePack::push_ret(lua, args...);
                          ^
apis/unicode.cpp:375:23: note: in instantiation of function template specialization 'ValuePack::ret<unsigned long>'
      requested here
    return ValuePack::ret(lua, wlen(Value::checkArg<vector<char>>(lua, 1)));
                      ^
./model/value.h:174:23: note: candidate function template not viable: requires at least 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const T& arg, const Ts&... args)
                      ^
./model/value.h:101:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, bool arg)
                      ^
./model/value.h:107:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, int32_t arg)
                      ^
./model/value.h:113:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, uint32_t arg)
                      ^
./model/value.h:119:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, int64_t arg)
                      ^
./model/value.h:125:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, uint64_t arg)
                      ^
./model/value.h:131:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, double arg)
                      ^
./model/value.h:137:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, float arg)
                      ^
./model/value.h:143:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const string& arg)
                      ^
./model/value.h:149:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const char* arg)
                      ^
./model/value.h:155:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const void* arg)
                      ^
./model/value.h:161:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const vector<char>& arg)
                      ^
./model/value.h:167:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const Value& v)
                      ^
1 error generated.
1 warning generated.
make: *** [bin/apis/unicode.o] Error 1
In file included from drivers/kb_drv.cpp:1:
In file included from drivers/kb_drv.h:3:
In file included from ./io/event.h:3:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2285:5: warning:
      delete called on non-final 'KeyboardLocalRawTtyDriver' that has virtual functions but non-virtual destructor
      [-Wdelete-non-virtual-dtor]
    delete __ptr;
    ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2598:7: note:
      in instantiation of member function 'std::__1::default_delete<KeyboardLocalRawTtyDriver>::operator()' requested
      here
      __ptr_.second()(__tmp);
      ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2552:19: note:
      in instantiation of member function 'std::__1::unique_ptr<KeyboardLocalRawTtyDriver,
      std::__1::default_delete<KeyboardLocalRawTtyDriver> >::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
drivers/kb_drv.cpp:241:16: note: in instantiation of member function 'std::__1::unique_ptr<KeyboardLocalRawTtyDriver,
      std::__1::default_delete<KeyboardLocalRawTtyDriver> >::~unique_ptr' requested here
        return std::make_unique<KeyboardLocalRawTtyDriver>();
               ^
In file included from drivers/kb_drv.cpp:1:
In file included from drivers/kb_drv.h:3:
In file included from ./io/event.h:3:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2285:5: warning:
      delete called on 'KeyboardTerminalDriver' that is abstract but has non-virtual destructor
      [-Wdelete-non-virtual-dtor]
    delete __ptr;
    ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2598:7: note:
      in instantiation of member function 'std::__1::default_delete<KeyboardTerminalDriver>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2552:19: note:
      in instantiation of member function 'std::__1::unique_ptr<KeyboardTerminalDriver,
      std::__1::default_delete<KeyboardTerminalDriver> >::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
drivers/kb_drv.cpp:241:16: note: in instantiation of member function 'std::__1::unique_ptr<KeyboardTerminalDriver,
      std::__1::default_delete<KeyboardTerminalDriver> >::~unique_ptr' requested here
        return std::make_unique<KeyboardLocalRawTtyDriver>();
               ^
In file included from drivers/kb_drv.cpp:1:
In file included from drivers/kb_drv.h:3:
In file included from ./io/event.h:3:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:266:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__bit_reference:15:
In file included from /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:643:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2285:5: warning:
      delete called on non-final 'KeyboardPtyDriver' that has virtual functions but non-virtual destructor
      [-Wdelete-non-virtual-dtor]
    delete __ptr;
    ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2598:7: note:
      in instantiation of member function 'std::__1::default_delete<KeyboardPtyDriver>::operator()' requested here
      __ptr_.second()(__tmp);
      ^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/memory:2552:19: note:
      in instantiation of member function 'std::__1::unique_ptr<KeyboardPtyDriver,
      std::__1::default_delete<KeyboardPtyDriver> >::reset' requested here
  ~unique_ptr() { reset(); }
                  ^
drivers/kb_drv.cpp:243:16: note: in instantiation of member function 'std::__1::unique_ptr<KeyboardPtyDriver,
      std::__1::default_delete<KeyboardPtyDriver> >::~unique_ptr' requested here
        return std::make_unique<KeyboardPtyDriver>();
               ^
In file included from components/filesystem.cpp:1:
In file included from components/filesystem.h:2:
In file included from components/component.h:5:
./model/value.h:176:48: error: no matching function for call to 'push_ret'
        return ValuePack::push_ret(lua, arg) + ValuePack::push_ret(lua, args...);
                                               ^~~~~~~~~~~~~~~~~~~
./model/value.h:98:27: note: in instantiation of function template specialization 'ValuePack::push_ret<unsigned long>'
      requested here
        return ValuePack::push_ret(lua, args...);
                          ^
components/filesystem.cpp:564:23: note: in instantiation of function template specialization
      'ValuePack::ret<unsigned long>' requested here
    return ValuePack::ret(lua, fs_utils::size(path() + clean(filepath, true, false)));
                      ^
./model/value.h:174:23: note: candidate function template not viable: requires at least 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const T& arg, const Ts&... args)
                      ^
./model/value.h:101:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, bool arg)
                      ^
./model/value.h:107:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, int32_t arg)
                      ^
./model/value.h:113:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, uint32_t arg)
                      ^
./model/value.h:119:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, int64_t arg)
                      ^
./model/value.h:125:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, uint64_t arg)
                      ^
./model/value.h:131:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, double arg)
                      ^
./model/value.h:137:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, float arg)
                      ^
./model/value.h:143:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const string& arg)
                      ^
./model/value.h:149:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const char* arg)
                      ^
./model/value.h:155:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const void* arg)
                      ^
./model/value.h:161:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const vector<char>& arg)
                      ^
./model/value.h:167:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const Value& v)
                      ^
In file included from components/computer.cpp:1:
components/computer.h:68:12: warning: private field '_nexttrace' is not used [-Wunused-private-field]
    double _nexttrace = 0;
           ^
In file included from drivers/internet_drv.cpp:1:
In file included from drivers/internet_drv.h:3:
In file included from ./apis/userdata.h:3:
In file included from ./model/luaproxy.h:7:
./model/value.h:176:48: error: no matching function for call to 'push_ret'
        return ValuePack::push_ret(lua, arg) + ValuePack::push_ret(lua, args...);
                                               ^~~~~~~~~~~~~~~~~~~
./model/value.h:98:27: note: in instantiation of function template specialization 'ValuePack::push_ret<unsigned long>'
      requested here
        return ValuePack::push_ret(lua, args...);
                          ^
drivers/internet_drv.cpp:249:23: note: in instantiation of function template specialization
      'ValuePack::ret<unsigned long>' requested here
    return ValuePack::ret(lua, buffer.size());
                      ^
./model/value.h:174:23: note: candidate function template not viable: requires at least 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const T& arg, const Ts&... args)
                      ^
./model/value.h:101:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, bool arg)
                      ^
./model/value.h:107:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, int32_t arg)
                      ^
./model/value.h:113:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, uint32_t arg)
                      ^
./model/value.h:119:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, int64_t arg)
                      ^
./model/value.h:125:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, uint64_t arg)
                      ^
./model/value.h:131:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, double arg)
                      ^
./model/value.h:137:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, float arg)
                      ^
./model/value.h:143:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const string& arg)
                      ^
./model/value.h:149:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const char* arg)
                      ^
./model/value.h:155:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const void* arg)
                      ^
./model/value.h:161:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const vector<char>& arg)
                      ^
./model/value.h:167:23: note: candidate function not viable: requires 2 arguments, but 1 was provided
    inline static int push_ret(lua_State* lua, const Value& v)
                      ^
1 warning and 1 error generated.
make: *** [bin/components/filesystem.o] Error 1
4 warnings generated.
1 error generated.
make: *** [bin/components/modem.o] Error 1
1 error generated.
make: *** [bin/drivers/internet_drv.o] Error 1
In file included from model/client.cpp:1:
model/client.h:55:21: warning: private field '_globals' is not used [-Wunused-private-field]
    SandboxMethods* _globals;
                    ^
3 warnings generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions