[Android Software Development] celoxocis:
Im trying to build TWRP (branch android-6.0) on Omni Tree (branch android-6.0)

after including qcom_common in my local_manifest for crypto this where my build breaks:

full pastebin link http://pastebin.com/rp0kyM3f

target C: libcryptfs_hw <= device/qcom/common/cryptfs_hw/cryptfs_hw.c
device/qcom/common/cryptfs_hw/cryptfs_hw.c: In function 'get_tmp_passwd':
device/qcom/common/cryptfs_hw/cryptfs_hw.c:76:13: error: implicit declaration of function 'memset' [-Werror=implicit-function-declaration]
memset(tmp_passwd, 0, MAX_PASSWORD_LEN);
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c:76:13: warning: incompatible implicit declaration of built-in function 'memset'
device/qcom/common/cryptfs_hw/cryptfs_hw.c:77:13: error: implicit declaration of function 'strlen' [-Werror=implicit-function-declaration]
passwd_len = (strlen(passwd) > MAX_PASSWORD_LEN) ? MAX_PASSWORD_LEN : strlen(passwd);
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c:77:27: warning: incompatible implicit declaration of built-in function 'strlen'
passwd_len = (strlen(passwd) > MAX_PASSWORD_LEN) ? MAX_PASSWORD_LEN : strlen(passwd);
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c:78:13: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
memcpy(tmp_passwd, passwd, passwd_len);
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c:78:13: warning: incompatible implicit declaration of built-in function 'memcpy'
device/qcom/common/cryptfs_hw/cryptfs_hw.c: In function 'wipe_userdata':
device/qcom/common/cryptfs_hw/cryptfs_hw.c:93:34: warning: incompatible implicit declaration of built-in function 'strlen'
write(fd, "--wipe_data", strlen("--wipe_data") + 1);
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c: In function 'set_key':
device/qcom/common/cryptfs_hw/cryptfs_hw.c:154:17: warning: incompatible implicit declaration of built-in function 'memset'
memset(current_passwd, 0, MAX_PASSWORD_LEN);
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c:155:17: warning: incompatible implicit declaration of built-in function 'memcpy'
memcpy(current_passwd, tmp_passwd, MAX_PASSWORD_LEN);
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c: In function 'is_hw_disk_encryption':
device/qcom/common/cryptfs_hw/cryptfs_hw.c:181:9: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
if (!strcmp(encryption_mode, "aes-xts")) {
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c: In function 'is_ice_enabled':
device/qcom/common/cryptfs_hw/cryptfs_hw.c:206:9: error: implicit declaration of function 'strncmp' [-Werror=implicit-function-declaration]
if(!strncmp(enc_hw_type, "gpce", PROPERTY_VALUE_MAX)) {
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c:213:9: error: implicit declaration of function 'strstr' [-Werror=implicit-function-declaration]
if(strstr(prop_storage, "ufs")) {
^
device/qcom/common/cryptfs_hw/cryptfs_hw.c:213:12: warning: incompatible implicit declaration of built-in function 'strstr'
if(strstr(prop_storage, "ufs")) {
^
target C: libscrypttwrp_static <= bootable/recovery/crypto/scrypt/lib/crypto/crypto_scrypt-ref.c
cc1: some warnings being treated as errors
make: *** [/home/celoxocis/OmniRom-6.0.1/android/system/out/target/product/r7sf/obj/SHARED_LIBRARIES/libcryptfs_hw_intermediates/cryptfs_hw.o] Error 1
make: *** Waiting for unfinished jobs....

its a fresh repo sync.

anyone know how to get past this error without disabling the flag?

TARGET_HW_DISK_ENCRYPTION := true