[Nexus 4 Android Development] fekle:
OSX 10.9 Mavericks

Hi everyone!

First, thanks to the OP for this great tutorial!

However I have a problem: compiling always stops with some errors, and I don't know why, I tried fixing it for hours but haven't found a solution, maybe someone here can help me.... Maybe the problem is OSX 10.9 ?

Here is the End of the console output:

# In case value of PACKAGES is empty.
GEN /Volumes/Android/cm10.2/out/target/product/mako/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:75:10: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
printf(_("aborted!\n\n"));
^~~~~~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:76:10: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
printf(_("Console input/output is redirected. "));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:77:10: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
printf(_("Run 'make oldconfig' to update configuration.\n\n"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:87:10: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
printf(_("(NEW) "));
^~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:286:12: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
printf(_(" (NEW)"));
^~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:434:13: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
...printf(_("*\n* Restart config...\n*\n"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:603:6: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
..._("\n*** The configuration requires explicit update.\n\n"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:655:20: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
..._("\n*** Error during writing of the configuration.\n\n"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:659:20: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
...fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/conf.c:670:20: warning:
format string is not a string literal (potentially insecure)
[-Wformat-security]
..._("\n*** Error during writing of the configuration.\n\n"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Android/cm10.2/kernel/lge/mako/scripts/kconfig/lkc.h:36:17: note:
expanded from macro '_'
#define _(text) gettext(text)
^~~~~~~~~~~~~
HOSTCC scripts/kconfig/zconf.tab.o
10 warnings generated.
HOSTLD scripts/kconfig/conf
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
warning: (ARCH_MSM_KRAITMP && ARCH_MSM_CORTEX_A5) selects HAVE_HW_BRKPT_RESERVED_RW_ACCESS which has unmet direct dependencies (HAVE_HW_BREAKPOINT)
#
# configuration written to .config
#

And sometimes the output looks like this:

including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/goldfish/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20130811-UNOFFICIAL-mako
TARGET_PRODUCT=cm_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-13.0.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=JSS15J
OUT_DIR=/Volumes/Android/cm10.2/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20130811-UNOFFICIAL-mako
TARGET_PRODUCT=cm_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-13.0.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=JSS15J
OUT_DIR=/Volumes/Android/cm10.2/out
============================================
build/core/Makefile:44: warning: overriding commands for target `/Volumes/Android/cm10.2/out/target/product/mako/system/etc/mkshrc'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/Volumes/Android/cm10.2/out/target/product/mako/system/etc/mkshrc'
PRODUCT_COPY_FILES device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:44: warning: overriding commands for target `/Volumes/Android/cm10.2/out/target/product/mako/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/Volumes/Android/cm10.2/out/target/product/mako/system/vendor/etc/audio_effects.conf'
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Effect_Tick_48k.ogg:system/media/audio/ui/Effect_Tick.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard_120_48k.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar_120_48k.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete_120_48k.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn_120_48k.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord_48k.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click_48k.ogg:system/media/audio/ui/camera_click.ogg ignored.
build/core/Makefile:44: warning: overriding commands for target `/Volumes/Android/cm10.2/out/target/product/mako/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/Volumes/Android/cm10.2/out/target/product/mako/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE mako
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt (/Volumes/Android/cm10.2/out/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
/Applications/Xcode5-DP5.app/Contents/Developer/usr/bin/make C_INCLUDE_PATH=/Volumes/Android/cm10.2/external/elfutils/libelf -C kernel/lge/mako O=/Volumes/Android/cm10.2/out/target/product/mako/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /Volumes/Android/cm10.2/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
host C++: libhost <= build/libs/host/pseudolocalize.cpp
host C: mkbootfs <= system/core/cpio/mkbootfs.c
target thumb C: charger <= system/core/charger/charger.c
target asm: libc <= bionic/libc/arch-arm/bionic/crtend_so.S
target arm C++: libc <= bionic/libc/bionic/pthread_create.cpp
system/core/cpio/mkbootfs.c:12:20: error: stdarg.h: No such file or directory
In file included from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/bits/c++locale.h:50,
from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/iosfwd:45,
from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:70,
from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/bits/char_traits.h:46,
from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/string:47,
from build/libs/host/include/host/pseudolocalize.h:4,
from build/libs/host/pseudolocalize.cpp:1:
/Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/cstdarg:51:20: error: stdarg.h: No such file or directory
system/core/mkbootimg/mkbootimg.c: In function ‘write_padding’:
system/core/mkbootimg/mkbootimg.c:89: warning: comparison between signed and unsigned
system/core/mkbootimg/mkbootimg.c: In function ‘main’:
system/core/mkbootimg/mkbootimg.c:191: warning: pointer targets in passing argument 1 of ‘__builtin___strcpy_chk’ differ in signedness
system/core/mkbootimg/mkbootimg.c:191: warning: pointer targets in passing argument 1 of ‘__inline_strcpy_chk’ differ in signedness
system/core/mkbootimg/mkbootimg.c:236: warning: assignment discards qualifiers from pointer target type
system/core/mkbootimg/mkbootimg.c:249: warning: comparison between signed and unsigned
system/core/mkbootimg/mkbootimg.c:252: warning: comparison between signed and unsigned
system/core/mkbootimg/mkbootimg.c:256: warning: comparison between signed and unsigned
system/core/cpio/mkbootfs.c: In function ‘die’:
system/core/cpio/mkbootfs.c:30: warning: implicit declaration of function ‘va_start’
system/core/cpio/mkbootfs.c:34: warning: implicit declaration of function ‘va_end’
system/core/cpio/mkbootfs.c: In function ‘fix_stat’:
system/core/cpio/mkbootfs.c:82: warning: passing argument 5 of ‘fs_config’ from incompatible pointer type
make: *** [/Volumes/Android/cm10.2/out/host/darwin-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/iosfwd:45,
from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:70,
from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/bits/char_traits.h:46,
from /Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/string:47,
from build/libs/host/include/host/pseudolocalize.h:4,
from build/libs/host/pseudolocalize.cpp:1:
/Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/bits/c++locale.h: In function ‘int std::__convert_from_v(int* const&, char*, int, const char*, ...)’:
/Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/bits/c++locale.h:77: error: ‘va_start’ was not declared in this scope
/Applications/Xcode5-DP5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/bits/c++locale.h:85: error: ‘va_end’ was not declared in this scope
make: *** [/Volumes/Android/cm10.2/out/host/darwin-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o] Error 1
cc1plus: warning: command line option '-std=gnu99' is valid for C/ObjC but not for C++ [enabled by default]
CHK include/linux/version.h
UPD include/linux/version.h
WRAP arch/arm/include/generated/asm/auxvec.h
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/cputime.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/percpu.h
WRAP arch/arm/include/generated/asm/local64.h
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/sizes.h
HOSTCC scripts/unifdef
INSTALL include/asm-generic (34 files)
INSTALL include/drm (16 files)
INSTALL include/media (7 files)
INSTALL include/mtd (5 files)
INSTALL include/rdma (6 files)
INSTALL include/sound (11 files)
INSTALL include/scsi/fc (4 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/scsi (3 files)
INSTALL include/linux/can (5 files)
INSTALL include/video (3 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/xen (2 files)
INSTALL include/linux/hsi (1 file)
INSTALL include (0 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mfd (2 files)
INSTALL include/linux/mfd/wcd9xxx (2 files)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter (75 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/linux/netfilter_ipv4 (12 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/nfsd (5 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/linux/usb (10 files)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (409 files)
INSTALL include/asm (32 files)
fekle:cm10.2 felix$

Thanks for your help!