New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DO-NOT-MERGE: debug android CI #1225
Conversation
73e56c5
to
88600f6
Compare
In android-build-wrapper.sh: - Always create the folder 'licenses' - Export 'SDKMANAGER_OPTS' Fixes a recent failure of the Android CI build where 'licenses/android-sdk-license' was no found after the 'yes | ...' call. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
88600f6
to
588457f
Compare
@@ -77,6 +77,9 @@ if [ ! -d $ANDROID_SDK ] ; then | |||
mkdir $ANDROID_SDK | |||
pushd $ANDROID_SDK | |||
unzip -q ../$SDK_TOOLS | |||
mkdir -p licenses | |||
# use this fix from https://stackoverflow.com/a/47150411 or sdkmanager throws Java exceptions | |||
export SDKMANAGER_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee' | |||
yes | tools/bin/sdkmanager --licenses > /dev/null 2>&1 || echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > licenses/android-sdk-license |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the weird thing is that this last line after the '||' already tries to manually force a license. I assume that key is no longer valid or something?
If your solution works more reliably, even better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think the export
made the call before ||
work.
Build failed on Android - but with weird errors:
Did we change SDKs or something while I wasn't paying attention? |
but then it fails with:
sorry, didn't see the above comment earlier:
that's a good question. i don't think we did and the breakage started happening yesterday,. |
possibly relevant comment:
|
0e4b9ab
to
6dad4d4
Compare
Attempt to fix "undefined reference to 'stdout'" by adding a __ANDROID_API__ definition equal to the Android API version for the toolchain. ref: android/ndk#272 (comment) Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
6dad4d4
to
829de10
Compare
so. i've tried to fix the
even with:
tried to fix that with explicitly passing also, i'm seeing:
which will probably fail at link time for libgit. no idea what what changed in the CI but it appears to not be on our side and is a PITA to deal with. |
Yes, debugging these builds on Travis is indeed a PITA. |
This build passed a couple of days ago, I just restarted it: https://travis-ci.org/Subsurface-divelog/subsurface/jobs/372257556 |
This is massively weird. |
80ef2ea
to
1d7c19f
Compare
i've added this to the yaml for
it's not present even after the yaml additions. then i tried a:
and it says:
as if |
doesn't work there for the android builds. They are happening inside a container to get a sane build enviorment. You need to add it in scripts/android/before_install.sh instead. Yes, its sort of odd, but it was the least 4kery to get it to work. If the whole debacle isn't fixed by someone else I'll take a stab at it tonight. |
7f51de7
to
fcfaac8
Compare
For some reason the Android CI build started failing with: makedepend: not found when building OpenSSL. Try to 'apt-get install' it in before_install.sh via xutils-dev. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
fcfaac8
to
d031bb9
Compare
got but had this error: found this comment online: well this sucks...but before i switch back to GCC i'm going to try to hack the makefiles to make them work for clang. |
9e7a336
to
e5b26f3
Compare
OK, at least I wasn't completely lunatic when I remembered that one of our components didn't compile with clang... |
the latest error is:
i will remove some of the |
89b3dfb
to
97ba5b5
Compare
OpenSSL fails to build after 'make depend'. 1) The -mandroid flag is not supported on Clang. Remove it from the Makefile. 2) Some .S files throw: error: invalid instruction Remove the *_ASM defines from the Makefile. 3) add no-asm to the 'config' line in 'env' Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
97ba5b5
to
db2ca2c
Compare
alright, i'm going to have to put this to rest for today. https://api.travis-ci.org/v3/job/373075755/log.txt the good: the bad:
the
this one is weird given the previous action in the note: i was seeing these error messages with the old NDK and with GCC so it's not a Clang only issue. it seems as if every other library has build issues. the |
Given that everything was building fine with the OLD 14b until just a couple of days ago - I'm tempted to just upload that old 14b from my local copy. Not the right long term solution, but this is just a nightmare. @glance- any insights from you would be highly appreciated. |
ok, looks like @glance- doesn't have the time to look into this right now (?) |
if the old archive works, great. 👍 debugging the CI in the case of such a bad toolchain is very time consuming and i wish there was a way to "pause" a Travis VM and SSH into it or something in those lines. both the above issues seem solvable with extra defines and includes but i don't know what else will break next in the script. could give it another try next week. |
Took a step back and compared again what's different between a working build and a failing build. |
thanks for finding the actual cause! it's interesting how Bionic broke this that bad... |
Describe the pull request:
Pull request long description:
In android-build-wrapper.sh:
Fixes a recent failure of the Android CI build
where 'licenses/android-sdk-license' was no found
after the 'yes | ...' call.
i don't really know what's going on here. found a solution online and tried the CI multiple times until it worked.
related thread:
https://stackoverflow.com/a/47150411
Changes made:
Related issues:
Additional information:
Release note:
Documentation change:
Mentions:
@glance- @dirkhh