Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Android builds are failing on servo-linux-cross3 #661

Closed

Description

@aneeshusa

We've tried re-highstating servo-linux-cross3; jury is still out on the last highstate, but previous attempts have not fixed the problem.

I'm not well versed with Android, but I have a new idea about what might be going wrong:

Is it feasible that ./mach build --android --dev is failing due to getting the new r25.2.3 SDK on -cross3, while working OK with the r24.4.1 SDK on -cross1 and -cross2?

cc @larsbergstrom @MortimerGoro

Activity

  1. added 3 commits that reference this issue on May 8, 2017
  2. aneeshusa commented on May 8, 2017

    @aneeshusa
    ContributorAuthor

    OK, reproduced the failure on servo-linux-cross2 with the above test PR (see http://build.servo.org/builders/android/builds/6786), SDK 25.2.3 breaks ./mach build --android --dev.

  3. MortimerGoro commented on May 8, 2017

    @MortimerGoro
    Contributor

    This line in blurdroid dependency is the one causing the problem:

    https://github.com/szeged/blurdroid/blob/master/build.rs#L64

    The problem is that when SDK 25.2.3 is enabled, only android-25 platform is installed. When r24.4.1 is enabled only android-18 platform is installled. Blurdroid dependency has android-18 path hardcoded...

    Possible solutions:

    • Add an array of platforms to saltfs instead of using a unique android-platform
    • Fix hardcoded path in blurdroid dependency
  4. aneeshusa commented on May 8, 2017

    @aneeshusa
    ContributorAuthor

    Making platforms into an array in saltfs is a fairly easy change. However, IMO it makes more sense to update blurdroid, then send a servo/servo PR with that change (and also fixing buildbot_steps.yml to pass the ANDROID_SDK var for ./mach build) for a few reasons:

    Also, I just noticed we should update the servobuild.example file as well at some point.

  5. aneeshusa commented on May 8, 2017

    @aneeshusa
    ContributorAuthor

    It might also make sense to use an environment variable for the platform version in blurdroid, and set that from buildbot_steps.yml / saltfs.

  6. MortimerGoro commented on May 8, 2017

    @MortimerGoro
    Contributor

    Yes, good reasons to update blurdroid.

    I'll do the PR to blurdroid, it's a easy change too.

  7. added a commit that references this issue on May 11, 2017
  8. aneeshusa commented on May 11, 2017

    @aneeshusa
    ContributorAuthor

    Thanks for the PRs @MortimerGoro! I just grepped servo/servo and I still see android-18 in a few places and saw it used in the build log for servo/servo#16812, so I think we need to update this in more places if you want to take a look. I'm going to run a force build on cross3 to check in the meantime.

  9. MortimerGoro commented on May 11, 2017

    @MortimerGoro
    Contributor

    @aneeshusa the android-18 in the log are related to Android NDK (C++) which is a different SDK (it has all the platforms included). I think that there aren't more dependencies in Servo that use Android SDK (java). So the cross3 build should work

  10. aneeshusa commented on May 11, 2017

    @aneeshusa
    ContributorAuthor

    I didn't know that about SDK vs. NDK, thanks for the explanation. Indeed, the force build succeeded: http://build.servo.org/builders/android/builds/6858

    I'm going to roll out #644 to cross2 and cross1 now, since this appears to be working. Closing this issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions