How Do I Handle the “out of memory allocating xxx bytes after a total of xxx bytes” Error?

Question

How do I resolve the “out of memory allocating xxx bytes after a total of xxx bytes” error that occurs during build?

Answer

Error cause: The -sj parameter is added to the build process in the script. In addition, the machine configuration is low, the memory is insufficient, and the number of concurrent tasks is too large.

Solution: Reduce the number of concurrent make tasks during build or run the make command directly. If the one-click script is used, you need to modify the script.

Feedback
编组 3备份
    openGauss 2025-08-02 07:42:58
    cancel