← Back to team overview

ubuntu-phone team mailing list archive

Re: [DEVELOPMENT][xt907][Porting] Build error

 

Hi!

In "device/motorola/qcom-common/modules/nfc/nfc.mk", comment out the
following:

"frameworks/base/nfc-extras/com.android.nfc_extras.xml" (just to be sure,
maybe you can leave this as it is)

"Nfc \
 Tag \
 com.android.nfc_extras"



On Sun, Nov 24, 2013 at 4:17 PM, Eamon Cusic, Jr. <techieelf@xxxxxxxxx>wrote:

> Hello all,
> I called brunch xt907 and go the following error: (please excuse the
> length, I figured the entire output might be helpful)
>
> techieelf@eUbuntu:~/phablet$ brunch xt907
> including vendor/cm/vendorsetup.sh
> Looking for dependencies
>
> ============================================
> PLATFORM_VERSION_CODENAME=REL
> PLATFORM_VERSION=4.2.2
> CM_VERSION=10.1-20131124-UNOFFICIAL-xt907
> TARGET_PRODUCT=cm_xt907
> TARGET_BUILD_VARIANT=userdebug
> TARGET_BUILD_TYPE=release
> TARGET_BUILD_APPS=
> TARGET_ARCH=arm
> TARGET_ARCH_VARIANT=armv7-a-neon
> HOST_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-3.11.0-14-generic-x86_64-with-Ubuntu-13.10-saucy
> HOST_BUILD_TYPE=release
> BUILD_ID=JDQ39E
> OUT_DIR=/home/techieelf/phablet/out
> ============================================
>
> ============================================
> PLATFORM_VERSION_CODENAME=REL
> PLATFORM_VERSION=4.2.2
> CM_VERSION=10.1-20131124-UNOFFICIAL-xt907
> TARGET_PRODUCT=cm_xt907
> TARGET_BUILD_VARIANT=userdebug
> TARGET_BUILD_TYPE=release
> TARGET_BUILD_APPS=
> TARGET_ARCH=arm
> TARGET_ARCH_VARIANT=armv7-a-neon
> HOST_ARCH=x86
> HOST_OS=linux
> HOST_OS_EXTRA=Linux-3.11.0-14-generic-x86_64-with-Ubuntu-13.10-saucy
> HOST_BUILD_TYPE=release
> BUILD_ID=JDQ39E
> OUT_DIR=/home/techieelf/phablet/out
> ============================================
> build/core/Makefile:44: warning: overriding commands for target
> `/home/techieelf/phablet/out/target/product/xt907/system/etc/mkshrc'
> build/core/base_rules.mk:502: warning: ignoring old commands for target
> `/home/techieelf/phablet/out/target/product/xt907/system/etc/mkshrc'
> build/core/Makefile:44: warning: overriding commands for target
> `/home/techieelf/phablet/out/target/product/xt907/system/lib/egl/egl.cfg'
> build/core/base_rules.mk:502: warning: ignoring old commands for target
> `/home/techieelf/phablet/out/target/product/xt907/system/lib/egl/egl.cfg'
> No private recovery resources for TARGET_DEVICE xt907
> make -C kernel/motorola/msm8960-common
> O=/home/techieelf/phablet/out/target/product/xt907/obj/KERNEL_OBJ
> ARCH=arm CROSS_COMPILE="
>
> /home/techieelf/phablet/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-"
> headers_install
> Install: /home/techieelf/phablet/out/host/linux-x86/bin/acp
> make[1]: Entering directory
> `/home/techieelf/phablet/kernel/motorola/msm8960-common'
> target asm: libpng <=
> external/libpng/contrib/pngneon/png_read_filter_row_neon.s
> target StaticLib: libpixelflinger_static
>
> (/home/techieelf/phablet/out/target/product/xt907/obj/STATIC_LIBRARIES/libpixelflinger_static_intermediates/libpixelflinger_static.a)
> target thumb C: libpng <= external/libpng/png.c
> target thumb C: libpng <= external/libpng/pngerror.c
> target thumb C: libpng <= external/libpng/pnggccrd.c
> target thumb C: libpng <= external/libpng/pngget.c
> target thumb C: libpng <= external/libpng/pngmem.c
> target thumb C: libpng <= external/libpng/pngpread.c
> target thumb C: libpng <= external/libpng/pngread.c
> target thumb C: libpng <= external/libpng/pngrio.c
> target thumb C: libpng <= external/libpng/pngrtran.c
> target thumb C: libpng <= external/libpng/pngrutil.c
> target thumb C: libpng <= external/libpng/pngset.c
> target thumb C: libpng <= external/libpng/pngtrans.c
> target thumb C: libpng <= external/libpng/pngvcrd.c
> target thumb C: libpng <= external/libpng/pngwio.c
> target thumb C: libpng <= external/libpng/pngwrite.c
> target thumb C: libpng <= external/libpng/pngwtran.c
> target thumb C: libpng <= external/libpng/pngwutil.c
> target StaticLib: libstdc++
>
> (/home/techieelf/phablet/out/target/product/xt907/obj/STATIC_LIBRARIES/libstdc++_intermediates/libstdc++.a)
> target StaticLib: libz
>
> (/home/techieelf/phablet/out/target/product/xt907/obj/STATIC_LIBRARIES/libz_intermediates/libz.a)
> target StaticLib: liblog
>
> (/home/techieelf/phablet/out/target/product/xt907/obj/STATIC_LIBRARIES/liblog_intermediates/liblog.a)
> target StaticLib: libcutils
>
> (/home/techieelf/phablet/out/target/product/xt907/obj/STATIC_LIBRARIES/libcutils_intermediates/libcutils.a)
> target arm C: libm <= bionic/libm/src/e_fmodf.c
> target arm C: libm <= bionic/libm/src/e_gamma.c
> target arm C: libm <= bionic/libm/src/e_gamma_r.c
> target arm C: libm <= bionic/libm/src/e_gammaf.c
> target arm C: libm <= bionic/libm/src/e_gammaf_r.c
> target arm C: libm <= bionic/libm/src/e_hypot.c
> target arm C: libm <= bionic/libm/src/e_hypotf.c
> target arm C: libm <= bionic/libm/src/e_j0.c
> target arm C: libm <= bionic/libm/src/e_j0f.c
> target arm C: libm <= bionic/libm/src/e_j1.c
> target arm C: libm <= bionic/libm/src/e_j1f.c
> target arm C: libm <= bionic/libm/src/e_jn.c
> bionic/libm/src/e_j0.c: In function 'pzero':target arm C: libm <=
> bionic/libm/src/e_jnf.c
>
> bionic/libm/src/e_j0.c:285:22: warning: 'q' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j0.c:284:15: warning: 'p' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> target arm C: libm <= bionic/libm/src/e_lgamma.c
> bionic/libm/src/e_j0f.c: In function 'pzerof':
> bionic/libm/src/e_j0f.c:242:22: warning: 'q' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j0f.c:241:15: warning: 'p' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> target arm C: libm <= bionic/libm/src/e_lgamma_r.c
> bionic/libm/src/e_j0.c: In function 'qzero':
> bionic/libm/src/e_j0.c:380:22: warning: 'q' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j0.c:379:15: warning: 'p' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j0f.c: In function 'qzerof':target arm C: libm <=
> bionic/libm/src/e_lgammaf.c
>
> bionic/libm/src/e_j0f.c:337:22: warning: 'q' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j0f.c:336:15: warning: 'p' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j1.c: In function 'pone':
> bionic/libm/src/e_j1.c:279:29: warning: 'q' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j1.c:278:22: warning: 'p' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j1f.c: In function 'ponef':
> bionic/libm/src/e_j1f.c:237:29: warning: 'q' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j1f.c:236:22: warning: 'p' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j1.c: In function 'qone':
> bionic/libm/src/e_j1.c:375:22: warning: 'q' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j1.c:374:15: warning: 'p' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j1f.c: In function 'qonef':
> bionic/libm/src/e_j1f.c:333:22: warning: 'q' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_j1f.c:332:15: warning: 'p' may be used uninitialized
> in this function [-Wmaybe-uninitialized]
> bionic/libm/include/math.h: In function 'lgamma_r':
> bionic/libm/src/e_lgamma_r.c:295:13: warning: 'nadj' may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> bionic/libm/src/e_lgamma_r.c:207:15: note: 'nadj' was declared here
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libdl.so <-
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libstdc++.so
> <- /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libstdc++.so
> <- /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libstdc++.so
> <- /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libstdc++.so
> <- /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libm.so <-
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libm.so <-
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libm.so <-
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libm.so <-
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> make: Circular
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libdl.so <-
> /home/techieelf/phablet/out/target/product/xt907/system/lib/libc.so
> dependency dropped.
> CHK include/linux/version.h
> make[1]: Leaving directory
> `/home/techieelf/phablet/kernel/motorola/msm8960-common'
> target thumb C: libbusybox <= external/busybox/coreutils/tee.c
> target thumb C: libbusybox <= external/busybox/libbb/loop.c
> target thumb C: libbusybox <= external/busybox/libbb/write.c
> target thumb C: libbusybox <= external/busybox/procps/lsof.c
> target thumb C: libbusybox <=
> external/busybox/util-linux/volume_id/get_devname.c
> external/busybox/util-linux/volume_id/get_devname.c: In function
> 'add_to_uuid_cache':
> external/busybox/util-linux/volume_id/get_devname.c:244:8: warning:
> 'uuid' is used uninitialized in this function [-Wuninitialized]
> target thumb C: libcrypto_static <= external/openssl/crypto/asn1/a_dup.c
> target thumb C: libcrypto_static <= external/openssl/crypto/bn/bn_sqrt.c
> target thumb C: libcrypto_static <= external/openssl/crypto/dsa/dsa_ameth.c
> external/openssl/crypto/dsa/dsa_ameth.c:650:3: warning: missing
> initializer [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:650:3: warning: (near
> initialization for 'dsa_asn1_meths[0].pem_str')
> [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:656:3: warning: missing
> initializer [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:656:3: warning: (near
> initialization for 'dsa_asn1_meths[1].pem_str')
> [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:662:3: warning: missing
> initializer [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:662:3: warning: (near
> initialization for 'dsa_asn1_meths[2].pem_str')
> [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:668:3: warning: missing
> initializer [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:668:3: warning: (near
> initialization for 'dsa_asn1_meths[3].pem_str')
> [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:702:3: warning: missing
> initializer [-Wmissing-field-initializers]
> external/openssl/crypto/dsa/dsa_ameth.c:702:3: warning: (near
> initialization for 'dsa_asn1_meths[4].item_verify')
> [-Wmissing-field-initializers]
> target thumb C: libcrypto_static <= external/openssl/crypto/evp/evp_enc.c
> target thumb C: libcrypto_static <= external/openssl/crypto/rand/rand_win.c
> target thumb C: libcrypto_static <=
> external/openssl/crypto/x509v3/v3_purp.c
> target thumb C: libcrypto <= external/openssl/crypto/asn1/x_spki.c
> target thumb C: libcrypto <= external/openssl/crypto/bn/bn_word.c
> target thumb C: libcrypto <= external/openssl/crypto/des/xcbc_enc.c
> target thumb C: libcrypto <= external/openssl/crypto/engine/eng_ctrl.c
> target thumb C: libcrypto <= external/openssl/crypto/evp/p_dec.c
> target thumb C: libcrypto <= external/openssl/crypto/ocsp/ocsp_ht.c
> target thumb C: libcrypto <= external/openssl/crypto/srp/srp_vfy.c
> host C: libcrypto <= external/openssl/crypto/aes/aes_misc.c
> host C: libcrypto <= external/openssl/crypto/bn/bn_exp.c
> host C: libcrypto <= external/openssl/crypto/evp/digest.c
> host C: libcrypto <= external/openssl/crypto/modes/ctr128.c
> host C: libcrypto <= external/openssl/crypto/rand/rand_err.c
> host C: libcrypto <= external/openssl/crypto/rsa/rsa_pss.c
> host C: libcrypto <= external/openssl/crypto/x509v3/v3_lib.c
> target arm C: libsonivox <=
> external/sonivox/arm-wt-22k/lib_src/eas_chorusdata.c
> target arm C: libsonivox <= external/sonivox/arm-wt-22k/lib_src/eas_rtttl.c
> target thumb C: liblzf <= external/liblzf/lzf_d.c
> host C: libcutils <= system/core/libcutils/sched_policy.c
> system/core/libcutils/sched_policy.c: In function ‘set_sched_policy’:
> system/core/libcutils/sched_policy.c:334:26: warning: unused parameter
> ‘tid’ [-Wunused-parameter]
> int set_sched_policy(int tid, SchedPolicy policy)
> ^
> system/core/libcutils/sched_policy.c:334:43: warning: unused parameter
> ‘policy’ [-Wunused-parameter]
> int set_sched_policy(int tid, SchedPolicy policy)
> ^
> system/core/libcutils/sched_policy.c: In function ‘get_sched_policy’:
> system/core/libcutils/sched_policy.c:339:26: warning: unused parameter
> ‘tid’ [-Wunused-parameter]
> int get_sched_policy(int tid, SchedPolicy *policy)
> ^
> target arm C: libjpeg <= external/jpeg/jdpostct.c
> target thumb C: libwebp-decode <= external/webp/src/dec/tree.c
> target thumb C: libwebp-encode <=
> external/webp/src/enc/../utils/bit_writer.c
> target thumb C++: libicui18n <= external/icu4c/i18n/casetrn.cpp
> target thumb C++: libicui18n <= external/icu4c/i18n/uspoof_build.cpp
> target arm C: libvorbisidec <= external/tremolo/Tremolo/framing.c
> target thumb C: libvpx <=
> external/libvpx/vp8/common/arm/arm_systemdependent.c
> In file included from external/libvpx/vpx_ports/config.h:10:0,
> from external/libvpx/vp8/common/arm/arm_systemdependent.c:12:
> external/libvpx/vpx_config.h:8:0: warning: "ARCH_ARM" redefined [enabled
> by default]
> In file included from <command-line>:0:0:
> ./build/core/combo/include/arch/linux-arm/AndroidConfig.h:267:0: note:
> this is the location of the previous definition
> target thumb C: libvpx <=
> external/libvpx/vp8/decoder/arm/neon/idct_blk_neon.c
> In file included from external/libvpx/vpx_ports/config.h:10:0,
> from external/libvpx/vp8/decoder/arm/neon/idct_blk_neon.c:11:
> external/libvpx/vpx_config.h:8:0: warning: "ARCH_ARM" redefined [enabled
> by default]
> In file included from <command-line>:0:0:
> ./build/core/combo/include/arch/linux-arm/AndroidConfig.h:267:0: note:
> this is the location of the previous definition
> host C++: libicui18n <= external/icu4c/i18n/reldtfmt.cpp
> make: *** No rule to make target
> `frameworks/base/nfc-extras/com.android.nfc_extras.xml', needed by
>
> `/home/techieelf/phablet/out/target/product/xt907/system/etc/permissions/com.android.nfc_extras.xml'.
> Stop.
> make: *** Waiting for unfinished jobs....
>
> As you can see at the end, it's looking for some files in a directory,
> but in fact that directory does not even exist? I'm not sure what went
> wrong here.
>
> Any and all help is very much so appreciated.
>
> Thank you,
> Eamon
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>

References