-
Notifications
You must be signed in to change notification settings - Fork 60
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
Upgrade to platform-tools-34.0.4 #121
Conversation
This commit may introduce that issue https://android.googlesource.com/platform/packages/modules/adb.git/+/78d34d8f714f9c78b6b628417cfb690d8fba3900 |
Thanks for creating the PR. As of the moment compilation failure - the documentation says So the file need to be patched and the required header need to be added at the top of the file. |
I have tried to include |
Strange, on openSUSE Tumbleweed it compiles without problems with clang (github actions and local build). |
weirdly enough this PR build fine at my Arch Linux machine. I am using
And my local |
You have set the compiler also, like |
Thank you @Biswa96 now I see it. It looks like it comes from this piece of code: LOG(DEBUG) << dump_fde(fde) << " got events " << std::hex << std::showbase << events;
auto& fde_event = fde_events.emplace_back(fde, events);
event_map[fde] = &fde_event;
fde->last_active = post_poll;
It looks like another C++ quirk. |
Tumbleweed uses clang 16, so yes, looks like a problem with clang < 16. |
I have asked about this issue in upstream https://android-review.googlesource.com/c/platform/packages/modules/adb/+/2592785 |
That commit uses a very recent feature from C++20 (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0960r3.html). We saw some incompatibilities in the Android tree with even slightly older versions of clang than we currently use. I've uploaded https://android-review.googlesource.com/c/platform/packages/modules/adb/+/2703715 to add an explicit constructor, which should fix your build. |
Thank you for the quick response. I have verified that the patch fixes compilation with clang 15. |
Thank you for your great work! |
@anatol how do you get the notification for the platform-tools update? |
No description provided.