{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3539","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3539/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3539/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3539/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3539","id":126526473,"number":3539,"title":"flaky Android build","user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"5319e7"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/build","name":"build","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-13T22:02:51Z","updated_at":"2016-01-14T10:09:56Z","closed_at":null,"body":"The Android build will sometimes fail with the following output:\r\n\r\n```\r\nmake[2]: *** No rule to make target `Release/obj.target', needed by `/bitrise/src/platform/android/MapboxGLAndroidSDK/src/main/obj.target'.  Stop.\r\nmake[2]: *** Waiting for unfinished jobs....\r\n  CXX(target) Release/obj.target/example-custom-layer-lib/platform/android/src/example_custom_layer.o\r\n../../platform/android/src/http_request_android.cpp:191:59: warning: unused parameter 'message' [-Wunused-parameter]\r\nvoid HTTPAndroidRequest::onResponse(int code, std::string message, std::string etag, std::string modified, std::string cacheControl, std::string expires, std::string body) {\r\n                                                          ^\r\n1 warning generated.\r\nmake[2]: Leaving directory `/bitrise/src/build/android-arm-v7'\r\nmake[1]: Leaving directory `/bitrise/src'\r\nmake[1]: *** [Makefile/androidapp] Error 2\r\nmake: *** [android-lib] Error 2\r\n==> Script finished with exit code: 2\r\nERRO[21:59:51] Step (Build Android SDK For arm) failed, error: (exit status 2) \r\n```\r\n\r\nI don't think the \"warning: unused parameter\" is relevant (although we should fix that). I have no idea what \"No rule to make target `Release/obj.target'\" means, but it seems to be the cause. There's nothing before that."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/171594347","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3539#issuecomment-171594347","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3539","id":171594347,"user":{"login":"tobrun","id":2151639,"avatar_url":"https://avatars.githubusercontent.com/u/2151639?v=3","gravatar_id":"","url":"https://api.github.com/users/tobrun","html_url":"https://github.com/tobrun","followers_url":"https://api.github.com/users/tobrun/followers","following_url":"https://api.github.com/users/tobrun/following{/other_user}","gists_url":"https://api.github.com/users/tobrun/gists{/gist_id}","starred_url":"https://api.github.com/users/tobrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobrun/subscriptions","organizations_url":"https://api.github.com/users/tobrun/orgs","repos_url":"https://api.github.com/users/tobrun/repos","events_url":"https://api.github.com/users/tobrun/events{/privacy}","received_events_url":"https://api.github.com/users/tobrun/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T10:09:56Z","updated_at":"2016-01-14T10:09:56Z","body":"@jfirebaugh \r\nI was able to reproduce this locally by building with same command as CI:\r\n > make android -j4\r\n\r\nOther make commands seem to be unaffected\r\n\r\n#### Current workaround:\r\nI have hotfixed this for now by [silencing the message param](http://stackoverflow.com/questions/1486904/how-do-i-best-silence-a-warning-about-unused-variables):\r\n\r\n```cpp\r\n    // the message param is unused, this generates a warning at build time\r\n    // this was breaking builds for `make android -j4`\r\n    (void)message;\r\n```\r\nThis is not a correct solution but will resolve the flakiness for now. \r\nl will leave this issue open so we can address the real issue later on.\r\n\r\n\r\n\r\n"}}