i want to build audioserver (/frameworks/av/media/audioserver) to 64-bit in android ,and it can't startup

595 views
Skip to first unread message

Andrew Chen

unread,
Jan 23, 2019, 9:14:25 PM1/23/19
to android-porting

I want to build audioserver(/frameworks/av/media/audioserver) to 64-bit, and refer to the instructions in Android.mk (/frameworks/av/media/audioserver/Android.mk)


I add AUDIOSERVER_MULTILIB :=64 in device.mk, but it can't startup,  check the log and find the following error. 

01-20 09:44:31.637 2581 2581 F linker : CANNOT LINK EXECUTABLE "/system/bin/audioserver": unsupported ELF TLS DT entry in "/system/lib64/libaudioflinger.so"


Also, use FILE command to check if it's 64 bit:


#audioserver

console:/system/bin # file audioserver audioserver: ELF shared object, 64-bit LSB arm64, dynamic (/system/bin/linker64), for Android 28, BuildID=01599, stripped


#.so

console:/system/lib64 # file libaudioflinger.so libaudioflinger.so: ELF shared object, 64-bit LSB arm64, for Android 28, BuildID=fd41f, stripped


in /frameworks/av/media/audioserver/Android.mk

# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
# the LOCAL_MULTILIB for all audioserver exclusive libraries.
# This is relevant for 64 bit architectures where either or both
# 32 and 64 bit libraries may be built.
#
# AUDIOSERVER_MULTILIB may be set as follows:
#   32      to build 32 bit audioserver libraries and 32 bit audioserver.
#   64      to build 64 bit audioserver libraries and 64 bit audioserver.
#   both    to build both 32 bit and 64 bit libraries,
#           and use primary target architecture (32 or 64) for audioserver.
#   first   to build libraries and audioserver for the primary target architecture only.
#   <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.


it should be work normally when specifying AUDIOSERVER_MULTILIB := 64

Glenn Kasten

unread,
Jan 25, 2019, 10:55:14 AM1/25/19
to android-porting
As of now, the AOSP release of Android does not yet officially support 64-bit audioserver.
We are considering adding 64-bit option for audioserver in a future release,
but I can't give you a schedule of when that might happen.
Even then, it may be limited to platforms that are capable of supporting it
(for example due to dependencies on various libraries etc.).

Sebastian Hölzer

unread,
Oct 21, 2019, 12:51:19 PM10/21/19
to android-porting
Did you port the audioserver to 64 bit by now?
Do you know what dependency is stopping the audioserver to run with 64 bit?
Reply all
Reply to author
Forward
0 new messages