Skip to content

Android nightly failing again #10339

Closed
Closed

Description

@Ms2ger

CC @larsbergstrom

 (view as text)

./mach package -r
 in dir /home/servo/buildbot/slave/android-nightly/build (timeout 1200 secs)
 watching logfiles {}
 argv: ['./mach', 'package', '-r']
 environment:
  ANDROID_NDK=/home/servo/android/ndk/current/
  ANDROID_SDK=/home/servo/android/sdk/current/
  ANDROID_TOOLCHAIN=/home/servo/android/toolchain/current/
  CARGO_HOME=/home/servo/.cargo
  CCACHE=/usr/bin/ccache
  DISPLAY=:0
  HOME=/home/servo
  PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:/home/servo/android/sdk/current/platform-tools:/home/servo/android/toolchain/current/bin
  PWD=/home/servo/buildbot/slave/android-nightly/build
  RUST_BACKTRACE=1
  SERVO_CACHE_DIR=/home/servo/.servo
  SHELL=/bin/bash
  TERM=linux
  UPSTART_INSTANCE=
  UPSTART_JOB=buildbot-slave
 using PTY: False
   Compiling winapi v0.2.5
   Compiling winapi-build v0.1.1
   Compiling kernel32-sys v0.2.1
   Compiling walkdir v0.1.5
   Compiling build-apk v0.0.1 (file:///home/servo/buildbot/slave/android-nightly/build/support/android/build-apk)
     Running `/home/servo/buildbot/slave/android-nightly/build/target/debug/build-apk  -o /home/servo/buildbot/slave/android-nightly/build/target/arm-linux-androideabi/release/servo.apk -t /home/servo/buildbot/slave/android-nightly/build/target/arm-linux-androideabi/release -r /home/servo/buildbot/slave/android-nightly/build`
Copying the file "/home/servo/buildbot/slave/android-nightly/build/target/arm-linux-androideabi/release/libservo.so" to "/home/servo/buildbot/slave/android-nightly/build/support/android/apk/jni/armeabi/libmain.so"
rm -f ./libs/arm64-v8a/lib*.so ./libs/armeabi/lib*.so ./libs/armeabi-v7a/lib*.so ./libs/armeabi-v7a-hard/lib*.so ./libs/mips/lib*.so ./libs/mips64/lib*.so ./libs/x86/lib*.so ./libs/x86_64/lib*.so
rm -f ./libs/arm64-v8a/gdbserver ./libs/armeabi/gdbserver ./libs/armeabi-v7a/gdbserver ./libs/armeabi-v7a-hard/gdbserver ./libs/mips/gdbserver ./libs/mips64/gdbserver ./libs/x86/gdbserver ./libs/x86_64/gdbserver
rm -f ./libs/arm64-v8a/gdb.setup ./libs/armeabi/gdb.setup ./libs/armeabi-v7a/gdb.setup ./libs/armeabi-v7a-hard/gdb.setup ./libs/mips/gdb.setup ./libs/mips64/gdb.setup ./libs/x86/gdb.setup ./libs/x86_64/gdb.setup
[armeabi] Prebuilt       : libmain.so <= jni/armeabi/
cp -f jni/armeabi/libmain.so obj/local/armeabi/libmain.so
[armeabi] Install        : libmain.so => libs/armeabi/libmain.so
install -p ./obj/local/armeabi/libmain.so ./libs/armeabi/libmain.so
/home/servo/android/ndk/r10e/android-ndk-r10e/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-strip --strip-unneeded  ./libs/armeabi/libmain.so
Error: Target id 'android-18' is not valid. Use 'android list targets' to get the target ids.
Error while updating the project with the android command
error: Process didn't exit successfully: `/home/servo/buildbot/slave/android-nightly/build/target/debug/build-apk  -o /home/servo/buildbot/slave/android-nightly/build/target/arm-linux-androideabi/release/servo.apk -t /home/servo/buildbot/slave/android-nightly/build/target/arm-linux-androideabi/release -r /home/servo/buildbot/slave/android-nightly/build` (exit code: 1)
Packaging Android exited with return value 1
program finished with exit code 1
elapsedTime=5.288602

Activity

  1. larsbergstrom commented on Apr 2, 2016

    @larsbergstrom
    Contributor

    Thanks!

    I think this is just a failure to run the android android tool with the proper toolkits. I think we can hopefully just steal this from other folks' salt rules :-)

    CC @edunham @aneeshusa

  2. aneeshusa commented on Apr 2, 2016

    @aneeshusa
    Contributor

    My first guess would be that the menu entries in the output of android list sdk have changed. See https://github.com/servo/saltfs/blob/6e59cb1ed42c005e225c184d5809930b0c2c9906/servo-build-dependencies/android.sls#L50 for reference; if the menu entries have changed, 9 will no longer provide the android-18 target. This might happen if we update the SDK, for example.

    Have there been any changes on the Android builders lately?

  3. aneeshusa commented on Apr 2, 2016

    @aneeshusa
    Contributor

    I just ssh'ed into servo-linux-cross1 and the output of android list sdk indicates that the android-18 target is now 8 in the list, not 9.

    However, this shouldn't matter - the proper SDK should already be installed from whenever we set up the builder.

  4. larsbergstrom commented on Apr 2, 2016

    @larsbergstrom
    Contributor

    Aha! I think that we somewhat-recently upgraded SDK & NDK versions, because I remember having to propagate the changes to the environment variables.

    I think that happened with the old builders (which would already have had the original SDKs installed) and now when we provisioned the new ones, the new bits were not installed.

  5. aneeshusa commented on Apr 2, 2016

    @aneeshusa
    Contributor

    Nope, checking in the platforms subdir shows only android-19, not android-18, so it looks like this is the cause. The fact that the menu entries changed like that without a version bump is worrying!

    I'll put in a PR for a quick fix, but I'll need to rejigger these states to work better long term.

  6. aneeshusa commented on Apr 2, 2016

    @aneeshusa
    Contributor

    You're right, I bumped the SDK version in November. Maybe I don't need to fix the states after all.

    Are these the first Android builds we've run on the new builders? I'm surprised we haven't had any other failures since moving to the cross builders.

  7. larsbergstrom commented on Apr 2, 2016

    @larsbergstrom
    Contributor

    I think that the rest of the Android stuff is somehow working fine (it got the platform). The nightly build has been broken since the move, though, because though the platform is there the platform build tools are not. Those are only used in the android-nightly build - the others just need the headers to link against, etc.

  8. larsbergstrom commented on Apr 2, 2016

    @larsbergstrom
    Contributor

    In fact, I think we only need the NDK for the rest of the Servo android build! It's only when we build the packaging and java library goop that we touch anything from the SDK.

  9. added
    P-android
    on Apr 29, 2016
  10. added a commit that references this issue on May 24, 2016
  11. added a commit that references this issue on May 27, 2016
  12. self-assigned this
    on May 27, 2016
  13. added 2 commits that reference this issue on Jun 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P-android

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions