make otatools errors - Android Software Development

My google skills are not strong enough to solve this problem, apparently.
Ultimately, I want to build a custom Clockwork recovery. I've been following guides here:
http://source.android.com/source/initializing.html
and here:
http://www.koushikdutta.com/2010/10/porting-clockwork-recovery-to-new.html
But I'm getting the following after typing "make -j4 otatools":
Code:
$ make -j4 otatools
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
grep: build/target/board/generic/recovery.fstab: No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
host Executable: minigzip (out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/minigzip)
host C++: libhost <= build/libs/host/pseudolocalize.cpp
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
/make: *** [out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs] Error 1
usr/bin/ldmake: *** Waiting for unfinished jobs....:
skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6.1/libstdc++.a when searching for -lstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/minigzip] Error 1
Can anyone help me get rid of the errors?
And also, what exactly does "make otatools" do?
Thanks in advance for any help/advice.

Related

Compiling SlimLP

As of right now, I am attempting to compile SlimLP alpha 0.2 for the d2lte devices.
I have done it successfully with SlimKat 4.4.4 before
I'm getting some errors with make
I have no idea what I can do to fix it.. lol
[email protected]:~/slim$ make -j3 bacon
============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=5.0
SLIM_VERSION=Slim-5.0.alpha.0.2-UNOFFICIAL-20141115-2052
TARGET_PRODUCT=slim_d2lte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_GCC_VERSION=4.8
TARGET_GCC_VERSION_EXP=
TARGET_USE_O3=
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-39-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LRX21T
OUT_DIR=/home/a/slim/out
============================================
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `phone/java': No such file or directory
find: `phone/java': No such file or directory
find: `dummy': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/bin/rild'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/bin/rild'
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/lib/libreference-ril.so'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/lib/libreference-ril.so'
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/lib/libsecril-client.so'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/lib/libsecril-client.so'
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/etc/gps.conf'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/etc/gps.conf'
PRODUCT_COPY_FILES frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml ignored.
PRODUCT_COPY_FILES frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml ignored.
build/core/Makefile:33: warning: overriding commands for target `/home/a/slim/out/target/product/d2lte/system/etc/mkshrc'
build/core/base_rules.mk:551: warning: ignoring old commands for target `/home/a/slim/out/target/product/d2lte/system/etc/mkshrc'
No private recovery resources for TARGET_DEVICE d2lte
make -C kernel/samsung/d2 O=/home/a/slim/out/target/product/d2lte/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/a/slim/prebuilt/linux-x86/toolchain/linaro-4.7-13.04/bin/arm-linux-gnueabihf-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogen_d2_defconfig
Install: /home/a/slim/out/host/linux-x86/bin/mkbootimg
make[1]: Entering directory `/home/a/slim/kernel/samsung/d2'
Install: /home/a/slim/out/host/linux-x86/bin/mkbootfs
Install: /home/a/slim/out/host/linux-x86/bin/checkpolicy
Install: /home/a/slim/out/host/linux-x86/bin/checkfc
target Prebuilt: fstab.qcom (/home/a/slim/out/target/product/d2lte/obj/ETC/fstab.qcom_intermediates/fstab.qcom)
target Symbolic: libdl (/home/a/slim/out/target/product/d2lte/symbols/system/lib/libdl.so)
Install: /home/a/slim/out/target/product/d2lte/system/usr/share/zoneinfo/tzdata
Install: /home/a/slim/out/target/product/d2lte/root/init.qcom.rc
Install: /home/a/slim/out/target/product/d2lte/root/init.qcom.usb.rc
Install: /home/a/slim/out/target/product/d2lte/root/init.rc
Install: /home/a/slim/out/target/product/d2lte/root/init.recovery.qcom.rc
Install: /home/a/slim/out/target/product/d2lte/root/res/images/charger/battery_fail.png
Install: /home/a/slim/out/target/product/d2lte/root/res/images/charger/battery_scale.png
Install: /home/a/slim/out/target/product/d2lte/root/ueventd.qcom.rc
/home/a/slim/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/a/slim/out/target/product/d2lte/obj/ETC/sepolicy.recovery_intermediates/policy_recovery.conf
DumpPublicKey: /home/a/slim/out/target/product/d2lte/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar /home/a/slim/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/a/slim/out/target/product/d2lte/obj/PACKAGING/ota_keys_intermediates/keys
device/samsung/msm8960-common/sepolicy/device.te:3:ERROR 'duplicate declaration of type/attribute' at token ';' on line 11302:
type gpu_device, dev_type;
# GPU (used by most UI apps)
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/a/slim/out/target/product/d2lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/a/slim/out/target/product/d2lte/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/slim/kernel/samsung/d2'
#### make failed to build some targets (47 seconds) ####
Did you get this figured out? Looks like a typo to me...
java -jar /home/a/slim/out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > /home/a/slim/out/target/product/d2lte/obj/PACKAGING/ota_keys_intermediates/keys
device/samsung/msm8960-common/sepolicy/device.te:3:ERROR 'duplicate declaration of type/attribute' at token ';' on line 11302:
check device.te on line 3 says it is a duplicate line

Can pls someone help me with this building error

Hi, i wanna build cm13 for our beloved nexus 4 on my own (i know there is already a build) but i wanna do it.
i did everything as the cyanogen wiki said but im faceing this eroor
[email protected]:~/android/system# croot
[email protected]:~/android/system# brunch mako
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
CM_VERSION=13.0-20151109-UNOFFICIAL-mako
TARGET_PRODUCT=cm_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-2.6.32-042stab108.2-x86_64-with-debian-7.9
HOST_BUILD_TYPE=release
BUILD_ID=MDB08M
OUT_DIR=/root/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
CM_VERSION=13.0-20151109-UNOFFICIAL-mako
TARGET_PRODUCT=cm_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-2.6.32-042stab108.2-x86_64-with-debian-7.9
HOST_BUILD_TYPE=release
BUILD_ID=MDB08M
OUT_DIR=/root/android/system/out
============================================
"ebtables is disabled on this build"
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
No private recovery resources for TARGET_DEVICE mako
make: Entering directory `/root/android/system'
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: libcompiler_rt-extras <= external/compiler-rt/lib/builtins/mulodi4.c
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by prebuilts/clang/linux-x86/host/3.6/bin/clang)
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by prebuilts/clang/linux-x86/host/3.6/bin/clang)
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /root/android/system/prebuilts/clang/linux-x86/host/3.6/bin/../lib64/libc++.so)
make: *** [/root/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** Waiting for unfinished jobs....
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by prebuilts/clang/linux-x86/host/3.6/bin/clang)
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by prebuilts/clang/linux-x86/host/3.6/bin/clang)
prebuilts/clang/linux-x86/host/3.6/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /root/android/system/prebuilts/clang/linux-x86/host/3.6/bin/../lib64/libc++.so)
make: *** [/root/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 1
make: *** wait: No child processes. Stop.
#### make failed to build some targets (03:31 (mm:ss)) ####

Need Help

Hi
I try sailfish on redmi note 3 to Porten
I did everything as described in the manual
but whenever I make -j4 hybris hal I inspire get the following error message .... maybe can have someone help me
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160829-UNOFFICIAL-kenzo
TARGET_PRODUCT=cm_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-34-generic-x86_64-with-LinuxMint-18-sarah
HOST_BUILD_TYPE=release
BUILD_ID=MMB29U
OUT_DIR=/home/n1ce/ANDROID_ROOT/out
============================================
find: ‘../opt/telephony/src/java/android/provider’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony/gsm’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/rtp’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/sip’: No such file or directory
find: ‘../opt/telephony/src/java/android/provider’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony/gsm’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/rtp’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/sip’: No such file or directory
find: ‘../../frameworks/data-binding/baseLibrary/src/main’: No such file or directory
find: ‘../../frameworks/data-binding/library/src/main’: No such file or directory
find: ‘../../frameworks/data-binding/library/src/doc’: No such file or directory
find: ‘../../frameworks/support/annotations’: No such file or directory
find: ‘../../frameworks/support/v4’: No such file or directory
find: ‘../../frameworks/support/v7/gridlayout’: No such file or directory
find: ‘../../frameworks/support/v7/cardview’: No such file or directory
find: ‘../../frameworks/support/v7/mediarouter’: No such file or directory
find: ‘../../frameworks/support/v7/palette’: No such file or directory
find: ‘../../frameworks/support/v8/renderscript’: No such file or directory
find: ‘../../frameworks/support/v13’: No such file or directory
find: ‘../../frameworks/support/v17/leanback’: No such file or directory
find: ‘../../frameworks/support/design’: No such file or directory
find: ‘../../frameworks/support/percent’: No such file or directory
find: ‘../../frameworks/support/recommendation’: No such file or directory
find: ‘../../frameworks/support/v7/preference’: No such file or directory
find: ‘../../frameworks/support/v14/preference’: No such file or directory
find: ‘../../frameworks/support/v17/preference-leanback’: No such file or directory
find: ‘../../frameworks/support/customtabs’: No such file or directory
find: ‘../../frameworks/multidex/library/src’: No such file or directory
find: ‘../../frameworks/multidex/instrumentation/src’: No such file or directory
find: ‘../../frameworks/support/v7/appcompat/src’: No such file or directory
find: ‘../../frameworks/support/v7/recyclerview/src’: No such file or directory
find: ‘../opt/telephony/src/java/android/provider’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony’: No such file or directory
find: ‘../opt/telephony/src/java/android/telephony/gsm’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/rtp’: No such file or directory
find: ‘../opt/net/voip/src/java/android/net/sip’: No such file or directory
find: ‘../../external/nist-sip/java’: No such file or directory
find: ‘../../external/tagsoup/src’: No such file or directory
external/speex/Android.mk:55: TODOArm64: enable neon in libspeex
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/c2d2.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/include/qcom/display/c2d2.h'
hybris/hybris-boot/Android.mk:67: ********************* /boot appears to live on /dev/block/bootdevice/by-name/boot
hybris/hybris-boot/Android.mk:68: ********************* /data appears to live on /dev/block/bootdevice/by-name/userdata
No private recovery resources for TARGET_DEVICE kenzo
target SharedLib: libc (/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so)
hybris/hybris-boot/fixup-mountpoints "kenzo" "/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-recovery_intermediates/init"
Fixing mount-points for device kenzo
hybris/hybris-boot/fixup-mountpoints: 61: hybris/hybris-boot/fixup-mountpoints: Syntax error: ")" unexpected (expecting ";;")
hybris/hybris-boot/Android.mk:195: recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-recovery_intermediates/init' failed
make: *** [/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-recovery_intermediates/init] Error 2
make: *** Deleting file '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-recovery_intermediates/init'
make: *** Waiting for unfinished jobs....
hybris/hybris-boot/fixup-mountpoints "kenzo" "/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-boot_intermediates/init"
Fixing mount-points for device kenzo
hybris/hybris-boot/fixup-mountpoints: 61: hybris/hybris-boot/fixup-mountpoints: Syntax error: ")" unexpected (expecting ";;")
hybris/hybris-boot/Android.mk:154: recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-boot_intermediates/init' failed
make: *** [/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-boot_intermediates/init] Error 2
make: *** Deleting file '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/ROOT/hybris-boot_intermediates/init'
target SharedLib: libm_32 (/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj_arm/SHARED_LIBRARIES/libm_intermediates/LINKED/libm.so)
/home/n1ce/ANDROID_ROOT/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: /home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a(__bionic_clone.o)(.text+0x18): unresolvable R_AARCH64_CONDBR19 relocation against symbol `__set_errno_internal'
/home/n1ce/ANDROID_ROOT/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
build/core/shared_library_internal.mk:80: recipe for target '/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so' failed
make: *** [/home/n1ce/ANDROID_ROOT/out/target/product/kenzo/obj/SHARED_LIBRARIES/libc_intermediates/LINKED/libc.so] Error 1
#### make failed to build some targets (36 seconds) ####
No frameworks library? Did u sync the repo correctly? And is sailfish os compatible with your device tree(android versions).
Are kernel sources of redmi note 3 are out???
What did u do?
I thank them it was a great tip I have all errors resolved now but now I have a new , there are not the mount point found although I did it but matrimonial right
help is really welcome
View attachment 3877392
View attachment 3877393
View attachment 3877394

Omnirom Compile Error | Device: Find7 | Android 7.1

I tried to compile omnirom from source, as descripted at the github page of omnirom (/omnirom/android), but right at the beginning there was the following error message:
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Here is the output (after the includes) of brunch find7:
PRODUCT_COPY_FILES device/oppo/msm8974-common/configs/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/oppo/msm8974-common/configs/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/oppo/msm8974-common/sensor/sap.conf:system/etc/sap.conf ignored.
PRODUCT_COPY_FILES vendor/qcom/binaries/msm8974/graphics/proprietary/vendor/lib/libadreno_utils.so:system/vendor/lib/libadreno_utils.so ignored.
No private recovery resources for TARGET_DEVICE find7
device/oppo/msm8974-common/camerawrapper/Android.mk:25: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/camera-wrapper.msm8974.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/camera-wrapper.msm8974.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/nfc.default.so'
build/core/Makefile:1098: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.cpio'
build/core/Makefile:1054: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.cpio'
build/core/Makefile:1104: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.img'
build/core/Makefile:1060: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.img'
device/oppo/msm8974-common/mkbootimg.mk:15: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/boot.img'
build/core/Makefile:583: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/boot.img'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 5/31136] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed
[ 0% 5/31136] Yacc: aidl <= system/tools/aidl/aidl_language_y.yy
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=/home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h -o /home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp system/tools/aidl/aidl_language_y.yy"
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[ 0% 5/31136] host Java: doclava (/ho...BRARIES/doclava_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
real 0m25.565s
user 0m33.620s
sys 0m3.068s
And here is the output of "breakfast find7":
breakfast find7
Looking for dependencies on: device/oppo/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=omni_find7
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N4F26O
OUT_DIR=/home/user/android/omni/out
May someone of you can help me
UserWhoNeedsHelpForFind7 said:
I tried to compile omnirom from source, as descripted at the github page of omnirom (/omnirom/android), but right at the beginning there was the following error message:
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Here is the output (after the includes) of brunch find7:
PRODUCT_COPY_FILES device/oppo/msm8974-common/configs/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/oppo/msm8974-common/configs/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/oppo/msm8974-common/sensor/sap.conf:system/etc/sap.conf ignored.
PRODUCT_COPY_FILES vendor/qcom/binaries/msm8974/graphics/proprietary/vendor/lib/libadreno_utils.so:system/vendor/lib/libadreno_utils.so ignored.
No private recovery resources for TARGET_DEVICE find7
device/oppo/msm8974-common/camerawrapper/Android.mk:25: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/camera-wrapper.msm8974.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/camera-wrapper.msm8974.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/nfc.default.so'
build/core/Makefile:1098: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.cpio'
build/core/Makefile:1054: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.cpio'
build/core/Makefile:1104: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.img'
build/core/Makefile:1060: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.img'
device/oppo/msm8974-common/mkbootimg.mk:15: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/boot.img'
build/core/Makefile:583: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/boot.img'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 5/31136] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed
[ 0% 5/31136] Yacc: aidl <= system/tools/aidl/aidl_language_y.yy
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=/home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h -o /home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp system/tools/aidl/aidl_language_y.yy"
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[ 0% 5/31136] host Java: doclava (/ho...BRARIES/doclava_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
real 0m25.565s
user 0m33.620s
sys 0m3.068s
And here is the output of "breakfast find7":
breakfast find7
Looking for dependencies on: device/oppo/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=omni_find7
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N4F26O
OUT_DIR=/home/user/android/omni/out
May someone of you can help me
Click to expand...
Click to collapse
I ran into this too.. (Find7op build) I'm still working on fixing this, but my build time is limited..
Looks like your build env setup is missing some required deps (g++lib). Follow this guide here: https://docs.omnirom.org/Build_for_i9300
Make sure to also install the package deps for 64bit hosts.
golden-guy said:
Looks like your build env setup is missing some required deps (g++lib). Follow this guide here: https://docs.omnirom.org/Build_for_i9300
Make sure to also install the package deps for 64bit hosts.
Click to expand...
Click to collapse
I get this error while building LOS 14.1
Could you please help?
Code:
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/dev-k/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[ 0% 4/56326] host C++: libbase <= system/core/base/errors_unix.cpp
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
Thanks

Trouble compiling omnirom for existing device

Hello all,
I'm getting started with Omnirom and wanted to compile a new device. After reading up on how this should be done, I tried a to set up a new device and compile but that resulted in errors. I figured it would be better to start out by trying to compile an existing device, however I get the same error message. Figuring this might be due to my set up, I ran the compilation in a clean docker instance with freshly installed openjdk-8-jdk and build tools, but same problem. I tried to find information about the error but there is not much to find online, so therefore I'm requesting your help.
The error I keep getting is:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/javalib.jar', needed by '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/compatibility-common-util-hostsidelib_intermediates/classes-full-debug.jar', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Details about the steps and error are below:
Init and sync:
Code:
repo init -u git://github.com/omnirom/android.git -b android-7.1
repo sync
Add device in .repo/local_manifests:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/xiaomi/kenzo" name="android_device_xiaomi_kenzo" remote="omnirom" revision="android-7.1" />
</manifest>
Compile:
Code:
[email protected]:~/dev/doit2$ . build/envsetup.sh
including device/xiaomi/kenzo/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/dev/doit2$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. omni_kenzo-userdebug
Which would you like? [aosp_arm-eng] 7
Looking for dependencies on: device/xiaomi/msm8956-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
TARGET_PRODUCT=omni_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-32-generic-x86_64-with-Ubuntu-17.10-artful
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/floeperd/dev/doit2/out
============================================
but I always end up with this error:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/platform-test-annotations-host_intermediates/javalib.jar', needed by '/home/floeperd/dev/doit2/out/host/common/obj/JAVA_LIBRARIES/compatibility-common-util-hostsidelib_intermediates/classes-full-debug.jar', missing and no known rule to make it
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
I would appreciate any help. Thank you.

Categories

Resources