host C++: validatekeymaps <= frameworks/base/tools/validatekeymaps/Main.cpp
In file included from frameworks/base/tools/validatekeymaps/Main.cpp:17:
In file included from frameworks/native/include/input/KeyCharacterMap.h:26:
In file included from frameworks/native/include/input/Input.h:25:
system/core/include/utils/Vector.h:20:10: fatal error: 'new' file not found
#include <new>
^
1 error generated.
make: *** [out/host/darwin-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1
\e[0;31m#### make failed to build some targets (01:43 (mm:ss)) ####\e[00m
Anybody has any idea, how to solve this?
project build/
diff --git a/build/core/combo/HOST_darwin-x86.mk b/build/core/combo/HOST_darwin-x86.mk
index 7ea0099..7fa48ff 100644
--- a/build/core/combo/HOST_darwin-x86.mk
+++ b/build/core/combo/HOST_darwin-x86.mk
@@ -43,6 +43,7 @@ $(combo_2nd_arch_prefix)HOST_TOOLCHAIN_FOR_CLANG := $($(combo_2nd_arch_prefix)HO
$(combo_2nd_arch_prefix)HOST_AR := $(AR)
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version) -DMACOSX_DEPLOYMENT_TARGET=$(mac_sdk_version)
+$(combo_2nd_arch_prefix)HOST_GLOBAL_CPPFLAGS += -isystem $(mac_sdk_path)/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
$(combo_2nd_arch_prefix)HOST_GLOBAL_LDFLAGS += -isysroot $(mac_sdk_root) -Wl,-syslibroot,$(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
$(combo_2nd_arch_prefix)HOST_GLOBAL_CFLAGS += -fPIC -funwind-tables
diff --git a/build/core/combo/HOST_darwin-x86_64.mk b/build/core/combo/HOST_darwin-x86_64.mk
index ae06d59..c06933d 100644
--- a/build/core/combo/HOST_darwin-x86_64.mk
+++ b/build/core/combo/HOST_darwin-x86_64.mk
@@ -43,6 +43,7 @@ HOST_TOOLCHAIN_FOR_CLANG := $(HOST_TOOLCHAIN_ROOT)
HOST_AR := $(AR)
HOST_GLOBAL_CFLAGS += -isysroot $(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version) -DMACOSX_DEPLOYMENT_TARGET=$(mac_sdk_version)
+HOST_GLOBAL_CPPFLAGS += -isystem $(mac_sdk_path)/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
HOST_GLOBAL_LDFLAGS += -isysroot $(mac_sdk_root) -Wl,-syslibroot,$(mac_sdk_root) -mmacosx-version-min=$(mac_sdk_version)
HOST_GLOBAL_CFLAGS += -fPIC -funwind-tables
diff --git a/build/core/combo/mac_version.mk b/build/core/combo/mac_version.mk
index b49feee..6defba7 100644
--- a/build/core/combo/mac_version.mk
+++ b/build/core/combo/mac_version.mk
@@ -9,7 +9,7 @@ ifndef build_mac_version
build_mac_version := $(shell sw_vers -productVersion)
-mac_sdk_versions_supported := 10.6 10.7 10.8
+mac_sdk_versions_supported := 10.6 10.7 10.8 10.9
ifneq ($(strip $(MAC_SDK_VERSION)),)
mac_sdk_version := $(MAC_SDK_VERSION)
ifeq ($(filter $(mac_sdk_version),$(mac_sdk_versions_supported)),)
project system/core/
diff --git a/system/core/adb/Android.mk b/system/core/adb/Android.mk
index a82f026..49c49ea 100644
--- a/system/core/adb/Android.mk
+++ b/system/core/adb/Android.mk
@@ -24,7 +24,7 @@ ifeq ($(HOST_OS),darwin)
USB_SRCS := usb_osx.c
EXTRA_SRCS := get_my_path_darwin.c
LOCAL_LDLIBS += -lpthread -framework CoreFoundation -framework IOKit -framework Carbon
- LOCAL_CFLAGS += -Wno-sizeof-pointer-memaccess -Wno-unused-parameter
+ LOCAL_CFLAGS += -Wno-deprecated-declarations -Wno-sizeof-pointer-memaccess -Wno-unused-parameter
endif
ifeq ($(HOST_OS),freebsd)
diff --git a/system/core/fastboot/Android.mk b/system/core/fastboot/Android.mk
index 112bd02..1881a97 100644
--- a/system/core/fastboot/Android.mk
+++ b/system/core/fastboot/Android.mk
@@ -31,7 +31,7 @@ ifeq ($(HOST_OS),darwin)
LOCAL_SRC_FILES += usb_osx.c util_osx.c
LOCAL_LDLIBS += -lpthread -framework CoreFoundation -framework IOKit \
-framework Carbon
- LOCAL_CFLAGS += -Wno-unused-parameter
+ LOCAL_CFLAGS += -Wno-deprecated-declarations -Wno-unused-parameter
endif
ifeq ($(HOST_OS),windows)
diff --git a/system/core/include/utils/Unicode.h b/system/core/include/utils/Unicode.h
index 5b98de2..5bb2312 100644
--- a/system/core/include/utils/Unicode.h
+++ b/system/core/include/utils/Unicode.h
@@ -24,9 +24,17 @@ extern "C" {
// Definitions exist in C++11
#if defined __cplusplus && __cplusplus < 201103L
+#ifdef __STDC_UTF_32__
+typedef __char32_t char32_t;
+#else
typedef uint32_t char32_t;
+#endif
+#ifdef __STDC_UTF_16__
+typedef __char16_t char16_t;
+#else
typedef uint16_t char16_t;
#endif
+#endif
// Standard string functions on char16_t strings.
int strcmp16(const char16_t *, const char16_t *);
--
--
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.
ERROR: unable to process assets while packaging 'out/target/product/generic/obj/APPS/LatinIME_intermediates/package.apk'
java.io.IOException: No space left on device
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:345)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)
at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:238)
at sun.tools.jar.Main.addFile(Main.java:742)
at sun.tools.jar.Main.create(Main.java:491)
at sun.tools.jar.Main.run(Main.java:201)
at sun.tools.jar.Main.main(Main.java:1177)
make: *** [out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar] Error 1
I guess it's because of less space in my case-sensitive drive. How much space is necessary to build AOSP? Mine is 50 GB now. Can I increase it's space to continue from where the build broke or I need to recreate a new case-sensitive drive with a larger space and redo all the stuffs I did earlier?
Your help will be appreciable.
/Developer/SDKs/MacOSX10.6.sdk/usr/include/mach-o/getsect.h:83:17: note: candidate function not viable: no known conversion from 'const mach_header *' to 'const struct mach_header_64 *' for 1st argument
extern uint8_t *getsectiondata(
^
1 error generated.
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++abi_intermediates/src/Unwind/Unwind_AppleExtras.o] Error 1
#### make failed to build some targets (02:59 (mm:ss)) ####
I am running Xcode 6.1 + OSX10.10. I had to symlink my 10.10 SDK to 10.6
Ideas?
mac_sdk_versions_supported := 10.6 10.7 10.8 10.9 10.10
host C++: libinput_32 <= frameworks/native/libs/input/Input.cpp
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/libs/input/Input.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
ifeq ($(mac_sdk_version),10.8)
# Mac SDK 10.8 no longer has stdarg.h, etc
ifeq ($(mac_sdk_version),10.10)
# Mac SDK 10.8 no longer has stdarg.h, etc
I’m trying to build Android 5.0 on OS X Yosemite and am able to compile it with a bunch of warnings but when I try to run the emulator, I get the following error:
dyld: Symbol not found: _code_profile_dirname
Referenced from: /Volumes/android/WORKING_DIRECTORY/prebuilts/android-emulator/darwin-x86_64/emulator64-arm
Expected in: flat namespace
in /Volumes/android/WORKING_DIRECTORY/prebuilts/android-emulator/darwin-x86_64/emulator64-arm
Trace/BPT trap: 5
I followed the instructions at http://source.android.com/source/building-running.html to configure my build environment and execute the build.
Any suggestions?
host C++: libinput_32 <= frameworks/native/libs/input/InputDevice.cpp
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/include/input/KeyCharacterMap.h:26,
from frameworks/base/tools/validatekeymaps/Main.cpp:17:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/include/input/InputDevice.h:20,
from frameworks/native/libs/input/InputDevice.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
In file included from system/core/include/cutils/log.h:1,
from system/core/include/utils/KeyedVector.h:24,
from frameworks/native/include/input/Input.h:26,
from frameworks/native/libs/input/Input.cpp:23:
system/core/include/log/log.h:35:20: error: stdarg.h: No such file or directory
make: *** [out/host/darwin-x86/obj32/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/InputDevice.o] Error 1
make: *** [out/host/darwin-x86/obj32/STATIC_LIBRARIES/libinput_intermediates/Input.o] Error 1
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
#### make failed to build some targets (04:29 (mm:ss)) ####
Can you help me out?