ninja: build stopped: subcommand failed


Some of the warehouses may not be completely synchronized, re-execute:

repo sync -cdj4

Error: openssl/ bio-h :No such file or folder


sudo apt install libssl-dev

Exception in thread “main” java.lang.OutOfMemoryError: Java heap space


export _JAVA_OPTIONS=”-Xmx4g”

scripts/mod/mk_elfconfig.c fatal error: ‘elf.h’ file not found


sudo cp -a external/elfutils/libelf/elf.h /usr/local/include

elf.h fatal error: ‘features.h’ file not found

Remove include lines referenced by feature. h from /usr/local/include/elf.h

multiple definition of `yylloc’

To view the GCC version:

gcc –version

If it is version 10, you need to downgrade to version 9.3

sudo apt-get install gcc-9

sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-9 100


‘openssl/bio.h’ file not found

brew install openssl

brew link openssl –force

cd /usr/local/include

sudo ln -s /opt/local/include/openssl/ openssl

clang.real: error while loading shared libraries: cannot open shared object file: No such file or directory

sudo apt-get install libncurses5

ninja failed with: exit status 137

export MAVEN_OPTS=”-Xms5120m -Xmx5120m”…

If not, increase the size of swap…

The number of threads used in compiling should not be greater than the number of CPU cores, plus the -jn parameter, where N is the number of CPU cores on the computer. Linux system can look up through the command “grep ‘core id/proc/cpuinfo | sort -u | wc -l”, MAC system through the sysctl command – n machdep. CPU. Core_count view.

You have tried to change the API from what has been previously released in

an SDK. Please fix the errors listed above.

make update-api -j4