Error building Android 4.1.2 in OS X 10.9 Maverick

364 views
Skip to first unread message

Eishita Farjana

unread,
Feb 26, 2014, 4:34:18 PM2/26/14
to android-...@googlegroups.com
Hi,

I'm having the following errors while building Android source 4.1.2 in OS X Maverick. I figured out several people have faced this issue but could not find any solution. So, is this a bug? If so, is there any solution? for better understanding, I have attached screenshot of my terminal.

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/exception:81:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:233:29: error: redefinition of 'std::__1::__is_integral<char16_t>'

template <>          struct __is_integral<unsigned short>     : public true_type {};

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:229:29: note: previous definition is here

template <>          struct __is_integral<char16_t>           : public true_type {};

                            ^

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:235:29: error: redefinition of 'std::__1::__is_integral<char32_t>'

template <>          struct __is_integral<unsigned int>       : public true_type {};

                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:230:29: note: previous definition is here

template <>          struct __is_integral<char32_t>           : public true_type {};

                            ^

4 errors generated.

make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/AssetDir.o] Error 1

make: *** Waiting for unfinished jobs....

frameworks/base/libs/androidfw/Asset.cpp:846:46: warning: unused parameter 'wordAligned' [-Wunused-parameter]

const void* _CompressedAsset::getBuffer(bool wordAligned)

                                             ^

1 warning and 4 errors generated.

make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/Asset.o] Error 1

frameworks/base/libs/androidfw/AssetManager.cpp:1062:61: warning: unused parameter 'entryName' [-Wunused-parameter]

    const ZipEntryRO entry, AccessMode mode, const String8& entryName)

                                                            ^

1 warning and 4 errors generated.

make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/AssetManager.o] Error 1

Any sort of help would be much appreciated.

Thanks! 
Screen Shot 2014-02-26 at 3.29.53 PM.png

Nabil Rahiman

unread,
Jun 15, 2014, 3:15:22 AM6/15/14
to android-...@googlegroups.com
Any solution for this problem

Christopher Price

unread,
Jun 19, 2014, 11:36:37 AM6/19/14
to android-...@googlegroups.com
I seriously doubt it. You're talking a generationally newer version of Xcode (and OS X) building against a version of Android that Google is a few months away from no longer certifying.

My advice (assuming you're only using OS X) would be to install VirtualBox and follow the Ubuntu build flow. That should still work, I built 4.1.2 less than a year ago and did so in Ubuntu without incident.

Christopher Price

Raghvendra Singh

unread,
Sep 1, 2014, 5:19:46 AM9/1/14
to android-...@googlegroups.com
Hi,

I am facing same issue, did you found solution to this??

Thanks

Chanukya Gadde

unread,
Sep 9, 2014, 4:40:28 PM9/9/14
to android-...@googlegroups.com

Justin Lee

unread,
Oct 15, 2014, 3:44:16 AM10/15/14
to android-...@googlegroups.com
Hi,

It seems that below comment is not related to this build issue on Mac OS X 10.9.4.
Original problem was typedef redefinition errors are occurred when build ICS on Mac OS.
I also have the same issue when I build my ICS on Mac OS X 10.9.4

Any update or solution for this problem?

Thanks,
Justin
Reply all
Reply to author
Forward
0 new messages