Process 'command 'sh'' finished with non-zero exit value 2

Based on the response to this question[Can not build android_rpc], I modified these two files:config.mk and Android.mk,This does solve the error previously prompted in the terminal.

BUT Then there was the another new error:

cc1plus: error: argument to ‘-O’ should be a non-negative integer, ‘g’, ‘s’ or 'fast’

make: Leaving directory `/home/zxc/tvm/apps/android_rpc/app/src/main/jni’ make: *** [/home/zxc/tvm/apps/android_rpc/app/src/main/obj/local/arm64-v8a/objs/tvm4j_runtime_packed/org_apache_tvm_native_c_api.o] Error 1

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ‘:app:buildJni’. Process ‘command ‘sh’’ finished with non-zero exit value 2

Can anyone help me?