Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

flaky Android build #3539

Closed
Closed

Description

@jfirebaugh

The Android build will sometimes fail with the following output:

make[2]: *** No rule to make target `Release/obj.target', needed by `/bitrise/src/platform/android/MapboxGLAndroidSDK/src/main/obj.target'.  Stop.
make[2]: *** Waiting for unfinished jobs....
  CXX(target) Release/obj.target/example-custom-layer-lib/platform/android/src/example_custom_layer.o
../../platform/android/src/http_request_android.cpp:191:59: warning: unused parameter 'message' [-Wunused-parameter]
void HTTPAndroidRequest::onResponse(int code, std::string message, std::string etag, std::string modified, std::string cacheControl, std::string expires, std::string body) {
                                                          ^
1 warning generated.
make[2]: Leaving directory `/bitrise/src/build/android-arm-v7'
make[1]: Leaving directory `/bitrise/src'
make[1]: *** [Makefile/androidapp] Error 2
make: *** [android-lib] Error 2
==> Script finished with exit code: 2
ERRO[21:59:51] Step (Build Android SDK For arm) failed, error: (exit status 2) 

I 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.

Activity

  1. added
    Android
    on Jan 13, 2016
  2. tobrun commented on Jan 14, 2016

    @tobrun
    Member

    @jfirebaugh
    I was able to reproduce this locally by building with same command as CI:

    make android -j4

    Other make commands seem to be unaffected

    Current workaround:

    I have hotfixed this for now by silencing the message param:

        // the message param is unused, this generates a warning at build time
        // this was breaking builds for `make android -j4`
        (void)message;

    This is not a correct solution but will resolve the flakiness for now.
    l will leave this issue open so we can address the real issue later on.

  3. added a commit that references this issue on Jan 14, 2016
  4. tobrun commented on Jan 14, 2016

    @tobrun
    Member

    Reopening because work around is not a valid solution.

  5. reopened this on Jan 14, 2016
  6. tobrun commented on Jan 14, 2016

    @tobrun
    Member

    I now have found that there is already an issue for that issue. Linking that one and closing this one. #3438

  7. added this to the android-v3.1.0 milestone on Jan 14, 2016
  8. jfirebaugh commented on Jan 14, 2016

    @jfirebaugh
    ContributorAuthor

    As hinted in the description, I don't think the warning (#3438) is the cause of this. I assume that the warning appears 100% of the time, and the build does not fail 100% of the time.

  9. 1 remaining item

  10. tobrun commented on Jan 15, 2016

    @tobrun
    Member

    @jfirebaugh
    I believe you are right, this fail of the build is unrelated to the contents of the PR:
    There is still some flakiness -> reopening

    make[2]: *** No rule to make target Release/obj.target', needed by/bitrise/src/platform/android/MapboxGLAndroidSDK/src/main/obj.target'. Stop.
    make[2]: *** Waiting for unfinished jobs....
    CXX(target) Release/obj.target/example-custom-layer-lib/platform/android/src/example_custom_layer.o
    make[2]: Leaving directory /bitrise/src/build/android-arm-v7' make[1]: Leaving directory/bitrise/src'
    make[1]: *** [Makefile/androidapp] Error 2
    make: *** [android-lib] Error 2

  11. reopened this on Jan 15, 2016
  12. tobrun commented on Jan 18, 2016

    @tobrun
    Member

    Another example of flaky failed build is:

    make[2]: *** No rule to make target Release/obj.target', needed by/bitrise/src/platform/android/MapboxGLAndroidSDK/src/main/obj.target'. Stop.
    make[2]: *** Waiting for unfinished jobs....
    CXX(target) Release/obj.target/example-custom-layer-lib/platform/android/src/example_custom_layer.o
    make[2]: Leaving directory /bitrise/src/build/android-arm-v7' make[1]: Leaving directory/bitrise/src'
    make[1]: *** [Makefile/androidapp] Error 2
    make: *** [android-lib] Error 2

    after researching this a bit, I have learned that Error 2 indicates:

    tells me that there was an error of some sort in the submake.

    We should add logging or some sort to identify where Error 1 is thrown.

  13. modified the milestone: android-v4.1.0 on Mar 18, 2016
  14. jfirebaugh commented on Mar 23, 2016

    @jfirebaugh
    ContributorAuthor

    This continues to be an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Androidbuild

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions