[Android] pug1:
could anyhelp with this plz

target arm C: libz <= external/zlib/src/trees.c

target arm C: libz <= external/zlib/src/uncompr.c

target arm C: libz <= external/zlib/src/zutil.c

target thumb C++: libinit_msm <= device/qcom/common/init/../../../../device/samsung/kccat6/init/init_kccat6.cpp

target thumb C: libinit_msm <= device/qcom/common/init/init_msm.c

Generate: system/core/rootdir/init.environ.rc.in -> /home/rob/cm/cm12.1/out/target/product/kccat6/obj/ETC/init.environ.rc_intermediates/init.environ.rc

In file included from device/qcom/common/init/init_msm.c:39:0:

system/core/init/property_service.h:31:8: error: unknown type name 'bool'

extern bool properties_initialized();

^

In file included from external/libcxx/include/string:434:0,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/__config:463:1: error: unknown type name 'namespace'

namespace std {

^

external/libcxx/include/__config:463:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

namespace std {

^

external/libcxx/include/__config:550:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token

template <bool> struct __static_assert_test;

^

external/libcxx/include/__config:551:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token

template <> struct __static_assert_test<true> {};

^

external/libcxx/include/__config:552:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token

template <unsigned> struct __static_assert_check {};

^

external/libcxx/include/iosfwd:96:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/iosfwd:96:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstring:67:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstring:67:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstdio:141:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstdio:141:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cctype:49:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cctype:49:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cwctype:61:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cwctype:61:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cwchar:117:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cwchar:117:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstddef:44:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstddef:44:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

In file included from external/libcxx/include/algorithm:624:0,

from external/libcxx/include/string:439,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/initializer_list:53:1: error: unknown type name 'namespace'

namespace std // purposefully not versioned

^

external/libcxx/include/initializer_list:54:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

{

^

In file included from external/libcxx/include/string:434:0,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/type_traits:212:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/type_traits:212:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/__tuple_03:20:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/__tuple_03:20:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/utility:164:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/utility:164:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

In file included from external/libcxx/include/typeinfo:61:0,

from external/libcxx/include/memory:598,

from external/libcxx/include/algorithm:628,

from external/libcxx/include/string:439,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/exception:87:1: error: unknown type name 'namespace'

namespace std // purposefully not using versioning namespace

^

external/libcxx/include/exception:88:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

{

^

In file included from external/libcxx/include/string:434:0,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/cstdint:151:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/cstdint:151:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

In file included from external/libcxx/include/memory:598:0,

from external/libcxx/include/algorithm:628,

from external/libcxx/include/string:439,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/typeinfo:69:1: error: unknown type name 'namespace'

namespace std // purposefully not using versioning namespace

^

external/libcxx/include/typeinfo:70:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

{

^

In file included from external/libcxx/include/memory:601:0,

from external/libcxx/include/algorithm:628,

from external/libcxx/include/string:439,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/new:83:1: error: unknown type name 'namespace'

namespace std // purposefully not using versioning namespace

^

external/libcxx/include/new:84:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

{

^

external/libcxx/include/new:135:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'new'

_LIBCPP_NEW_DELETE_VIS void* operator new(std::size_t __sz)

^

external/libcxx/include/new:140:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'new'

_LIBCPP_NEW_DELETE_VIS void* operator new(std::size_t __sz, const std::nothrow_t&) _NOEXCEPT _NOALIAS;

^

external/libcxx/include/new:141:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'delete'

_LIBCPP_NEW_DELETE_VIS void operator delete(void* __p) _NOEXCEPT;

^

external/libcxx/include/new:142:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'delete'

_LIBCPP_NEW_DELETE_VIS void operator delete(void* __p, const std::nothrow_t&) _NOEXCEPT;

^

external/libcxx/include/new:148:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'new'

_LIBCPP_NEW_DELETE_VIS void* operator new[](std::size_t __sz)

^

external/libcxx/include/new:153:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'new'

_LIBCPP_NEW_DELETE_VIS void* operator new[](std::size_t __sz, const std::nothrow_t&) _NOEXCEPT _NOALIAS;

^

external/libcxx/include/new:154:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'delete'

_LIBCPP_NEW_DELETE_VIS void operator delete[](void* __p) _NOEXCEPT;

^

external/libcxx/include/new:155:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'delete'

_LIBCPP_NEW_DELETE_VIS void operator delete[](void* __p, const std::nothrow_t&) _NOEXCEPT;

^

external/libcxx/include/new:161:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'new'

inline _LIBCPP_INLINE_VISIBILITY void* operator new (std::size_t, void* __p) _NOEXCEPT {return __p;}

^

external/libcxx/include/new:162:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'new'

inline _LIBCPP_INLINE_VISIBILITY void* operator new[](std::size_t, void* __p) _NOEXCEPT {return __p;}

^

external/libcxx/include/new:163:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'delete'

inline _LIBCPP_INLINE_VISIBILITY void operator delete (void*, void*) _NOEXCEPT {}

^

external/libcxx/include/new:164:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'delete'

inline _LIBCPP_INLINE_VISIBILITY void operator delete[](void*, void*) _NOEXCEPT {}

^

In file included from external/libcxx/include/string:434:0,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/new:166:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/new:166:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/limits:122:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/limits:122:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/__functional_base:24:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/__functional_base:24:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/iterator:358:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/iterator:358:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/tuple:136:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/tuple:136:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/memory:624:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/memory:624:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/algorithm:647:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/algorithm:647:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/stdexcept:54:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/stdexcept:54:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

In file included from external/libcxx/include/string:443:0,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/stdexcept:61:1: error: unknown type name 'namespace'

namespace std // purposefully not using versioning namespace

^

external/libcxx/include/stdexcept:62:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

{

^

In file included from external/libcxx/include/string:434:0,

from system/core/init/util.h:23,

from device/qcom/common/init/init_msm.c:41:

external/libcxx/include/string:462:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/string:462:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/functional:486:1: error: unknown type name 'namespace'

_LIBCPP_BEGIN_NAMESPACE_STD

^

external/libcxx/include/functional:486:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

_LIBCPP_BEGIN_NAMESPACE_STD

^

In file included from device/qcom/common/init/init_msm.c:41:0:

system/core/init/util.h:34:1: error: unknown type name 'bool'

bool read_file(const char* path, std::string* content);

^

system/core/init/util.h:34:34: error: unknown type name 'std'

bool read_file(const char* path, std::string* content);

^

system/core/init/util.h:40:1: error: unknown type name 'class'

class Timer {

^

system/core/init/util.h:40:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token

class Timer {

^

system/core/init/util.h:61:28: error: unknown type name 'bool'

void import_kernel_cmdline(bool in_qemu, std::function<void(char*,bool)>);

^

system/core/init/util.h:61:42: error: unknown type name 'std'

void import_kernel_cmdline(bool in_qemu, std::function<void(char*,bool)>);

^

system/core/init/util.h:65:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token

std::string bytes_to_hex(const uint8_t *bytes, size_t bytes_len);

^

In file included from device/qcom/common/init/init_msm.c:40:0:

device/qcom/common/init/init_msm.c: In function 'setPerms':

device/qcom/common/init/init_msm.c:110:58: error: 'errno' undeclared (first use in this function)

ERROR("chmod failed for %s: errno = %d", path, errno);

^

system/core/init/log.h:22:57: note: in definition of macro 'ERROR'

#define ERROR(x...) init_klog_write(KLOG_ERROR_LEVEL, x)

^

device/qcom/common/init/init_msm.c:110:58: note: each undeclared identifier is reported only once for each function it appears in

ERROR("chmod failed for %s: errno = %d", path, errno);

^

system/core/init/log.h:22:57: note: in definition of macro 'ERROR'

#define ERROR(x...) init_klog_write(KLOG_ERROR_LEVEL, x)

^

device/qcom/common/init/init_msm.c: In function 'setOwners':

device/qcom/common/init/init_msm.c:127:59: error: 'errno' undeclared (first use in this function)

ERROR(" chown failed for %s: errno = %d", path, errno);

^

system/core/init/log.h:22:57: note: in definition of macro 'ERROR'

#define ERROR(x...) init_klog_write(KLOG_ERROR_LEVEL, x)

^

build/core/binary.mk:817: recipe for target '/home/rob/cm/cm12.1/out/target/product/kccat6/obj/STATIC_LIBRARIES/libinit_msm_intermediates/init_msm.o' failed

make: *** [/home/rob/cm/cm12.1/out/target/product/kccat6/obj/STATIC_LIBRARIES/libinit_msm_intermediates/init_msm.o] Error 1

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

make: Leaving directory '/home/rob/cm/cm12.1'

#### make failed to build some targets (04:42 (mm:ss)) ####

rob@Rob:~/cm/cm12.1$

just repo init cm13 in cm12.1 folder and all seemed to sync fine