-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
ei: Fix ei_resolve.c compilation for Android #5763
ei: Fix ei_resolve.c compilation for Android #5763
Conversation
CT Test Results 2 files 22 suites 5m 20s ⏱️ Results for commit de1a8e4. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
93c21d8
to
43466ed
Compare
Commits 96e8bea and 8d8ee81 are both suspect, and they are both merged to |
I've just done so, and I get the same error: I guess this is what you were expecting, right? Looking at commit 8d8ee81, it shouldn't have an impact on a cross-build targeting Android. From commit 96e8bea, I would say that the new section starting on L8094 in lib/erl_interface/configure :
seems like a good candidate to explain why I'm getting this error message now. And it seems to be a totally valid error to detect! |
I was expecting a clean |
Maybe I got confused by your suggested tests.
I expect it too, I will test this again, hopefully later today.
What should be the instruction to test this scenario, just to make sure I do it right? |
Ask that guy @JeromeDeBretagne, he pasted the compile error at the top of this PR. That was a joke sprung out of my confusion. We don't prioritize Android and we don't have any regression tests at all on Android. If you keep this PR as-is the fix will only be merged to master for OTP-25.0. But if you rebase the branch on maint and force push it (but keep the PR targeted for master) then the same branch can later also be merged to maint-24 and be released as some OTP-24.3.x version. |
43466ed
to
de1a8e4
Compare
Indeed, I get the same error message on a clean maint branch.
I can confirm this commit does fix the error on the maint branch too.
😆
Sounds good to me 👍
I've understood now what you were suggesting to do : rebase this branch on maint and force push done! |
Released in OTP 24.3.2. |
Issue detected while trying to cross-compile Erlang/OTP 25.0-rc1 :
and indeed gethostbyaddr_r was only introduced in Android 6.0 Marshmallow as documented here in the Android NDK:
https://android.googlesource.com/platform/bionic/+/master/docs/status.md
I'm a bit surprised to face this issue only now though, I've never seen this compilation error when cross-compiling Erlang/OTP 24.x with the same toolchain and I don't see which one of the few recent changes could have triggered this "regression" from the commit history : https://github.com/erlang/otp/commits/master/lib/erl_interface/src/connect/ei_resolve.c
Does anyone have a clue?
Thanks, Jérôme