Compiling lollipop (5.0.1.r1) under Yosemite

1,090 views
Skip to first unread message

Philippe Fouquet

unread,
Dec 8, 2014, 10:06:21 AM12/8/14
to android-...@googlegroups.com
Hi

I try to compile lollipop under Mac OS X but I have some error.

It was art project that it more dificult to compile.

All error are on host darwin gcc, like :
  • option '-Wthread-safety' not supported
  • option '-std=gnu++11' not supported
  • Unknown pseudo-op: .int (in file art/runtime/arch/x86_64.S line 1171, 1172,1173,1174...)
I things that is the host darwin precompiled gcc is too old (4.2.1)

I try too compile with Yosemite gcc but I have some conflict with some header (like <atomic>).

If some body have some idea?

Thanks

Glenn Kasten

unread,
Dec 8, 2014, 10:29:38 AM12/8/14
to android-...@googlegroups.com

Haojie Xu

unread,
Dec 8, 2014, 9:13:48 PM12/8/14
to android-...@googlegroups.com
If you want a newer GCC, there're a few methods.
1. use MacPorts, It's like apt-get on Debian/Ubuntu.
2. Homebrew, similar with MacPorts.
3. access GNU website and get the source code of GCC then compile it.

Philippe Fouquet

unread,
Dec 18, 2014, 10:46:10 AM12/18/14
to android-...@googlegroups.com
hello

I have this error :

host C++: libsigchain_32 <= art/sigchainlib/sigchain.cc

art/sigchainlib/sigchain.cc:21:10: fatal error: 'iostream' file not found

#include <iostream>

         ^

system/core/libnativebridge/native_bridge.cc:19:10: fatal error: 'cstring' file not found

#include <cstring>

         ^

1 error generated.

make: *** [out/host/darwin-x86/obj32/SHARED_LIBRARIES/libsigchain_intermediates/sigchain.o] Error 1

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

1 error generated.

make: *** [out/host/darwin-x86/obj32/SHARED_LIBRARIES/libnativebridge_intermediates/native_bridge.o] Error 1


Somme body could say howto resolve it?


my build :


Mac OS X Yosemite and Xcode 6.1 (I follow the instructions at: http://s.android.com/source/initializing.html)


============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=5.0.1

TARGET_PRODUCT=wing_nck70

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

TARGET_CPU_VARIANT=cortex-a7

TARGET_2ND_ARCH=

TARGET_2ND_ARCH_VARIANT=

TARGET_2ND_CPU_VARIANT=

HOST_ARCH=x86_64

HOST_OS=darwin

HOST_OS_EXTRA=Darwin-14.0.0-x86_64-i386-64bit

HOST_BUILD_TYPE=release

BUILD_ID=LRX22C

OUT_DIR=out

============================================


Thanks

Al Sutton

unread,
Dec 18, 2014, 3:29:14 PM12/18/14
to android-...@googlegroups.com
Please read the section of the page you have linked to which relates to building Lollipop on OS X.
--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

尹峰

unread,
Dec 19, 2014, 4:41:43 AM12/19/14
to android-...@googlegroups.com
hello ,when i build android 5.0 source code in mac Yosemite,i have this error:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/machine/_types.h:34:2: error: #error architecture not supported


 #error architecture not supported


  ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:33:0,


                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/_types.h:27,


                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:64,


                 from bionic/libc/include/stdint.h:32,


                 from bionic/libc/bionic/crtbrand.c:26:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/machine/_types.h:34:2: error: #error architecture not supported


 #error architecture not supported


  ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/_types.h:27:0,


                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:64,


                 from bionic/libc/arch-common/bionic/crtbegin.c:30:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:55:1: error: unknown type name '__int64_t'


 typedef __int64_t __darwin_blkcnt_t; /* total blocks */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:56:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_blksize_t; /* preferred block size */


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/_types.h:27:0,


                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:64,


                 from bionic/libc/include/stdint.h:32,


                 from bionic/libc/bionic/crtbrand.c:26:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:55:1: error: unknown type name '__int64_t'


 typedef __int64_t __darwin_blkcnt_t; /* total blocks */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:57:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_dev_t;  /* dev_t */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:56:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_blksize_t; /* preferred block size */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:60:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_gid_t;  /* [???] process and group IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:57:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_dev_t;  /* dev_t */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:61:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_id_t;  /* [XSI] pid_t, uid_t, or gid_t*/


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:60:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_gid_t;  /* [???] process and group IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:62:1: error: unknown type name '__uint64_t'


 typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:61:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_id_t;  /* [XSI] pid_t, uid_t, or gid_t*/


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:66:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_ino_t;  /* [???] Used for inodes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:62:1: error: unknown type name '__uint64_t'


 typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:66:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_ino_t;  /* [???] Used for inodes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:68:1: error: unknown type name '__darwin_natural_t'


 typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:68:1: error: unknown type name '__darwin_natural_t'


 typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:70:1: error: unknown type name '__uint16_t'


 typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:70:1: error: unknown type name '__uint16_t'


 typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:71:1: error: unknown type name '__int64_t'


 typedef __int64_t __darwin_off_t;  /* [???] Used for file sizes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:71:1: error: unknown type name '__int64_t'


 typedef __int64_t __darwin_off_t;  /* [???] Used for file sizes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:72:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_pid_t;  /* [???] process and group IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:72:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_pid_t;  /* [???] process and group IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:73:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_sigset_t; /* [???] signal set */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:73:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_sigset_t; /* [???] signal set */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:74:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:74:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:75:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_uid_t;  /* [???] user IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:75:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_uid_t;  /* [???] user IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:76:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:76:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:33:0,


                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/_types.h:27,


                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:64,


                 from bionic/libc/arch-common/bionic/atexit.h:29,


                 from bionic/libc/arch-common/bionic/crtbegin_so.c:57:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/machine/_types.h:34:2: error: #error architecture not supported


 #error architecture not supported


  ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/_types.h:27:0,


                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:64,


                 from bionic/libc/arch-common/bionic/atexit.h:29,


                 from bionic/libc/arch-common/bionic/crtbegin_so.c:57:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:55:1: error: unknown type name '__int64_t'


 typedef __int64_t __darwin_blkcnt_t; /* total blocks */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:56:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_blksize_t; /* preferred block size */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:57:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_dev_t;  /* dev_t */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:60:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_gid_t;  /* [???] process and group IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:61:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_id_t;  /* [XSI] pid_t, uid_t, or gid_t*/


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:62:1: error: unknown type name '__uint64_t'


 typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:66:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_ino_t;  /* [???] Used for inodes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:68:1: error: unknown type name '__darwin_natural_t'


 typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:70:1: error: unknown type name '__uint16_t'


 typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:71:1: error: unknown type name '__int64_t'


 typedef __int64_t __darwin_off_t;  /* [???] Used for file sizes */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:72:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_pid_t;  /* [???] process and group IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:73:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_sigset_t; /* [???] signal set */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:74:1: error: unknown type name '__int32_t'


 typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:75:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_uid_t;  /* [???] user IDs */


 ^


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types.h:76:1: error: unknown type name '__uint32_t'


 typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:69:0,


                 from bionic/libc/arch-common/bionic/crtbegin.c:30:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_ptrdiff_t.h:31:1: error: unknown type name '__darwin_ptrdiff_t'


 typedef __darwin_ptrdiff_t ptrdiff_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:69:0,


                 from bionic/libc/include/stdint.h:32,


                 from bionic/libc/bionic/crtbrand.c:26:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_ptrdiff_t.h:31:1: error: unknown type name '__darwin_ptrdiff_t'


 typedef __daIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:69:0,


                 from bionic/libc/arch-common/bionic/atexit.h:29,


                 from bionic/libc/arch-common/bionic/crtbegin_so.c:57:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_ptrdiff_t.h:31:1: error: unknown type name '__darwin_ptrdiff_t'


 typedef __darwin_ptrdiff_t ptrdiff_t;


 ^


rwin_ptrdiff_t ptrdiff_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:77:0,


                 from bionic/libc/arch-common/bionic/crtbegin.c:30:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_size_t.h:30:1: error: unknown type name '__darwin_size_t'


 typedef __darwin_size_t        size_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:77:0,


                 from bionic/libc/arch-common/bionic/atexit.h:29,


                 from bionic/libc/arch-common/bionic/crtbegin_so.c:57:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_size_t.h:30:1: error: unknown type name '__darwin_size_t'


 typedef __darwin_size_t        size_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:77:0,


                 from bionic/libc/include/stdint.h:32,


                 from bionic/libc/bionic/crtbrand.c:26:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_size_t.h:30:1: error: unknown type name '__darwin_size_t'


 typedef __darwin_size_t        size_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:79:0,


                 from bionic/libc/arch-common/bionic/crtbegin.c:30:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_wchar_t.h:33:1: error: unknown type name '__darwin_wchar_t'


 typedef __darwin_wchar_t wchar_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:79:0,


                 from bionic/libc/include/stdint.h:32,


                 from bionic/libc/bionic/crtbrand.c:26:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_wchar_t.h:33:1: error: unknown type name '__darwin_wchar_t'


 typedef __darwin_wchar_t wchar_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:79:0,


                 from bionic/libc/arch-common/bionic/atexit.h:29,


                 from bionic/libc/arch-common/bionic/crtbegin_so.c:57:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_wchar_t.h:33:1: error: unknown type name '__darwin_wchar_t'


 typedef __darwin_wchar_t wchar_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:82:0,


                 from bionic/libc/arch-common/bionic/crtbegin.c:30:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_wint_t.h:31:1: error: unknown type name '__darwin_wint_t'


 typedef __darwin_wint_t wint_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:82:0,


                 from bionic/libc/include/stdint.h:32,


                 from bionic/libc/bionic/crtbrand.c:26:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_wint_t.h:31:1: error: unknown type name '__darwin_wint_t'


 typedef __darwin_wint_t wint_t;


 ^


In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/stddef.h:82:0,


                 from bionic/libc/arch-common/bionic/atexit.h:29,


                 from bionic/libc/arch-common/bionic/crtbegin_so.c:57:


/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/sys/_types/_wint_t.h:31:1: error: unknown type name '__darwin_wint_t'


 typedef __darwin_wint_t wint_t;


 ^


make: *** [out/target/product/flo/obj/lib/crtbrand.s] Error 1


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


make: *** [out/target/product/flo/obj/lib/crtbegin_so.o] Error 1


make: *** [out/target/product/flo/obj/lib/crtbegin_dynamic1.o] Error 1



Al Sutton

unread,
Dec 19, 2014, 11:52:09 AM12/19/14
to android-...@googlegroups.com
Please read http://source.android.com/source/initializing.html#branch-50x-and-all-earlier-branches for details of the configuration you need to build Android 5.0 on a Mac.

Al.
-- 
Al Sutton
Funky Android Ltd.
(funkyandroid.com)

The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, its associates, or its subsidiaries. 


Hakan ATAÇ

unread,
Apr 1, 2015, 10:27:01 AM4/1/15
to android-...@googlegroups.com
I got the same problem and have about same specs. I followed all the instructions from: http://source.android.com/source/initializing.html

Also checked everything about building Lollipop on OSX.. Is there a solution for this?

Ashish Agre

unread,
Apr 3, 2015, 10:42:53 AM4/3/15
to android-...@googlegroups.com
Hi,
 I am also facing this issue. Not resolved yet.
System Yosemite i5 4GB
xcode command line tool 6.2
JDK 7
and all other things that were mentioned in developer portal.

Scott Orlyck

unread,
Apr 6, 2015, 8:35:27 PM4/6/15
to android-...@googlegroups.com
I was able to successfully build AOSP 5.1 on Yosemite following these instructions. The problem is XCode 6.1, AOSP needs build tools from version 5.1.1

https://medium.com/@raminmahmoodi/build-android-5-0-lollipop-on-osx-10-10-yosemite-441bd00ee77a

Hakan ATAÇ

unread,
Apr 7, 2015, 11:47:33 AM4/7/15
to android-...@googlegroups.com
Do we need build tools from an older version or only OS X 10.8 SDK?

Zhen Xie

unread,
May 9, 2015, 4:57:52 PM5/9/15
to android-...@googlegroups.com
Were you able to flash the compiled kernel to a device? My case is: I followed the instruction and had no error in the compiling process, but after flashing it to the Nexus 5 (hammerhead), it always stucked on the Google Logo.

jj zhong

unread,
Jun 19, 2015, 5:53:27 PM6/19/15
to android-...@googlegroups.com
  • Install Xcode from the Apple developer site. We recommend version 3.1.4 or newer (e.g., gcc 4.2). Version 4.x could cause difficulties. If you are not already registered as an Apple developer, you will have to create an Apple ID in order to download.

jj zhong

unread,
Jun 19, 2015, 7:57:52 PM6/19/15
to android-...@googlegroups.com
and if it uses clang 

在 2015年6月20日星期六 UTC+8上午5:53:27,jj zhong写道:
Reply all
Reply to author
Forward
0 new messages