Building Android-M on MAC-OSX for hammerhead (Nexus5)

217 views
Skip to first unread message

Subodh Nijsure

unread,
Sep 24, 2015, 4:22:14 PM9/24/15
to Android Building
I have so far done following steps to setup development environment on my Mac OSX laptop.

1. repo init -u https://android.googlesource.com/platform/manifest -b android-m-preview
2. repo sync
3. lunch - select option 19 which is ( aosp_hammerhead-userdebug )

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.51
TARGET_PRODUCT=aosp_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-14.5.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=AOSP
OUT_DIR=out


But when I do make I am getting following errors, can someone point what I might have done wrong in trying to compile AOSP images for Nexus5, with Android-M preview branch?

host C: libc++abi <= external/libcxxabi/src/Unwind/UnwindLevel1.c
host StaticLib: libc++abi (out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/libc++abi.a)
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/libc++abi.a(cxa_thread_atexit.o) has no symbols
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/libc++abi.a(cxa_unexpected.o) has no symbols
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/libc++abi.a(Unwind-EHABI.o) has no symbols
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/libc++abi.a(Unwind-sjlj.o) has no symbols
preparing StaticLib: libc++_static [including out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/libc++abi.a]
host StaticLib: libc++_static (out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/libc++_static.a)
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/libc++_static.a(cxa_thread_atexit.o) has no symbols
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/libc++_static.a(cxa_unexpected.o) has no symbols
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/libc++_static.a(Unwind-EHABI.o) has no symbols
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/libc++_static.a(Unwind-sjlj.o) has no symbols
/opt/local/bin/ranlib: file: out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/libc++_static.a(typeinfo.o) has no symbols
host SharedLib: libc++ (out/host/darwin-x86/obj/lib/libc++.dylib)
ld: library not found for -lc
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:51: recipe for target 'out/host/darwin-x86/obj/lib/libc++.dylib' failed
make: *** [out/host/darwin-x86/obj/lib/libc++.dylib] Error 1

\e[0;31m#### make failed to build some targets (03:37 (mm:ss)) ####\e[00m

-subodh

PeterK

unread,
Sep 28, 2015, 9:56:57 AM9/28/15
to Android Building
See here:


The preview is only partial source and not fully buildable.
Reply all
Reply to author
Forward
0 new messages