[Unitree Go2 EDU] +gcc version error

Here is the English translation of your text:

Hello. I am currently trying to create an accurate map while walking by mounting a Livox Mid-360 on a Unitree Go2 Edu. In relation to this, I attempted to create a container for FAST_LIO, one of the SLAM packages, inside the Go2, but it did not go well. Specifically, during the build of the package, a GCC version error occurred, services like NoMachine terminated, and the build was interrupted.

/Livox-SDK2/sdk_core/…/3rdparty/rapidjson/internal/dtoa.h:36:1: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
RAPIDJSON_DIAG_OFF(array-bounds) // some gcc versions generate wrong warnings
^~~~~~
Does anyone have a solution to this problem? Thank you in advance.

Dear @ume0315,

The warnings are usually depreciation notices. Try rebuilding the repo twice and see if the error continues.

thanks for replying

Does the interpretation of “proceed while ignoring the warning” correct?

I am currently trying to access a PC within go2 using NoMachine and build a Dockerfile, but when a warning occurs, NoMachine forcibly terminates, making it impossible to continue. The same result occurs with an SSH connection.

If the compiler is giving depreciation warning of syntax, yes, as developers usually they have to update it.

In your case, for fast lio slam do you have a livox mid 360 lidar. If yes, then you have to install that first

and then it should work for the current version. It seems the fast lio that you are using might be outdated. Have you tried building from source for fast lio slam.

Thank you. After investigating various possibilities, I found that the cause was excessive parallel processing in the Dockerfile, which led to memory exhaustion. The issue has been resolved.

1 Like