[Android] simon11b:
Hello everyone. I tried to build rom for OP2. I am using Antergos 4.4.1.2-ARCH, currently runing in virtualbox machine, for building and when I run the the build I get this error. I have search the web for posible solutions but could not figure out what is the problem. Does onyone have the solution for the error. Have used ubuntu V14 and V15, linuxmint and I had always problems with the same error. I am asuming that there is a problem in missing package but can not determine which one. Please can anyone give me tips to resolve the problem. In board config i have disabled the line with

# ANT+
#BOARD_ANT_WIRELESS_DEVICE := "vfs-prerelease"

.

Thank you for your help and have a nice day :)

target StaticLib: libmtdutils (/home/simon/!/out/target/product/oneplus2/obj/STATIC_LIBRARIES/libmtdutils_intermediates/libmtdutils.a)

target StaticLib: libfusesideload (/home/simon/!/out/target/product/oneplus2/obj/STATIC_LIBRARIES/libfusesideload_intermediates/libfusesideload.a)

host C++: aapt <= frameworks/base/tools/aapt/Main.cpp

host StaticLib: libaapt (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libaapt_intermediates/libaapt.a)

host StaticLib: libandroidfw (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/libandroidfw.a)

host StaticLib: libpng (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libpng_intermediates/libpng.a)

host StaticLib: libutils (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/libutils.a)

host StaticLib: libcutils (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/libcutils.a)

host StaticLib: libexpat (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libexpat_intermediates/libexpat.a)

host StaticLib: libziparchive-host (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libziparchive-host_intermediates/libziparchive-host.a)

host StaticLib: libbase (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libbase_intermediates/libbase.a)

host C++: conscrypt_generate_constants <= external/conscrypt/src/gen/native/generate_constants.cc

host C: libssl-host <= external/boringssl/src/ssl/d1_both.c

host C: libssl-host <= external/boringssl/src/ssl/d1_clnt.c

external/boringssl/src/ssl/d1_both.c:408:13: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]

if (ret != chunk) {

~~~ ^ ~~~~~

external/boringssl/src/ssl/d1_both.c:537:11: warning: comparison of integers of different signs: 'int' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare]

if (ret != frag_len) {

~~~ ^ ~~~~~~~~

2 warnings generated.

host C: libssl-host <= external/boringssl/src/ssl/d1_lib.c

host C: libssl-host <= external/boringssl/src/ssl/d1_meth.c

host C: libssl-host <= external/boringssl/src/ssl/d1_pkt.c

host C: libssl-host <= external/boringssl/src/ssl/d1_srtp.c

host C: libssl-host <= external/boringssl/src/ssl/d1_srvr.c

host C: libssl-host <= external/boringssl/src/ssl/pqueue/pqueue.c

host C: libssl-host <= external/boringssl/src/ssl/s3_both.c

host C: libssl-host <= external/boringssl/src/ssl/s3_clnt.c

external/boringssl/src/ssl/d1_srtp.c:135:7: warning: missing field 'id' initializer [-Wmissing-field-initializers]

{0},

^

1 warning generated.

host C: libssl-host <= external/boringssl/src/ssl/s3_enc.c

host C: libssl-host <= external/boringssl/src/ssl/s3_lib.c

host C: libssl-host <= external/boringssl/src/ssl/s3_meth.c

host C: libssl-host <= external/boringssl/src/ssl/s3_pkt.c

host C: libssl-host <= external/boringssl/src/ssl/s3_srvr.c

host C: libssl-host <= external/boringssl/src/ssl/ssl_aead_ctx.c

host C: libssl-host <= external/boringssl/src/ssl/ssl_algs.c

host C: libssl-host <= external/boringssl/src/ssl/ssl_asn1.c

CHK include/generated/uapi/linux/version.h

host C: libssl-host <= external/boringssl/src/ssl/ssl_cert.c

UPD include/generated/uapi/linux/version.h

host C: libssl-host <= external/boringssl/src/ssl/ssl_cipher.c

host C: libssl-host <= external/boringssl/src/ssl/ssl_lib.c

host C: libssl-host <= external/boringssl/src/ssl/ssl_rsa.c

host C: libssl-host <= external/boringssl/src/ssl/ssl_sess.c

host C: libssl-host <= external/boringssl/src/ssl/ssl_stat.c

host C: libssl-host <= external/boringssl/src/ssl/ssl_txt.c

host C: libssl-host <= external/boringssl/src/ssl/t1_enc.c

host C: libssl-host <= external/boringssl/src/ssl/t1_lib.c

host C: libssl-host <= external/boringssl/src/ssl/t1_reneg.c

host C++: zipalign <= build/tools/zipalign/ZipAlign.cpp

host C++: zipalign <= build/tools/zipalign/ZipEntry.cpp

host C++: zipalign <= build/tools/zipalign/ZipFile.cpp

external/boringssl/src/ssl/t1_reneg.c:219:41: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]

if (CBS_len(&renegotiated_connection) != expected_len) {

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~

1 warning generated.

host StaticLib: libzopfli (/home/simon/!/out/host/linux-x86/obj/STATIC_LIBRARIES/libzopfli_intermediates/libzopfli.a)

target C++: libantradio <= external/ant-wireless/ant_native/src/common/JAntNative.cpp

target C: libantradio <= external/ant-wireless/ant_native/src/common/ant_utils.c

WRAP arch/arm64/include/generated/asm/bugs.h

WRAP arch/arm64/include/generated/asm/clkdev.h

WRAP arch/arm64/include/generated/asm/cputime.h

WRAP arch/arm64/include/generated/asm/checksum.h

WRAP arch/arm64/include/generated/asm/delay.h

WRAP arch/arm64/include/generated/asm/current.h

WRAP arch/arm64/include/generated/asm/dma.h

WRAP arch/arm64/include/generated/asm/div64.h

WRAP arch/arm64/include/generated/asm/emergency-restart.h

WRAP arch/arm64/include/generated/asm/errno.h

WRAP arch/arm64/include/generated/asm/early_ioremap.h

WRAP arch/arm64/include/generated/asm/ftrace.h

WRAP arch/arm64/include/generated/asm/ioctl.h

WRAP arch/arm64/include/generated/asm/hw_irq.h

WRAP arch/arm64/include/generated/asm/ioctls.h

WRAP arch/arm64/include/generated/asm/ipcbuf.h

WRAP arch/arm64/include/generated/asm/irq_regs.h

WRAP arch/arm64/include/generated/asm/kdebug.h

WRAP arch/arm64/include/generated/asm/kvm_para.h

WRAP arch/arm64/include/generated/asm/kmap_types.h

WRAP arch/arm64/include/generated/asm/local.h

WRAP arch/arm64/include/generated/asm/mcs_spinlock.h

WRAP arch/arm64/include/generated/asm/local64.h

WRAP arch/arm64/include/generated/asm/mman.h

WRAP arch/arm64/include/generated/asm/msgbuf.h

WRAP arch/arm64/include/generated/asm/mutex.h

WRAP arch/arm64/include/generated/asm/pci.h

WRAP arch/arm64/include/generated/asm/poll.h

WRAP arch/arm64/include/generated/asm/resource.h

WRAP arch/arm64/include/generated/asm/rwsem.h

WRAP arch/arm64/include/generated/asm/scatterlist.h

WRAP arch/arm64/include/generated/asm/sections.h

WRAP arch/arm64/include/generated/asm/segment.h

WRAP arch/arm64/include/generated/asm/sembuf.h

WRAP arch/arm64/include/generated/asm/serial.h

target C: libantradio <= external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c

WRAP arch/arm64/include/generated/asm/shmbuf.h

WRAP arch/arm64/include/generated/asm/simd.h

WRAP arch/arm64/include/generated/asm/sizes.h

WRAP arch/arm64/include/generated/asm/socket.h

WRAP arch/arm64/include/generated/asm/sockios.h

WRAP arch/arm64/include/generated/asm/swab.h

WRAP arch/arm64/include/generated/asm/switch_to.h

WRAP arch/arm64/include/generated/asm/termbits.h

WRAP arch/arm64/include/generated/asm/termios.h

WRAP arch/arm64/include/generated/asm/topology.h

WRAP arch/arm64/include/generated/asm/trace_clock.h

WRAP arch/arm64/include/generated/asm/types.h

WRAP arch/arm64/include/generated/asm/unaligned.h

WRAP arch/arm64/include/generated/asm/user.h

WRAP arch/arm64/include/generated/asm/vga.h

WRAP arch/arm64/include/generated/asm/xor.h

WRAP arch/arm64/include/generated/uapi/asm/kvm_para.h

target C: libantradio <= external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_init':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:111:7: error: implicit declaration of function 'strerror' [-Werror=implicit-function-declaration]

ANT_ERROR("ANT init failed. Could not create event fd. Reason: %s", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:111:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_deinit':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:143:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("Could not close eventfd in deinit. Reason: %s", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_enable_radio':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:194:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("enable failed to get state lock: %s", strerror(iLockResult));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:204:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("ant enable failed: %s", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_disable_radio':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:354:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("disable failed to get state lock: %s", strerror(iLockResult));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_tx_message_flowcontrol_wait':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:588:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("failed to lock flow control mutex during tx: %s", strerror(iMutexResult));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:603:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("failed to write data message to device: %s", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:613:13: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("failed to wait for flow control response: %s", strerror(iCondWaitResult));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_tx_message_flowcontrol_none':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:679:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("failed to write message to device: %s", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_tx_message':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:752:4: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]

memcpy(txBuffer + ANT_HCI_HEADER_SIZE, pucMesg, ucLen);

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:752:4: warning: incompatible implicit declaration of built-in function 'memcpy'

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_disable_channel':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:817:10: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat=]

ANT_ERROR("failed to close channel %s(%#x): %s", pstChnlInfo->pcDevicePath, pstChnlInfo->iFd, strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_enable_channel':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:841:10: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=]

ANT_ERROR("failed to open dev %s: %s", pstChnlInfo->pcDevicePath, strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_enable':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:867:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("Could not clear shutdown signal in enable. Reason: %s", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:875:10: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=]

ANT_ERROR("failed to enable channel %s: %s",

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:884:10: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("failed to start rx thread: %s", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c: In function 'ant_disable':

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:915:10: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("failed to signal rx thread with eventfd. Reason: %s", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_native_chardev.c:920:10: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("failed to join rx thread: %s", strerror(errno));

^

cc1: some warnings being treated as errors

build/tools/zipalign/ZipEntry.cpp:144:52: warning: unused parameter 'pZipFile' [-Wunused-parameter]

status_t ZipEntry::initFromExternal(const ZipFile* pZipFile,

^

build/tools/zipalign/ZipEntry.cpp:150:12: warning: destination for this 'memcpy' call is a pointer to dynamic class 'CentralDirEntry'; vtable pointer will be overwritten [-Wdynamic-class-memaccess]

memcpy(&mCDE, &pEntry->mCDE, sizeof(mCDE));

~~~~~~ ^

build/tools/zipalign/ZipEntry.cpp:150:12: note: explicitly cast the pointer to silence this warning

memcpy(&mCDE, &pEntry->mCDE, sizeof(mCDE));

^

(void*)

2 warnings generated.

build/core/binary.mk:801: recipe for target '/home/simon/!/out/target/product/oneplus2/obj/SHARED_LIBRARIES/libantradio_intermediates/src/vfs/ant_native_chardev.o' failed

make: *** [/home/simon/!/out/target/product/oneplus2/obj/SHARED_LIBRARIES/libantradio_intermediates/src/vfs/ant_native_chardev.o] Error 1

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

HOSTCC scripts/unifdef

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c: In function 'fnRxThread':

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:151:10: error: implicit declaration of function 'strerror' [-Werror=implicit-function-declaration]

ANT_ERROR("unhandled error: %s, attempting recovery.", strerror(errno));

^

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:151:10: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:239:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("rx thread closing code, trylock on state lock failed: %s",

^

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c: In function 'doReset':

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:270:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("chip was reset, getting state mutex failed: %s",

^

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c: In function 'setFlowControl':

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:328:7: warning: format '%s' expects argument of type 'char *', but argument 4 has type 'int' [-Wformat=]

ANT_ERROR("failed to lock flow control mutex during response: %s", strerror(iMutexResult));

^

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c: In function 'readChannelMsg':

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:372:10: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'int' [-Wformat=]

ANT_ERROR("%s read thread exiting, unhandled error: %s",

^

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:426:16: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]

memcpy(aucRxBuffer[eChannel], &aucRxBuffer[eChannel][iCurrentHciPacketOffset], iRxBufferLength[eChannel]);

^

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:426:16: warning: incompatible implicit declaration of built-in function 'memcpy'

external/ant-wireless/ant_native/src/vfs/ant_rx_chardev.c:441:16: error: implicit declaration of function 'memcmp' [-Werror=implicit-function-declaration]

ANT_BOOL bIsKeepAliveResponse = memcmp(msg, KEEPALIVE_RESP, sizeof(KEEPALIVE_RESP)/sizeof(ANT_U8)) == 0;

^

cc1: some warnings being treated as errors

build/core/binary.mk:801: recipe for target '/home/simon/!/out/target/product/oneplus2/obj/SHARED_LIBRARIES/libantradio_intermediates/src/vfs/ant_rx_chardev.o' failed

make: *** [/home/simon/!/out/target/product/oneplus2/obj/SHARED_LIBRARIES/libantradio_intermediates/src/vfs/ant_rx_chardev.o] Error 1

INSTALL include/asm-generic (35 files)

INSTALL include/drm (18 files)

INSTALL include/mtd (5 files)

INSTALL include/rdma (6 files)

INSTALL include/xen (2 files)

INSTALL include/video (5 files)

INSTALL include/sound (18 files)

INSTALL include/scsi/fc (4 files)

INSTALL include/media (20 files)

INSTALL include/linux/../../../usr/include/linux/staging/android/uapi (2 files)

INSTALL include/uapi (0 file)

INSTALL include/scsi/ufs (2 files)

INSTALL include/scsi (5 files)

INSTALL include/linux/android (1 file)

INSTALL include/linux/byteorder (2 files)

INSTALL include/linux/caif (2 files)

INSTALL include/linux/dvb (8 files)

INSTALL include/linux/hdlc (1 file)

INSTALL include/linux/can (5 files)

INSTALL include/linux/hsi (1 file)

INSTALL include/linux/isdn (1 file)

INSTALL include/linux/netfilter_arp (2 files)

INSTALL include/linux/mmc (3 files)

INSTALL include/linux/netfilter/ipset (4 files)

INSTALL include/linux/netfilter_bridge (18 files)

INSTALL include/linux/mfd/wcd9xxx (3 files)

INSTALL include/linux/netfilter (78 files)

INSTALL include/linux/netfilter_ipv4 (11 files)

INSTALL include/linux/netfilter_ipv6 (12 files)

INSTALL include/linux/nfsd (5 files)

INSTALL include/linux/mfd (1 file)

INSTALL include/linux/sunrpc (1 file)

INSTALL include/linux/raid (2 files)

INSTALL include/linux/tc_act (7 files)

INSTALL include/linux/spi (1 file)

INSTALL include/linux (446 files)

INSTALL include/linux/tc_ematch (4 files)

INSTALL include/linux/usb (13 files)

INSTALL include/linux/wimax (1 file)

INSTALL include/asm (35 files)

make[1]: Leaving directory '/home/simon/!/kernel/oneplus/msm8994'

Edit: Forgot to mention that the rom is MM branch