Verified
Status Update
Comments
kr...@google.com <kr...@google.com>
kr...@google.com <kr...@google.com>
la...@google.com <la...@google.com> #2
Thank you for suggesting this enhancement. We value the feedback from our community and hope to review your suggestion in an upcoming sprint.
Description
Instead, it should report just the error messages:
CMake Error: CMake was unable to find a build program corresponding to \"Ninja\". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
It makes sense to capture the full log to a file in the output folder: cmake_server_log.txt
jomof@jomof:~/projects/MyApplication72$ ./gradlew clean assemble
> Task :app:externalNativeBuildCleanDebug
Clean native-lib armeabi-v7a
Cleaning... 1 files.
Clean native-lib arm64-v8a
Cleaning... 1 files.
Clean native-lib x86
Cleaning... 1 files.
Clean native-lib x86_64
Cleaning... 1 files.
Clean native-lib mips
Cleaning... 1 files.
Clean native-lib mips64
Cleaning... 1 files.
> Task :app:externalNativeBuildCleanRelease
Clean native-lib armeabi
Cleaning... 0 files.
Clean native-lib armeabi-v7a
Cleaning... 0 files.
Clean native-lib arm64-v8a
Cleaning... 0 files.
Clean native-lib x86
Cleaning... 0 files.
Clean native-lib x86_64
Cleaning... 0 files.
Clean native-lib mips
Cleaning... 0 files.
Clean native-lib mips64
Cleaning... 0 files.
> Task :app:generateJsonModelDebug
CMAKE SERVER:
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {"supportedProtocolVersions":[{"isExperimental":true,"major":1,"minor":0}],"type":"hello"}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {
"type": "handshake",
"cookie": "gradle-cmake-cookie",
"protocolVersion": {
"isExperimental": true,
"major": 1,
"minor": 0
},
"sourceDirectory": "/usr/local/google/home/jomof/projects/MyApplication72/app",
"buildDirectory": "/usr/local/google/home/jomof/projects/MyApplication72/app/.externalNativeBuild/cmake/debug/armeabi",
"generator": "Ninja"
}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER:
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {"cookie":"gradle-cmake-cookie","inReplyTo":"handshake","type":"reply"}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {
"type": "configure",
"cacheArguments": [
"",
"-DCMAKE_SYSTEM_NAME\u003dAndroid",
"-DANDROID_ABI\u003darmeabi",
"-DANDROID_PLATFORM\u003dandroid-15",
"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY\u003d/usr/local/google/home/jomof/projects/MyApplication72/app/build/intermediates/cmake/debug/obj/armeabi",
"-DCMAKE_BUILD_TYPE\u003dDebug",
"-DANDROID_NDK\u003d/usr/local/google/home/jomof/Android/Sdk/ndk-bundle",
"-DCMAKE_CXX_FLAGS\u003d",
"-DCMAKE_ANDROID_ARCH_ABI\u003darmeabi",
"-DCMAKE_SYSTEM_VERSION\u003d15",
"-DCMAKE_EXPORT_COMPILE_COMMANDS\u003dON",
"-DCMAKE_ANDROID_NDK\u003d/usr/local/google/home/jomof/Android/Sdk/ndk-bundle",
"-DCMAKE_TOOLCHAIN_FILE\u003d/usr/local/google/home/jomof/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake",
"-G Ninja"
]
}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER:
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {"cookie":"","inReplyTo":"configure","message":"CMake Error: CMake was unable to find a build program corresponding to \"Ninja\". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.","title":"Error","type":"message"}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER: CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMAKE SERVER: CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMAKE SERVER:
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {"cookie":"","inReplyTo":"configure","message":"CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage","title":"Error","type":"message"}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER: CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMAKE SERVER: CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMAKE SERVER:
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {"cookie":"","inReplyTo":"configure","message":"CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage","title":"Error","type":"message"}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER: CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMAKE SERVER: CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMAKE SERVER:
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {"cookie":"","inReplyTo":"configure","progressCurrent":1000,"progressMaximum":1000,"progressMessage":"Configuring","progressMinimum":0,"type":"progress"}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER:
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {"cookie":"","inReplyTo":"configure","message":"Configuring incomplete, errors occurred!","type":"message"}
CMAKE SERVER: ]== "CMake Server" ==]
CMAKE SERVER: Configuring incomplete, errors occurred!
CMAKE SERVER: Configuring incomplete, errors occurred!
CMAKE SERVER:
CMAKE SERVER: [== "CMake Server" ==[
CMAKE SERVER: {"cookie":"","errorMessage":"Configuration failed.","inReplyTo":"configure","type":"error"}
CMAKE SERVER: ]== "CMake Server" ==]
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:generateJsonModelDebug'.
> {"cookie":"","errorMessage":"Configuration failed.","inReplyTo":"configure","type":"error"}
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at
BUILD FAILED in 3s
18 actionable tasks: 18 executed