Skip to content
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

factor out references to the android SDK target into an env variable #8519

Closed
wants to merge 1 commit into from

Conversation

@ajnirp
Copy link
Contributor

ajnirp commented Nov 13, 2015

fixes #8348

Review on Reviewable

@@ -182,6 +182,9 @@ def package(self, params, release=False, dev=False, debug=False, debugger=None):
target_dir = path.join(self.get_target_dir(), "arm-linux-androideabi")
dev_flag = ""

# Set the Android SDK version target
env['ANDROID_TARGET'] = 'android-18'

This comment has been minimized.

@Manishearth

Manishearth Nov 13, 2015

Member

Should we make this a part of .servobuild instead?

@Manishearth
Copy link
Member

Manishearth commented Nov 13, 2015

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 13, 2015

@bors-servo r+

I think we can factor this out into a setting or argument later. If we end up producing builds for multiple android target versions (as Fennec does today!) we'll need to be able to set it as an argument on the build machines, which don't use .servobuild today.

@bors-servo
Copy link
Contributor

bors-servo commented Nov 13, 2015

📌 Commit a9929d6 has been approved by larsbergstrom

@bors-servo
Copy link
Contributor

bors-servo commented Nov 13, 2015

Testing commit a9929d6 with merge ef1c80c...

bors-servo added a commit that referenced this pull request Nov 13, 2015
factor out references to the android SDK target into an env variable

for #8348

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8519)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 13, 2015

💔 Test failed - android

@jdm
Copy link
Member

jdm commented Nov 13, 2015

make[2]: Entering directory `/home/servo/buildbot/slave/android/build/support/android/openssl-1.0.1k/crypto'
In file included from cryptlib.c:117:0:
cryptlib.h:62:20: fatal error: stdlib.h: No such file or directory
 #include <stdlib.h>
                    ^
compilation terminated.
mem.c:59:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
                   ^
compilation terminated.
mem_clr.c:59:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
mem_dbg.c:112:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
                   ^
compilation terminated.
In file included from cversion.c:59:0:
cryptlib.h:62:20: fatal error: stdlib.h: No such file or directory
 #include <stdlib.h>
                    ^
compilation terminated.
In file included from ex_data.c:141:0:
cryptlib.h:62:20: fatal error: stdlib.h: No such file or directory
 #include <stdlib.h>
                    ^
compilation terminated.
cpt_err.c:61:19: fatal error: stdio.h: No such file or directory
 #include <stdio.h>
                   ^
compilation terminated.
In file included from uid.c:56:0:
../include/openssl/crypto.h:120:20: fatal error: stdlib.h: No such file or directory
 #include <stdlib.h>
                    ^
compilation terminated.
o_time.c:63:20: fatal error: string.h: No such file or directory
 #include <string.h>
                    ^
compilation terminated.
o_str.c:59:19: fatal error: ctype.h: No such file or directory
 #include <ctype.h>
                   ^
compilation terminated.
o_dir.c:59:19: fatal error: errno.h: No such file or directory
 #include <errno.h>
                   ^
compilation terminated.
In file included from o_fips.c:58:0:
cryptlib.h:62:20: fatal error: stdlib.h: No such file or directory
 #include <stdlib.h>
                    ^
compilation terminated.
In file included from o_init.c:55:0:
../e_os.h:451:30: fatal error: unistd.h: No such file or directory
 #      include OPENSSL_UNISTD
                              ^
compilation terminated.
make[2]: *** [depend] Error 1
make[2]: Leaving directory `/home/servo/buildbot/slave/android/build/support/android/openssl-1.0.1k/crypto'
make[1]: *** [depend] Error 1
make[1]: Leaving directory `/home/servo/buildbot/slave/android/build/support/android/openssl-1.0.1k'
make[1]: Entering directory `/home/servo/buildbot/slave/android/build/support/android/openssl-1.0.1k'
making all in crypto...
make[2]: Entering directory `/home/servo/buildbot/slave/android/build/support/android/openssl-1.0.1k/crypto'
arm-linux-androideabi-gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -march=armv7-a -mandroid -I/home/servo/android-ndk-r10c//platforms//arch-arm/usr/include -B/home/servo/android-ndk-r10c//platforms//arch-arm/usr/lib -O3 -fomit-frame-pointer -Wall -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DAES_ASM -DGHASH_ASM   -c -o cryptlib.o cryptlib.c
In file included from cryptlib.c:117:0:
cryptlib.h:62:20: fatal error: stdlib.h: No such file or directory
 #include <stdlib.h>
                    ^
compilation terminated.
make[2]: *** [cryptlib.o] Error 1
make[2]: Leaving directory `/home/servo/buildbot/slave/android/build/support/android/openssl-1.0.1k/crypto'
make[1]: *** [build_crypto] Error 1
make[1]: Leaving directory `/home/servo/buildbot/slave/android/build/support/android/openssl-1.0.1k'
make: *** [openssl-1.0.1k/libssl.so] Error 2
@ajnirp
Copy link
Contributor Author

ajnirp commented Nov 16, 2015

@jdm I'm unable to repro this. How do I do so?

@jdm
Copy link
Member

jdm commented Nov 16, 2015

Maybe @larsbergstrom has an idea?

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 16, 2015

I will try this locally and see if I can repro it! Sorry for the delay.

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 16, 2015

Very strange! ./mach build --android -d && ./mach package -d worked for me, too. I'll have to try it on the builder.

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 17, 2015

This does not repro on the builder, either, with this branch and an identical environment. I'd like to give this a retry, in case it's something related to our often-flaky OpenSSL build process (we download and extract a tarball, and it frequently causes issues).

@bors-servo retry

bors-servo added a commit that referenced this pull request Nov 17, 2015
factor out references to the android SDK target into an env variable

for #8348

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8519)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 17, 2015

Testing commit a9929d6 with merge 9c0951d...

@bors-servo
Copy link
Contributor

bors-servo commented Nov 17, 2015

💔 Test failed - android

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 17, 2015

Well, at least it's reproducible! I'll try to repro harder :-)

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 17, 2015

Ha! Managed to repro it. Need to git clean -fdx because the problem is that if you've already d/l'd and built openssl, even a ./mach clean won't get rid of it. The directory is support/android/openssl-1.0.1k.

Let me know if you'd like me to help with tracking down the issue, and sorry it took me so long to figure out how to repro! I totally forgot that we build openssl in-tree. I should open issues for us to move our in-tree builds to the target directory...

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Nov 25, 2015

@wenderen Do you need any assistance with this PR?

@jdm
Copy link
Member

jdm commented Feb 26, 2016

Closing due to lack of updates.

@jdm jdm closed this Feb 26, 2016
bors-servo added a commit that referenced this pull request May 20, 2016
Reduce 'android-18' duplication by putting $ANDROID_TARGET into env variable

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [x] These changes fix #8348

Either:
- [X] These changes do not require tests because ~~I'm lazy~~ it's a configuration change, and asserting default values is usually tedious and not very helpful

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

---

Allegedly, this broke the build [back in the day](#8519).
Going to see if it's a piece of cake to land now

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11278)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request May 20, 2016
Reduce 'android-18' duplication by putting it in $ANDROID_TARGET env variable

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [x] These changes fix #8348

Either:
- [X] These changes do not require tests because ~~I'm lazy~~ it's a configuration change, and asserting default values is usually tedious and not very helpful

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

---

Allegedly, this broke the build [back in the day](#8519).
Going to see if it's a piece of cake to land now

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11278)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request May 24, 2016
Reduce 'android-18' duplication by putting it in $ANDROID_TARGET env variable

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [x] These changes fix #8348

Either:
- [X] These changes do not require tests because ~~I'm lazy~~ it's a configuration change, and asserting default values is usually tedious and not very helpful

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

---

Allegedly, this broke the build [back in the day](#8519).
Going to see if it's a piece of cake to land now

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11278)
<!-- Reviewable:end -->
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 1, 2019
…n $ANDROID_TARGET env variable (from mitchhentges:8348-reduce-duplication); r=aneeshusa

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [x] These changes fix #8348

Either:
- [X] These changes do not require tests because ~~I'm lazy~~ it's a configuration change, and asserting default values is usually tedious and not very helpful

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

---

Allegedly, this broke the build [back in the day](servo/servo#8519).
Going to see if it's a piece of cake to land now

Source-Repo: https://github.com/servo/servo
Source-Revision: ea38ccfdfe12c64d41ff460f358e21cafead8414

UltraBlame original commit: a6e87c598f895de38888f2ae1c4ea298abfca885
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 1, 2019
…n $ANDROID_TARGET env variable (from mitchhentges:8348-reduce-duplication); r=aneeshusa

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [x] These changes fix #8348

Either:
- [X] These changes do not require tests because ~~I'm lazy~~ it's a configuration change, and asserting default values is usually tedious and not very helpful

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

---

Allegedly, this broke the build [back in the day](servo/servo#8519).
Going to see if it's a piece of cake to land now

Source-Repo: https://github.com/servo/servo
Source-Revision: ea38ccfdfe12c64d41ff460f358e21cafead8414

UltraBlame original commit: a6e87c598f895de38888f2ae1c4ea298abfca885
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 1, 2019
…n $ANDROID_TARGET env variable (from mitchhentges:8348-reduce-duplication); r=aneeshusa

Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data:
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy --faster` does not report any errors
- [x] These changes fix #8348

Either:
- [X] These changes do not require tests because ~~I'm lazy~~ it's a configuration change, and asserting default values is usually tedious and not very helpful

Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process.

---

Allegedly, this broke the build [back in the day](servo/servo#8519).
Going to see if it's a piece of cake to land now

Source-Repo: https://github.com/servo/servo
Source-Revision: ea38ccfdfe12c64d41ff460f358e21cafead8414

UltraBlame original commit: a6e87c598f895de38888f2ae1c4ea298abfca885
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants
You can’t perform that action at this time.