You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since GCC 8, the compiler tries to detect when strncpy tries to copy a source string bigger than the destination, which might cause a string truncation and remove the termination character ('\0') during the copy. This causes the destination string to not be a string anymore (a string in C and C++ NEEDS to have the termination character, as per its definition). Since GCC 9, these warnings became errors preventing the compilation, which we see here.
While the authors added the termination character at the following line (robot/src/SimulationBridge.cpp:74), GCC doesn't seem to register it, causing the error.
To resolve this issue, you could replace the 'strncpy' by a 'memcpy', tricking the compiler into thinking you are only copying an array, since the termination character was added at the following line.
As such, you should have the following at robot/src/SimulationBridge.cpp:73: memcpy(_sharedMemory().robotToSim.errorMessage, e.what(), sizeof(_sharedMemory().robotToSim.errorMessage));
always a new error popping up depending on which 'make -j' i run eg. make -j2 / j3 /j4
can never seem to get past 80%
The text was updated successfully, but these errors were encountered: