[Android Software/Hacking General [Developers Only]] brandonabandon:
^ with the exception of the kernel. im using stock atm. when i recompile with androideabi 5.1 from sm site, same error from a few pages as balint

In file included from system/core/libcutils/strdup16to8.c:20:0:

system/core/include/cutils/jstring.h:32:35: error: unknown type name 'char16_t'

extern char * strndup16to8 (const char16_t* s, size_t n);

^

system/core/include/cutils/jstring.h:33:35: error: unknown type name 'char16_t'

extern size_t strnlen16to8 (const char16_t* s, size_t n);

^

system/core/include/cutils/jstring.h:34:47: error: unknown type name 'char16_t'

extern char * strncpy16to8 (char *dest, const char16_t*s, size_t n);

^

system/core/include/cutils/jstring.h:36:8: error: unknown type name 'char16_t'

extern char16_t * strdup8to16 (const char* s, size_t *out_len);

^

system/core/include/cutils/jstring.h:38:8: error: unknown type name 'char16_t'

extern char16_t * strcpy8to16 (char16_t *dest, const char*s, size_t *out_len);

^

system/core/include/cutils/jstring.h:38:32: error: unknown type name 'char16_t'

extern char16_t * strcpy8to16 (char16_t *dest, const char*s, size_t *out_len);

^

system/core/include/cutils/jstring.h:39:8: error: unknown type name 'char16_t'

extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,

^

system/core/include/cutils/jstring.h:39:35: error: unknown type name 'char16_t'

extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,

^

system/core/libcutils/strdup16to8.c:29:34: error: unknown type name 'char16_t'

extern size_t strnlen16to8(const char16_t* utf16Str, size_t len)

^

system/core/libcutils/strdup16to8.c:107:48: error: unknown type name 'char16_t'

extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len)

^

system/core/libcutils/strdup16to8.c:143:28: error: unknown type name 'char16_t'

char * strndup16to8 (const char16_t* s, size_t n)

^

target thumb C: libcutils <= system/core/libcutils/record_stream.c

build/core/binary.mk:699: recipe for target '/home/balint933/PA/out/target/product/titan/obj/STATIC_LIBRARIES/libcutils_intermediates/strdup16to8.o' failed

make: *** [/home/balint933/PA/out/target/product/titan/obj/STATIC_LIBRARIES/libcutils_intermediates/strdup16to8.o] Error 1

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

In file included from system/core/libcutils/strdup8to16.c:18:0:

system/core/include/cutils/jstring.h:32:35: error: unknown type name 'char16_t'

extern char * strndup16to8 (const char16_t* s, size_t n);

^

system/core/include/cutils/jstring.h:33:35: error: unknown type name 'char16_t'

extern size_t strnlen16to8 (const char16_t* s, size_t n);

^

system/core/include/cutils/jstring.h:34:47: error: unknown type name 'char16_t'

extern char * strncpy16to8 (char *dest, const char16_t*s, size_t n);

^

system/core/include/cutils/jstring.h:36:8: error: unknown type name 'char16_t'

extern char16_t * strdup8to16 (const char* s, size_t *out_len);

^

system/core/include/cutils/jstring.h:38:8: error: unknown type name 'char16_t'

extern char16_t * strcpy8to16 (char16_t *dest, const char*s, size_t *out_len);

^

system/core/include/cutils/jstring.h:38:32: error: unknown type name 'char16_t'

extern char16_t * strcpy8to16 (char16_t *dest, const char*s, size_t *out_len);

^

system/core/include/cutils/jstring.h:39:8: error: unknown type name 'char16_t'

extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,

^

system/core/include/cutils/jstring.h:39:35: error: unknown type name 'char16_t'

extern char16_t * strcpylen8to16 (char16_t *dest, const char*s, int length,

^

system/core/libcutils/strdup8to16.c:43:8: error: unknown type name 'char16_t'

extern char16_t * strdup8to16 (const char* s, size_t *out_len)

^

system/core/libcutils/strdup8to16.c: In function 'strdup8to16':

system/core/libcutils/strdup8to16.c:45:5: error: unknown type name 'char16_t'

char16_t *ret;

^

system/core/libcutils/strdup8to16.c:53:38: error: 'char16_t' undeclared (first use in this function)

if (len && SIZE_MAX/len < sizeof(char16_t))

^

system/core/libcutils/strdup8to16.c:53:38: note: each undeclared identifier is reported only once for each function it appears in

system/core/libcutils/strdup8to16.c:57:22: error: expected expression before ')' token

ret = (char16_t *) malloc (sizeof(char16_t) * len);

^

system/core/libcutils/strdup8to16.c:59:12: error: implicit declaration of function 'strcpy8to16' [-Werror=implicit-function-declaration]

return strcpy8to16 (ret, s, out_len);

^

system/core/libcutils/strdup8to16.c:59:12: error: return makes pointer from integer without a cast [-Werror=int-conversion]

system/core/libcutils/strdup8to16.c: At top level:

system/core/libcutils/strdup8to16.c:151:8: error: unknown type name 'char16_t'

extern char16_t * strcpy8to16 (char16_t *utf16Str, const char*utf8Str,

^

system/core/libcutils/strdup8to16.c:151:32: error: unknown type name 'char16_t'

extern char16_t * strcpy8to16 (char16_t *utf16Str, const char*utf8Str,

^

system/core/libcutils/strdup8to16.c:185:8: error: unknown type name 'char16_t'

extern char16_t * strcpylen8to16 (char16_t *utf16Str, const char*utf8Str,

^

system/core/libcutils/strdup8to16.c:185:35: error: unknown type name 'char16_t'

extern char16_t * strcpylen8to16 (char16_t *utf16Str, const char*utf8Str,

^

cc1: all warnings being treated as errors

build/core/binary.mk:699: recipe for target '/home/balint933/PA/out/target/product/titan/obj/STATIC_LIBRARIES/libcutils_intermediates/strdup8to16.o' failed

make: *** [/home/balint933/PA/out/target/product/titan/obj/STATIC_LIBRARIES/libcutils_intermediates/strdup8to16.o] Error 1

make: *** wait: No child processes. Stop.

using trusty. did a gcc upgrade to 5, also-

brandonabandon@beazt:~$ sudo apt-get install libstdc++-5-dev

[sudo] password for brandonabandon:

Reading package lists... Done

Building dependency tree

Reading state information... Done

libstdc++-5-dev is already the newest version.

i will switch distro if required for 5.1.

edit: fusionsp haz patch ^

edit: new error. same as balint "error: cannot use typeid with -fno-rtti"