#539 Unable to compile Ubuntu 22.04

Closed
opened 7 months ago by tonxonious · 1 comments

TestCase.cpp ../../../RecastDemo/Source/TestCase.cpp: In member function 'bool TestCase::load(const string&)': ../../../RecastDemo/Source/TestCase.cpp:158:31: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct TestCase::Test' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 158 | memset(test, 0, sizeof(Test));

  |                         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~

In file included from ../../../RecastDemo/Source/TestCase.cpp:23: ../../../RecastDemo/Include/TestCase.h:33:16: note: 'struct TestCase::Test' declared here 33 | struct Test

  |                ^~~~

../../../RecastDemo/Source/TestCase.cpp:172:31: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct TestCase::Test' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 172 | memset(test, 0, sizeof(Test));

  |                         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~

In file included from ../../../RecastDemo/Source/TestCase.cpp:23: ../../../RecastDemo/Include/TestCase.h:33:16: note: 'struct TestCase::Test' declared here 33 | struct Test

  |                ^~~~

ValueHistory.cpp imgui.cpp imguiRenderGL.cpp main.cpp Creating ../../Bin Linking RecastDemo ==== Building Tests (debug) ==== Creating obj/Debug/Tests Tests_Detour.cpp Tests_Recast.cpp main.cpp In file included from /usr/include/signal.h:328,

             from ../../../Tests/catch.hpp:6520,
             from ../../../Tests/main.cpp:2:

../../../Tests/catch.hpp:6543:33: error: size of array 'altStackMem' is not an integral constant-expression 6543 | static char altStackMem[SIGSTKSZ];

  |                                 ^~~~~~~~

../../../Tests/catch.hpp:6594:45: error: size of array 'altStackMem' is not an integral constant-expression 6594 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {};

  |                                             ^~~~~~~~

make[1]: *** [Tests.make:137: obj/Debug/Tests/main.o] Error 1 make: *** [Makefile:75: Tests] Error 2

TestCase.cpp ../../../RecastDemo/Source/TestCase.cpp: In member function 'bool TestCase::load(const string&)': ../../../RecastDemo/Source/TestCase.cpp:158:31: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct TestCase::Test' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 158 | memset(test, 0, sizeof(Test)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../../RecastDemo/Source/TestCase.cpp:23: ../../../RecastDemo/Include/TestCase.h:33:16: note: 'struct TestCase::Test' declared here 33 | struct Test | ^~~~ ../../../RecastDemo/Source/TestCase.cpp:172:31: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'struct TestCase::Test' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 172 | memset(test, 0, sizeof(Test)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from ../../../RecastDemo/Source/TestCase.cpp:23: ../../../RecastDemo/Include/TestCase.h:33:16: note: 'struct TestCase::Test' declared here 33 | struct Test | ^~~~ ValueHistory.cpp imgui.cpp imguiRenderGL.cpp main.cpp Creating ../../Bin Linking RecastDemo ==== Building Tests (debug) ==== Creating obj/Debug/Tests Tests_Detour.cpp Tests_Recast.cpp main.cpp In file included from /usr/include/signal.h:328, from ../../../Tests/catch.hpp:6520, from ../../../Tests/main.cpp:2: ../../../Tests/catch.hpp:6543:33: error: size of array 'altStackMem' is not an integral constant-expression 6543 | static char altStackMem[SIGSTKSZ]; | ^~~~~~~~ ../../../Tests/catch.hpp:6594:45: error: size of array 'altStackMem' is not an integral constant-expression 6594 | char FatalConditionHandler::altStackMem[SIGSTKSZ] = {}; | ^~~~~~~~ make[1]: *** [Tests.make:137: obj/Debug/Tests/main.o] Error 1 make: *** [Makefile:75: Tests] Error 2
image commented 7 months ago
Collaborator

This git is not for personally compiling the server and ubuntu 22.04 is not a "compiler" so I don't know how that would validate anything here. You can ask for help in discord and post more helpful information or just use the public servers for now. We are not helping people compile eq2emu via git issues.

This git is not for personally compiling the server and ubuntu 22.04 is not a "compiler" so I don't know how that would validate anything here. You can ask for help in discord and post more helpful information or just use the public servers for now. We are not helping people compile eq2emu via git issues.
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.