6P Devs, I need your help here. I'm a complete noob trying to learn how to just compile and build AOSP and make little changes for my own personal build. I've already successfully compiled once (after many tries and failures) but it didn't have any google services installed and it overwrote my TWRP recovery, so now I'm just trying to compile it again without recovery. However, I'm getting this error:
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: unknown target 'otapackage'
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (42 seconds) ####
Below is the complete log. Any ideas?
Code:
[email protected]:~/stock_build$ make otapackage -j8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
TARGET_PRODUCT=aosp_angler
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.4.0-42-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=NBD90X
OUT_DIR=out
============================================
Running kati to generate build-aosp_angler.ninja...
$(shell cd libcore && ls -d */src/test/{java,resources} 2> /dev/null) was changed, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
TARGET_PRODUCT=aosp_angler
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.4.0-42-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=NBD90X
OUT_DIR=out
============================================
including ./abi/cpp/Android.mk ...
including ./art/Android.mk ...
including ./bionic/Android.mk ...
including ./bootable/recovery/Android.mk ...
including ./build/libs/host/Android.mk ...
including ./build/target/board/Android.mk ...
including ./build/target/product/security/Android.mk ...
including ./build/tools/Android.mk ...
including ./cts/Android.mk ...
FindEmulator: find: `cts/apps/CtsVerifier/src/android': No such file or directory
FindEmulator: find: `cts/hostsidetests/os/test-apps/HostLinkVerificationApp/src': No such file or directory
FindEmulator: find: `cts/libs/commonutil/src': No such file or directory
FindEmulator: cd: cts/tests/libcore/ojluni/resources: No such file or directory
FindEmulator: find: `cts/libs/commonutil/src': No such file or directory
<Snip>
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
<Snip>
including ./external/dbus-binding-generator/Android.mk ...
including ./external/dbus/Android.mk ...
including ./external/deqp/Android.mk ...
build/core/binary.mk:1196: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1196: external/deqp/Android.mk: libdeqp: Unused source files: \
including ./external/dexmaker/Android.mk ...
including ./external/dhcpcd-6.8.2/Android.mk ...
including ./external/dng_sdk/Android.mk ...
including ./external/dnsmasq/Android.mk ...
<Snip>
including ./external/modp_b64/Android.mk ...
including ./external/mp4parser/Android.mk ...
including ./external/mtpd/Android.mk ...
<Snip>
including ./external/pdfium/third_party/Android.mk ...
build/core/binary.mk:1196: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1196: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
including ./external/piex/Android.mk ...
including ./external/ppp/pppd/Android.mk ...
<Snip>
including ./frameworks/av/tools/resampler_tools/Android.mk ...
including ./frameworks/base/Android.mk ...
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
including ./frameworks/compile/libbcc/Android.mk ...
<Snip>
including ./frameworks/native/vulkan/Android.mk ...
including ./frameworks/opt/bitmap/Android.mk ...
including ./frameworks/opt/bluetooth/Android.mk ...
FindEmulator: find: `frameworks/opt/bluetooth/src/android/bluetooth/client/pbap': No such file or directory
including ./frameworks/opt/calendar/Android.mk ...
including ./frameworks/opt/chips/Android.mk ...
including ./frameworks/opt/colorpicker/Android.mk ...
<Snip>
including ./frameworks/opt/net/wifi/tests/Android.mk ...
find: ‘out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
including ./frameworks/opt/photoviewer/Android.mk ...
including ./frameworks/opt/setupwizard/library/Android.mk ...
including ./frameworks/opt/setupwizard/navigationbar/Android.mk ...
including ./frameworks/opt/telephony/Android.mk ...
including ./frameworks/opt/timezonepicker/Android.mk ...
including ./frameworks/opt/vcard/Android.mk ...
including ./frameworks/rs/Android.mk ...
including ./frameworks/support/Android.mk ...
FindEmulator: find: `frameworks/support/design/dummy': No such file or directory
FindEmulator: find: `frameworks/support/v17/leanback/dummy': No such file or directory
FindEmulator: find: `frameworks/support/v17/preference-leanback/dummy': No such file or directory
including ./frameworks/volley/Android.mk ...
including ./frameworks/webview/Android.mk ...
<Snip>
including ./packages/apps/CertInstaller/Android.mk ...
including ./packages/apps/Contacts/Android.mk ...
FindEmulator: find: `packages/apps/Contacts/src-N': No such file or directory
FindEmulator: find: `packages/apps/PhoneCommon/src-N': No such file or directory
including ./packages/apps/DeskClock/Android.mk ...
including ./packages/apps/DevCamera/Android.mk ...
including ./packages/apps/Dialer/Android.mk ...
FindEmulator: find: `packages/apps/Dialer/InCallUI/src-N': No such file or directory
FindEmulator: find: `packages/apps/PhoneCommon/src-N': No such file or directory
including ./packages/apps/Email/Android.mk ...
including ./packages/apps/EmergencyInfo/Android.mk ...
including ./packages/apps/ExactCalculator/Android.mk ...
<Snip>
including ./packages/screensavers/WebView/Android.mk ...
including ./packages/services/Car/Android.mk ...
FindEmulator: find: `packages/services/Car/car-support-lib/dummy': No such file or directory
including ./packages/services/Mms/Android.mk ...
including ./packages/services/Telecomm/Android.mk ...
including ./packages/services/Telephony/Android.mk ...
including ./packages/wallpapers/LivePicker/Android.mk ...
including ./pdk/apps/HelloPDK/Android.mk ...
including ./pdk/apps/TestingCamera/Android.mk ...
including ./pdk/apps/TestingCamera2/Android.mk ...
including ./platform_testing/libraries/annotations/Android.mk ...
including ./platform_testing/libraries/app-helpers/Android.mk ...
FindEmulator: find: `platform_testing/libraries/app-helpers/src': No such file or directory
FindEmulator: find: `platform_testing/libraries/app-helpers/src': No such file or directory
including ./platform_testing/libraries/aupt-lib/Android.mk ...
including ./platform_testing/libraries/base-app-helpers/Android.mk ...
including ./platform_testing/libraries/chrome-app-helper/Android.mk ...
<Snip>
including ./prebuilts/qemu-kernel/x86/pc-bios/Android.mk ...
including ./prebuilts/sdk/Android.mk ...
including ./prebuilts/tools/Android.mk ...
FindEmulator: find: `prebuilts/tools/android-arm64': No such file or directory
including ./sdk/annotations/Android.mk ...
including ./sdk/avdlauncher/Android.mk ...
<Snip>
including ./system/webservd/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/huawei/angler/fstab.angler:root/fstab.angler ignored.
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: unknown target 'otapackage'
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (42 seconds) ####
It's been 6 days now and I'm running into the same issue; have you figured anything out yet?
just try make -j8
then flash the .img files with fastboot
Just if someone is interested in an answer - starting with Android O (8.0) the recovery is now mandatory for the otapackage target, so if the device tree contains directives to skip recovery building (e.g. TARGET_NO_RECOVERY := true), otapackage target also disappears.
Related
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.
I'm am a n00b at compiling, but am trying to learn. I want to start messing aroundith some developing and have to get the foot in the door some where. I know this is probably a complete noob question, but his was my first time ever tring to build and am looking for help. I'm trying to compile AOKP but I keep getting a build error at he beginning. Any help will be gratefully appriciated and will help me become better at this. Now for all the code:
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/armv7-a/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/aokp/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/aokp/vendorsetup.sh
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=aokp_grouper
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.5.0-17-generic-x86_64-with-Ubuntu-12.10-quantal
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=/home/genstukov/android/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=aokp_grouper
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.5.0-17-generic-x86_64-with-Ubuntu-12.10-quantal
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=/home/genstukov/android/out
============================================
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory
find: `src': No such file or directory
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Effect_Tick.ogg:system/media/audio/ui/Effect_Tick.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click.ogg:system/media/audio/ui/camera_click.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/LowBattery.ogg:system/media/audio/ui/LowBattery.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Dock.ogg:system/media/audio/ui/Dock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Undock.ogg:system/media/audio/ui/Undock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Lock.ogg:system/media/audio/ui/Lock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Unlock.ogg:system/media/audio/ui/Unlock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard_120.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar_120.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete_120.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn_120.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.
build/core/Makefile:43: warning: overriding commands for target `/home/genstukov/android/out/target/product/grouper/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/home/genstukov/android/out/target/product/grouper/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE grouper
build/core/tasks/kernel.mk:40: ***************************************************************
build/core/tasks/kernel.mk:41: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:42: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:43: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:44: * source repository to kernel/asus/grouper
build/core/tasks/kernel.mk:45: * See http://wiki.cyanogenmod.com/wiki/Integrated_kernel_building
build/core/tasks/kernel.mk:46: * for more information *
build/core/tasks/kernel.mk:47: ***************************************************************
make: *** No rule to make target `/home/genstukov/android/out/target/product/grouper/kernel', needed by `/home/genstukov/android/out/target/product/grouper/boot.img'. Stop.
Click to expand...
Click to collapse
And now for the question, how can I fix this?
You don't have kernel in the specified path. Clone the CM10.1 kernel, then create the path in the error. Move the files from the clone and you should be good.
To clone the CM kernel, create your kernel clone folder in your home directory. It will look something like this from the terminal:
[email protected]:~$ mkdir ~/cyanogenkernel
[email protected]:~$ cd ~/cyanogenkernel
[email protected]:~/cyanogenkernel$ git clone git://github.com/CyanogenMod/android_kernel_asus_grouper.git
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)) ####
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
i am getting an error but i dont know why its generating....
Started by user Govind Pathak
Building on master in workspace /home/govind/a
[a] $ /bin/bash /tmp/hudson7060322579195071189.sh
Set cache size limit to 50.0 Gbytes
including device/oneplus/cheeseburger/vendorsetup.sh
including vendor/aos/vendorsetup.sh
including sdk/bash_completion/adb.bash
vendor/aos/config/common.mk:143: Root method is undefined, please use 'WITH_ROOT := true' to define it
vendor/aos/config/common.mk:143: Root method is undefined, please use 'WITH_ROOT := true' to define it
Trying dependencies-only mode on anon-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
AOS_MOD_VERSION=Atomic-OS-1.5-cheeseburger-20170818-1644-LabMade
TARGET_PRODUCT=aos_cheeseburger
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.9.0-2-amd64-x86_64-Debian-GNU/Linux-9-(stretch)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/govind/a/out
============================================
vendor/aos/config/common.mk:143: Root method is undefined, please use 'WITH_ROOT := true' to define it
=====Team DarkNess Presents=======
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
AOS_MOD_VERSION=Atomic-OS-1.5-cheeseburger-20170818-1644-LabMade
TARGET_PRODUCT=aos_cheeseburger
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.9.0-2-amd64-x86_64-with-debian-9.0
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/govind/a/out
============================================
Running kati to generate build-aos_cheeseburger.ninja...
Environment variable BUILD_NUMBER was modified (220 => 221), regenerating...
vendor/aos/config/common.mk:143: Root method is undefined, please use 'WITH_ROOT := true' to define it
=====Team DarkNess Presents=======
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
AOS_MOD_VERSION=Atomic-OS-1.5-cheeseburger-20170818-1644-LabMade
TARGET_PRODUCT=aos_cheeseburger
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=kryo
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=kryo
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.9.0-2-amd64-x86_64-with-debian-9.0
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/govind/a/out
============================================
mv: cannot stat '/home/govind/a/out/target/product/cheeseburger/clean_steps.mk.tmp': No such file or directory
Disabling ART_BUILD_TARGET_DEBUG
Disabling ART_BUILD_HOST_DEBUG
build/core/binary.mk:1267: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1267: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1267: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1267: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/govind/a/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
PRODUCT_COPY_FILES device/oneplus/cheeseburger/rootdir/etc/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/govind/a/out/target/product/cheeseburger/system/etc/libnfc-brcm.conf'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/govind/a/out/target/product/cheeseburger/system/etc/libnfc-brcm.conf'
build/core/Makefile:46: warning: overriding commands for target `/home/govind/a/out/target/product/cheeseburger/system/etc/libnfc-nxp.conf'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/govind/a/out/target/product/cheeseburger/system/etc/libnfc-nxp.conf'
build/core/Makefile:46: warning: overriding commands for target `/home/govind/a/out/target/product/cheeseburger/system/lib64/libjni_latinime.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `/home/govind/a/out/target/product/cheeseburger/system/lib64/libjni_latinime.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/govind/a/out/target/product/cheeseburger/obj/STATIC_LIBRARIES/librecovery_ui_msm_intermediates/export_includes', needed by '/home/govind/a/out/target/product/cheeseburger/obj/EXECUTABLES/recovery_intermediates/import_includes', missing and no known rule to make it
make: *** [ninja_wrapper] Error 1
yes i synced device/qcom/common
any help will be appriciated
"Trying dependencies-only mode on anon-existing device tree?"
The above error is the real error if my memory serves .. Sometthing to do with roomservice.xml or what its called in the ROM you are trying to build.. Sorry I'm a bit rusty, haven't build since Lollipop but Check the dependencies.