[Android-tools-devel] Asking for help to update android-platform-art

Roger Shimizu rosh at debian.org
Tue Apr 8 02:26:59 BST 2025


Dear Hans-Christoph and Jochen,

I write to you since you previously helped src:android-platform-art,
and now I have a compilation issue.
It'd be appreciated if you could help.

I'm trying to update android-platform-art to latest, and found it's
hard on 16 beta, so I choose a version with less issues: 15.0.0+r5
Now it *almost* can be built, except one issue.

I pushed the commits to salsa already, so you can check:
- upstream: https://salsa.debian.org/android-tools-team/android-platform-art
-b upstream (tag: upstream/15.0.0+r5)
- branch: debian/exp

With "compiler/optimizing/register_allocator_linear_scan.cc" in
d/libart.mk, there's build error:

compiler/optimizing/register_allocator_linear_scan.cc:930:12: error:
no viable conversion from returned value of type
'__normal_iterator<[...]
, vector<[...], art::ScopedArenaAllocatorAdapter<art::LiveInterval
*>>>' to function return type '__normal_iterator<[...], vector<[...],
art::
ArenaAllocatorAdapter<art::LiveInterval *>>>'
  930 |     return intervals->erase(pos, pos + 2);
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If removing "compiler/optimizing/register_allocator_linear_scan.cc"
from d/libart.mk, there's linking error:

ld.lld: error: undefined hidden symbol:
art::RegisterAllocatorLinearScan::RegisterAllocatorLinearScan(art::ScopedArenaAllocator*,
art::CodeGenerator*, art::SsaLivenessAnalysis const&)
>>> referenced by register_allocator.cc:70 (compiler/optimizing/register_allocator.cc:70)
>>>               compiler/optimizing/register_allocator.o:(art::RegisterAllocator::Create(art::ScopedArenaAllocator*, art::CodeGenerator*, art::SsaLivenessAnalysis const&))

I guess it's the last issue for d/libart.mk, but might be some other
issues for other d/*.mk.

the orig tarball can be found here:
- https://people.debian.org/~rosh/android/

Let me know if you have any idea to fix this. Thank you!

Cheers,
Roger



More information about the Android-tools-devel mailing list