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.