compile cm9 - mac osx - Optimus One, P500, V General

Hello everybody, I'm trying to compile a version of CM9 but is giving this error.
I'm using mac osx
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_p500
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv6-vfp
HOST_ARCH=x86
HOST_OS=darwin
HOST_BUILD_TYPE=release
BUILD_ID=IMM76D
============================================
build/core/base_rules.mk:78: *** Module name: clearsilver
build/core/base_rules.mk:79: *** Makefile location: external/clearsilver/java-jni
build/core/base_rules.mk:80: *
build/core/base_rules.mk:81: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:82: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:83: *
build/core/base_rules.mk:84: * optional, debug, eng, tests, samples
build/core/base_rules.mk:85: *
build/core/base_rules.mk:86: * If the module is expected to be in all builds
build/core/base_rules.mk:87: * of a product, then it should use the
build/core/base_rules.mk:88: * "optional" tag:
build/core/base_rules.mk:89: *
build/core/base_rules.mk:90: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:91: * Android.mk for the affected module, and add
build/core/base_rules.mk:92: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:93: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:94: * makefile(s) where it's necessary, if
build/core/base_rules.mk:95: * appropriate.
build/core/base_rules.mk:96: *
build/core/base_rules.mk:97: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:98: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:99: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:100: * build/target/product/core.mk
build/core/base_rules.mk:101: *
build/core/base_rules.mk:102: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.
MacBook-de-michel-melo:system michelmelo$
Click to expand...
Click to collapse

Related

Building a ROM from scratch for the YP-GS1

Ok, so I have downloaded the YP-GS1_NA_GB_Opensource.zip from the opensource Samsung website. I have then followed the instructions on the source.android.com website. So far I am at the repo sync portion. I have read ahead while waiting for the sync to finish and I am a bit confused as to what it is going to take to make a flashable ROM from the Samsung Opensource and the Android Source. I know that it is for Gingerbread, but I would like to try to get Jelly Bean working. Am I wasting my time? If not, could I get some instruction?
Thanks!
saleenman95 said:
Ok, so I have downloaded the YP-GS1_NA_GB_Opensource.zip from the opensource Samsung website. I have then followed the instructions on the source.android.com website. So far I am at the repo sync portion. I have read ahead while waiting for the sync to finish and I am a bit confused as to what it is going to take to make a flashable ROM from the Samsung Opensource and the Android Source. I know that it is for Gingerbread, but I would like to try to get Jelly Bean working. Am I wasting my time? If not, could I get some instruction?
Thanks!
Click to expand...
Click to collapse
Don't try and build jellybean yet. Get GB working first then you can work on getting CM7 for your device. Then work on CM9 and the 3.0 kernel. Then you will have the right files to build jellybean from. However if you can find an identical device (same CPU, GPU, board, partitions etc...) then you might be able to go straight to jellybean
status bar error
i have started making a rom and i have just added slide to dismiss for the status bar, but then when i go to do it the status bar closes and i get this error from alogcat:
E/AndroidRuntime( 2414): FATAL EXCEPTION: main
E/AndroidRuntime( 2414): java.lang.NoSuchMethodError: onNotificationClear
E/AndroidRuntime( 2414): at com.android.systemui.statusbar.StatusBarService$7.run(StatusBarService.java:726)
E/AndroidRuntime( 2414): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 2414): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 2414): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2414): at android.app.ActivityThread.main(ActivityThread.java:3687)
E/AndroidRuntime( 2414): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2414): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2414): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
E/AndroidRuntime( 2414): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
E/AndroidRuntime( 2414): at dalvik.system.NativeStart.main(Native Method)
E/ ( 671): Dumpstate > /data/log/dumpstate_app_error
E/DropBoxManagerService( 671): Can't write: system_app_crash
E/DropBoxManagerService( 671): java.io.IOException: Can't list files: /data/system/dropbox
E/DropBoxManagerService( 671): at com.android.server.DropBoxManagerService.init(DropBoxManagerService.java:552)
E/DropBoxManagerService( 671): at com.android.server.DropBoxManagerService.add(DropBoxManagerService.java:162)
E/DropBoxManagerService( 671): at android.os.DropBoxManager.addText(DropBoxManager.java:243)
E/DropBoxManagerService( 671): at com.android.server.am.ActivityManagerService$11.run(ActivityManagerService.java:6876)
it seems as it doesnt know how to handle it. anyone know how i can fix this?
the file that is attached is the dumpstate error.
I have a problem, when I try to build the platform I get the following output:
Code:
[email protected]:~/WORKING_DIRECTORY$ sudo ./build.sh eng
./build.sh: line 43: cd: /home/austin/WORKING_DIRECTORY/Android: No such file or directory
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv5te
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/base_rules.mk:78: *** Module name: elftree
build/core/base_rules.mk:79: *** Makefile location: development/tools/elftree
build/core/base_rules.mk:80: *
build/core/base_rules.mk:81: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:82: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:83: *
build/core/base_rules.mk:84: * optional, debug, eng, tests, samples
build/core/base_rules.mk:85: *
build/core/base_rules.mk:86: * If the module is expected to be in all builds
build/core/base_rules.mk:87: * of a product, then it should use the
build/core/base_rules.mk:88: * "optional" tag:
build/core/base_rules.mk:89: *
build/core/base_rules.mk:90: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:91: * Android.mk for the affected module, and add
build/core/base_rules.mk:92: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:93: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:94: * makefile(s) where it's necessary, if
build/core/base_rules.mk:95: * appropriate.
build/core/base_rules.mk:96: *
build/core/base_rules.mk:97: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:98: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:99: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:100: * build/target/product/core.mk
build/core/base_rules.mk:101: *
build/core/base_rules.mk:102: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv5te
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
*** Build configuration changed: "full-eng-{en_US,cs_CZ,da_DK,de_AT,de_CH,de_DE,de_LI,el_GR,en_AU,en_CA,en_GB,en_NZ,en_SG,en_US,es_ES,fr_CA,fr_CH,fr_BE,fr_FR,it_CH,it_IT,ja_JP,ko_KR,nb_NO,nl_BE,nl_NL,pl_PL,pt_PT,ru_RU,sv_SE,tr_TR,zh_CN,zh_HK,zh_TW,en_US,fr_FR,it_IT,es_ES,de_DE,nl_NL,cs_CZ,pl_PL,ja_JP,zh_TW,zh_CN,ru_RU,ko_KR,nb_NO,es_US,da_DK,el_GR,tr_TR,pt_PT,pt_BR,rm_CH,sv_SE,bg_BG,ca_ES,en_GB,fi_FI,hi_IN,hr_HR,hu_HU,in_ID,iw_IL,lt_LT,lv_LV,ro_RO,sk_SK,sl_SI,sr_RS,uk_UA,vi_VN,tl_PH,ar_EG,fa_IR,th_TH,sw_TZ,ms_MY,af_ZA,zu_ZA,mdpi,nodpi}" -> "generic-eng-{mdpi,nodpi}"
*** Forcing "make installclean"...
*** rm -rf out/target/product/generic/data/* out/target/product/generic/data-qemu/* out/target/product/generic/userdata-qemu.img out/host/linux-x86/obj/NOTICE_FILES out/host/linux-x86/sdk out/target/product/generic/*.img out/target/product/generic/*.txt out/target/product/generic/*.xlb out/target/product/generic/*.zip out/target/product/generic/data out/target/product/generic/obj/APPS out/target/product/generic/obj/NOTICE_FILES out/target/product/generic/obj/PACKAGING out/target/product/generic/recovery out/target/product/generic/root out/target/product/generic/system out/target/product/generic/dex_bootjars out/target/product/generic/obj/JAVA_LIBRARIES out/target/product/generic/obj/FAKE
*** Done with the cleaning, now starting the real build.
build/core/base_rules.mk:78: *** Module name: elftree
build/core/base_rules.mk:79: *** Makefile location: development/tools/elftree
build/core/base_rules.mk:80: *
build/core/base_rules.mk:81: * Each module must use a LOCAL_MODULE_TAGS in its
build/core/base_rules.mk:82: * Android.mk. Possible tags declared by a module:
build/core/base_rules.mk:83: *
build/core/base_rules.mk:84: * optional, debug, eng, tests, samples
build/core/base_rules.mk:85: *
build/core/base_rules.mk:86: * If the module is expected to be in all builds
build/core/base_rules.mk:87: * of a product, then it should use the
build/core/base_rules.mk:88: * "optional" tag:
build/core/base_rules.mk:89: *
build/core/base_rules.mk:90: * Add "LOCAL_MODULE_TAGS := optional" in the
build/core/base_rules.mk:91: * Android.mk for the affected module, and add
build/core/base_rules.mk:92: * the LOCAL_MODULE value for that component
build/core/base_rules.mk:93: * into the PRODUCT_PACKAGES section of product
build/core/base_rules.mk:94: * makefile(s) where it's necessary, if
build/core/base_rules.mk:95: * appropriate.
build/core/base_rules.mk:96: *
build/core/base_rules.mk:97: * If the component should be in EVERY build of ALL
build/core/base_rules.mk:98: * products, then add its LOCAL_MODULE value to the
build/core/base_rules.mk:99: * PRODUCT_PACKAGES section of
build/core/base_rules.mk:100: * build/target/product/core.mk
build/core/base_rules.mk:101: *
build/core/base_rules.mk:102: *** user tag detected on new module - user tags are only supported on legacy modules. Stop.

Rom Building Error...

Code:
[email protected]:~/aosp/frameworks/base$ cd
[email protected]:~$ cd aosp
[email protected]:~/aosp$ source build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/generic/armv7-a-neon/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_slsi/arndale/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/aosp$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. aosp_deb-userdebug
6. aosp_flo-userdebug
7. full_grouper-userdebug
8. full_tilapia-userdebug
9. mini_armv7a_neon-userdebug
10. mini_mips-userdebug
11. mini_x86-userdebug
12. full_mako-userdebug
13. full_maguro-userdebug
14. full_manta-userdebug
15. full_arndale-userdebug
16. full_toroplus-userdebug
17. full_toro-userdebug
18. full_panda-userdebug
Which would you like? [aosp_arm-eng] 12
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=full_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
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JWR66Y
OUT_DIR=out
============================================
[email protected]:~/aosp$ make otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=full_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
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JWR66Y
OUT_DIR=out
============================================
build/core/base_rules.mk:64: *** Module name: platform.xml
build/core/base_rules.mk:65: *** Makefile location: frameworks/base/data/etc/Android.mk
build/core/base_rules.mk:66: *
build/core/base_rules.mk:67: * Module is attempting to use the 'user' tag. This
build/core/base_rules.mk:68: * used to cause the module to be installed automatically.
build/core/base_rules.mk:69: * Now, the module must be listed in the PRODUCT_PACKAGES
build/core/base_rules.mk:70: * section of a product makefile to have it installed.
build/core/base_rules.mk:71: *
build/core/base_rules.mk:72: *** user tag detected on module.. Alto.
How Fix? Thks

Trying to comile cm11 branch hammerhead

Hi guys, i am trying to compile CM11 from branch to hammerhead device.
after a breakfast hammerhead, and brunch hammerhead, it always fails with:
brunch hammerhead
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
/home/salatiel/android/system/out/target/product/hammerhead/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
MAJOR_VERSION=4
MINOR_VERSION=4
build/core/Makefile:44: warning: overriding commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
find: `bootable/recovery/res-1080': No such file or directory
No private recovery resources for TARGET_DEVICE hammerhead
build/core/tasks/kernel.mk:63: ***************************************************************
build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:67: * source repository to kernel/lge/hammerhead
build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:69: * for more information *
build/core/tasks/kernel.mk:70: ***************************************************************
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
host C: libmincrypt <= system/core/libmincrypt/p256.c
host C: libmincrypt <= system/core/libmincrypt/p256_ec.c
host C: libmincrypt <= system/core/libmincrypt/p256_ecdsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
host C: libmincrypt <= system/core/libmincrypt/sha.c
host C: libmincrypt <= system/core/libmincrypt/sha256.c
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
host C: libhost <= build/libs/host/CopyFile.c
make: *** No rule to make target `/home/salatiel/android/system/out/target/product/hammerhead/kernel', needed by `/home/salatiel/android/system/out/target/product/hammerhead/boot.img'. Stop.
Any ideas how i can fix this ?
Thanks!
salatiel said:
Hi guys, i am trying to compile CM11 from branch to hammerhead device.
after a breakfast hammerhead, and brunch hammerhead, it always fails with:
brunch hammerhead
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
/home/salatiel/android/system/out/target/product/hammerhead/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
MAJOR_VERSION=4
MINOR_VERSION=4
build/core/Makefile:44: warning: overriding commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
find: `bootable/recovery/res-1080': No such file or directory
No private recovery resources for TARGET_DEVICE hammerhead
build/core/tasks/kernel.mk:63: ***************************************************************
build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:67: * source repository to kernel/lge/hammerhead
build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:69: * for more information *
build/core/tasks/kernel.mk:70: ***************************************************************
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
host C: libmincrypt <= system/core/libmincrypt/p256.c
host C: libmincrypt <= system/core/libmincrypt/p256_ec.c
host C: libmincrypt <= system/core/libmincrypt/p256_ecdsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
host C: libmincrypt <= system/core/libmincrypt/sha.c
host C: libmincrypt <= system/core/libmincrypt/sha256.c
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
host C: libhost <= build/libs/host/CopyFile.c
make: *** No rule to make target `/home/salatiel/android/system/out/target/product/hammerhead/kernel', needed by `/home/salatiel/android/system/out/target/product/hammerhead/boot.img'. Stop.
Any ideas how i can fix this ?
Thanks!
Click to expand...
Click to collapse
resync your cm11 tree.
make sure you have net connection is working
remove your out folder
remove your local manifests folder in repo
dont put any of device , vendor or kernel folder of hammerhead in your cm11 tree.
just give following commands
. build/envsetup.sh
brunch hammerhead
Click to expand...
Click to collapse
it will resync the hammerhead dependencies and make a build with official hammerhead repos from cyanogenmod
Thanks @k2wl .
Actually i found out the problem.
I had to manually clone https://github.com/CyanogenMod/android_kernel_lge_hammerhead.git in the kernel/lge/hammerhead directory
CM11 branch for hammerhead is a lot more stable than the latest nightly released in january, but unfortunatelly the camera wont record anything :/
So i stayed at the January nightly and created just a zip to replace all the libstagefright* from the build i created.
It worked =)

Please help build LineageOS 15 from sources

Hello! I am trying to build LineageOS 15 from sources for Sony Xperia Z3Dual. I have several years of c/c++ programming experience but this is my first Android project. So despite reading several howtos it is possible that I made some stupid and/or funny mistakes
I cloned the LOS 15
Code:
repo init -u git://github.com/LineageOS/android.git -b lineage-15.0
and added several Sony Xperia Z3 repositories with localmanifest:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!--Devices-->
<project path="device/sony/z3"
name="x-keita/android_device_sony_z3" remote="github"
revision="lineage-15.0_r1" />
<!--Devices commons-->
<project path="device/sony/shinano-common"
name="x-keita/android_device_sony_shinano-common" remote="github"
revision="lineage-15.0_r1" />
<project path="device/sony/msm8974-common"
name="x-keita/android_device_sony_msm8974-common" remote="github"
revision="lineage-15.0_r1" />
<!--Kernels-->
<project path="kernel/sony/msm8974"
name="x-keita/android_kernel_sony_msm8974" remote="github"
revision="lineage-15.0" />
<!--Vendors-->
<project path="vendor/sony"
name="x-keita/proprietary_vendor_sony" remote="github"
revision="lineage-15.0" />
<!--Hardware-->
<project path="hardware/sony/thermanager"
name="LineageOS/android_hardware_sony_thermanager" remote="github"
revision="lineage-15.0" />
</manifest>
then
Code:
$ . build/envsetup.sh
including device/generic/car/car-arm64/vendorsetup.sh
including device/generic/car/car-armv7-a-neon/vendorsetup.sh
including device/generic/car/car-x86_64/vendorsetup.sh
including device/generic/car/car-x86/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
including vendor/lineage/vendorsetup.sh
including sdk/bash_completion/adb.bash
But Lunch menu has only one item
Code:
$ breakfast
including vendor/lineage/vendorsetup.sh
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
Which would you like? [aosp_arm-eng] ^C
Direct call results in error:
Code:
$ brunch z3
including vendor/lineage/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
LINEAGE_VERSION=15.0-20180116_000047-UNOFFICIAL-z3
TARGET_PRODUCT=lineage_z3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
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.13.0-21-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=OPR3.170623.013
OUT_DIR=/home/user/Android/roms/los15/out
AUX_OS_VARIANT_LIST=
============================================
make: Entering directory '/home/user/Android/roms/los15'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=lineage_z3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPR3.170623.013
OUT_DIR=/home/user/Android/roms/los15/out
============================================
ninja: no work to do.
ninja: no work to do.
Environment variable BUILD_NUMBER was modified (a59a0e5c70 => 39348e7c4f), regenerating...
[9/1020] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[338/1020] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[370/1020] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[404/1020] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:866: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:875: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:880: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:885: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[583/1020] including ./lineage-sdk/Android.mk ...
./lineage-sdk/Android.mk:152: warning: FindEmulator: find: `lineage-sdk/dummy': No such file or directory
build/core/droiddoc.mk:132: warning: FindEmulator: find: `build/tools/droiddoc/templates-sdk': No such file or directory
[754/1020] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:95: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[1020/1020] including ./vendor/sony/z3dual/Android.mk ...
build/core/Makefile:54: warning: Duplicate header copy: /home/user/Android/roms/los15/out/target/product/z3/obj/include/cld80211-lib/cld80211_lib.h
build/core/Makefile:54: warning: Defined in: hardware/qcom/wlan-caf/cld80211-lib/Android.mk hardware/qcom/wlan-caf/cld80211-lib/Android.mk
No private recovery resources for TARGET_DEVICE z3
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
test/vts/tools/build/tasks/vts_package.mk:216: warning: FindEmulator: cd: vendor/google_vts/testcases: No such file or directory
./test/vts/utils/python/archive/Android.mk:28: warning: overriding commands for target `default'
./test/vts/runners/host/tcp_server/Android.mk:19: warning: ignoring old commands for target `default'
./test/vts/utils/python/coverage/Android.mk:28: warning: overriding commands for target `default'
./test/vts/utils/python/archive/Android.mk:28: warning: ignoring old commands for target `default'
ninja: error: '/home/user/Android/roms/los15/out/target/product/z3/utilities/init_sony', needed by '/home/user/Android/roms/los15/out/target/product/z3/boot.img', missing and no known rule to make it
03:03:10 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/user/Android/roms/los15'
#### make failed to build some targets (02:23 (mm:ss)) ####
What could be possible reason for this? What I did in a wrong way?
can you show your "vendorsetup.sh" ?
I think it should add a combo like "add_lunch_combo omni_j7maxlte-eng"
device/sony/z3/vendorsetup.sh
Code:
add_lunch_combo lineage_z3-eng
you should highlight @xkeita on this.
He keep the sources closed.
FYI: I moved to OmniRom long time ago.
Good luck!
s0f0s said:
Hello! I am trying to build LineageOS 15 from sources for Sony Xperia Z3Dual. I have several years of c/c++ programming experience but this is my first Android project. So despite reading several howtos it is possible that I made some stupid and/or funny mistakes
I cloned the LOS 15
and added several Sony Xperia Z3 repositories with localmanifest:
then
But Lunch menu has only one item
Direct call results in error:
What could be possible reason for this? What I did in a wrong way?
Click to expand...
Click to collapse
it'll help you, check all parts
https://m.youtube.com/watch?v=iZmjOlUq_3c
nailyk said:
FYI: I moved to OmniRom long time ago.
Click to expand...
Click to collapse
I decided to change to custom ROM after sony rejected to patch blueborne vulnerability. And I want to build the ROM myself. So I chose LOS because I found out that it does have that vuln patched. But now I am stuck... Maybe it would be easier for me to try to build Omnirom, thank you for the idea
Unfortunately I could not found out if it has blueborne patched or not. According to this information https://www.reddit.com/r/LineageOS/comments/6zn0le/will_blueborne_get_patched/ full patch should contain a kernel fix and four userspace fixes. But I can not find corresponding commit (concerning L2CAP config option output buffer length) in omnirom/android_kernel_sony_msm8974. It looks like this kernel (and thus omnirom for z3) does not have the fix. Is it so?
Meanwhile I made an attempt to build omnirom from your post, but did not understand how to use the script, so I did the following:
Code:
repo init -u git://github.com/omnirom/android.git -b android-8.0
than downloaded your manifest, commented out all non-sony vendor, kernel and dev-specific projects as well as you private twrp, and synced. Finally:
Code:
$ . build/envsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
including vendor/omni/vendorsetup.sh
including sdk/bash_completion/adb.bash
$ brunch
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. omni_z2-eng
3. omni_z2-userdebug
4. omni_z3c-eng
5. omni_z3-eng
Which would you like? [aosp_arm-eng] 5
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
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.13.0-21-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=OPR5.170623.011
OUT_DIR=/home/user/Android/roms/OmniROM/8.0/out
AUX_OS_VARIANT_LIST=
============================================
make: Entering directory '/home/user/Android/roms/OmniROM/8.0'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPR5.170623.011
OUT_DIR=/home/user/Android/roms/OmniROM/8.0/out
============================================
[2/2] bootstrap /home/user/Android/rom...ut/soong/.minibootstrap/build.ninja.in
[1/1] /home/user/Android/roms/OmniROM/...M/8.0/out/soong/.bootstrap/build.ninja
removed old ninja-created file /home/user/Android/roms/OmniROM/8.0/out/soong/.glob/device/oneplus/oneplus5/usb/Android_bp.glob because it has no rule to generate it
[5/6] glob vendor/*/*/*/*/*/*/Android.bp
[6/6] /home/user/Android/roms/OmniROM/...roms/OmniROM/8.0/out/soong/build.ninja
/home/user/Android/roms/OmniROM/8.0/out/build-omni_z3.ninja is missing, regenerating...
Checking build tools versions...
[9/972] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[110/972] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[299/972] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[317/972] including ./frameworks/av/camera/Android.mk ...
frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
[331/972] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[366/972] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:867: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:876: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:881: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:886: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[968/972] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/base_rules.mk:238: error: vendor/qcom/opensource/dataservices/datatop/src: MODULE.TARGET.EXECUTABLES.datatop already defined by hardware/sony/dataservices/datatop/src.
00:23:28 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/user/Android/roms/OmniROM/8.0'
#### make failed to build some targets (01:09 (mm:ss)) ####
real 1m9,528s
user 1m14,614s
sys 0m4,731s
$
Looks like I misunderstand some part(s) of the process at all...
So how should I use that patches.sh script and which folder it should be placed in?
Please excuse me for all this newbie stuff...
s0f0s said:
I decided to change to custom ROM after sony rejected to patch blueborne vulnerability. And I want to build the ROM myself. So I chose LOS because I found out that it does have that vuln patched. But now I am stuck... Maybe it would be easier for me to try to build Omnirom, thank you for the idea
Unfortunately I could not found out if it has blueborne patched or not. According to this information https://www.reddit.com/r/LineageOS/comments/6zn0le/will_blueborne_get_patched/ full patch should contain a kernel fix and four userspace fixes. But I can not find corresponding commit (concerning L2CAP config option output buffer length) in omnirom/android_kernel_sony_msm8974. It looks like this kernel (and thus omnirom for z3) does not have the fix. Is it so?
Meanwhile I made an attempt to build omnirom from your post, but did not understand how to use the script, so I did the following:
Code:
repo init -u git://github.com/omnirom/android.git -b android-8.0
than downloaded your manifest, commented out all non-sony vendor, kernel and dev-specific projects as well as you private twrp, and synced. Finally:
Code:
$ . build/envsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
including vendor/omni/vendorsetup.sh
including sdk/bash_completion/adb.bash
$ brunch
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. omni_z2-eng
3. omni_z2-userdebug
4. omni_z3c-eng
5. omni_z3-eng
Which would you like? [aosp_arm-eng] 5
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPR1
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.13.0-21-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=OPR5.170623.011
OUT_DIR=/home/user/Android/roms/OmniROM/8.0/out
AUX_OS_VARIANT_LIST=
============================================
make: Entering directory '/home/user/Android/roms/OmniROM/8.0'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.0.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPR5.170623.011
OUT_DIR=/home/user/Android/roms/OmniROM/8.0/out
============================================
[2/2] bootstrap /home/user/Android/rom...ut/soong/.minibootstrap/build.ninja.in
[1/1] /home/user/Android/roms/OmniROM/...M/8.0/out/soong/.bootstrap/build.ninja
removed old ninja-created file /home/user/Android/roms/OmniROM/8.0/out/soong/.glob/device/oneplus/oneplus5/usb/Android_bp.glob because it has no rule to generate it
[5/6] glob vendor/*/*/*/*/*/*/Android.bp
[6/6] /home/user/Android/roms/OmniROM/...roms/OmniROM/8.0/out/soong/build.ninja
/home/user/Android/roms/OmniROM/8.0/out/build-omni_z3.ninja is missing, regenerating...
Checking build tools versions...
[9/972] including ./cts/Android.mk ...
cts/apps/CtsVerifier/Android.mk:72: warning: FindEmulator: find: `cts/apps/CtsVerifier/src/com/android/cts/verifier/backup': No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/res: No such file or directory
build/core/java_common.mk:88: warning: FindEmulator: cd: cts/hostsidetests/backup/assets: No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider/src': No such file or directory
cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/Android.mk:23: warning: FindEmulator: find: `cts/hostsidetests/os/test-apps/StaticSharedNativeLibProvider1/src': No such file or directory
cts/tests/tests/contactsproviderwipe/Android.mk:33: warning: FindEmulator: find: `cts/tests/tests/contactsproviderwipe/common/src': No such file or directory
cts/tests/tests/telecom3/Android.mk:37: warning: FindEmulator: find: `cts/tests/tests/telecom/src/android/telecom/cts/MockDialerActivity.java': No such file or directory
[110/972] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[299/972] including ./external/toybox/Android.mk ...
awk: line 1: syntax error at or near ,
[317/972] including ./frameworks/av/camera/Android.mk ...
frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
[331/972] including ./frameworks/av/media/libaaudio/Android.mk ...
frameworks/av/media/libaaudio/examples/input_monitor/static/Android.mk: warning: input_monitor: unusual tags examples
frameworks/av/media/libaaudio/examples/write_sine/static/Android.mk: warning: write_sine: unusual tags examples
[366/972] including ./frameworks/base/Android.mk ...
./frameworks/base/Android.mk:867: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:876: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:881: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
./frameworks/base/Android.mk:886: warning: FindEmulator: find: `frameworks/opt/telephony/src/java/android/provider': No such file or directory
[968/972] including ./vendor/qcom/opensource/dataservices/Android.mk ...
build/core/base_rules.mk:238: error: vendor/qcom/opensource/dataservices/datatop/src: MODULE.TARGET.EXECUTABLES.datatop already defined by hardware/sony/dataservices/datatop/src.
00:23:28 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
make: Leaving directory '/home/user/Android/roms/OmniROM/8.0'
#### make failed to build some targets (01:09 (mm:ss)) ####
real 1m9,528s
user 1m14,614s
sys 0m4,731s
$
Looks like I misunderstand some part(s) of the process at all...
So how should I use that patches.sh script and which folder it should be placed in?
Please excuse me for all this newbie stuff...
Click to expand...
Click to collapse
No you have the right process But please use 8.1 branches instead.
Not everything is merged on 8.0 so you will have some troubles.
patches.sh script pick all pending commits on gerrit, it is for dev purposes and it is not a problem for not using it.
You have the right process:
Code:
repo init https://...../omnirom/android.git -b android-8.1
then get the manifest:
Code:
wget "https://raw.githubusercontent.com/nailyk-fr/local_manifest/android-8.1/x-roomservice.xml" -o .repo/local_manifest/x-roomservice.xml
It shouldn't require changes (maybe the private repo?)
the sync your sources
Code:
repo sync (<-- you can do this multiples times to ensure you do not have some errors)
then you could build:
Code:
source ./build/ensetup.sh && breakfast z3 && mka cookies
Now go to sleep and wait for the build end
P.S.: omnirom is provided on XDA if you do not want to build it.
nailyk said:
then you could build
Click to expand...
Click to collapse
The next attempt was unsuccessful too...
First I got
Code:
build/core/base_rules.mk:238: error: hardware/qcom/gps/core: MODULE.TARGET.SHARED_LIBRARIES.libloc_core already defined by hardware/qcom/gps/sdm845/core.
I renamed hardware/qcom/gps/core/Android.mk and got
Code:
build/core/base_rules.mk:238: error: hardware/qcom/gps/utils: MODULE.TARGET.SHARED_LIBRARIES.libgps.utils already defined by hardware/qcom/gps/sdm845/utils.
I renamed hardware/qcom/gps/utils/Android.mk
But I think there should be more elegant way to exclude them (if this is a right decision at all)
Now I have ninja error about missing twrp.fstab
Code:
$ brunch
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. uml-userdebug
3. aosp_walleye-userdebug
4. aosp_walleye_test-userdebug
5. aosp_taimen-userdebug
6. omni_oneplus5t-user
7. omni_oneplus5t-userdebug
8. omni_oneplus5t-eng
9. omni_oneplus5-user
10. omni_oneplus5-userdebug
11. omni_oneplus5-eng
12. omni_z2-eng
13. omni_z2-userdebug
14. omni_z3c-eng
15. omni_z3-eng
Which would you like? [aosp_arm-eng] 15
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
WARNING: detected conflict in revisions for repository android_hardware_qcom_gps
Traceback (most recent call last):
File "vendor/omni/build/tools/roomservice.py", line 356, in <module>
fetch_dependencies(device)
File "vendor/omni/build/tools/roomservice.py", line 310, in fetch_dependencies
create_common_dependencies_manifest(dependencies)
File "vendor/omni/build/tools/roomservice.py", line 299, in create_common_dependencies_manifest
create_common_dependencies_manifest(common_deps)
File "vendor/omni/build/tools/roomservice.py", line 297, in create_common_dependencies_manifest
check_manifest_problems(common_deps)
File "vendor/omni/build/tools/roomservice.py", line 239, in check_manifest_problems
file = ES.parse('/'.join([local_manifest_dir, "roomservice.xml"]))
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '.repo/local_manifests/roomservice.xml'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
[44/44] bootstrap /home/user/Android/r...ut/soong/.minibootstrap/build.ninja.in
[4/4] /home/user/Android/roms/OmniROM/...M/8.1/out/soong/.bootstrap/build.ninja
[871/872] glob vendor/*/*/*/*/*/*/Android.bp
[54/54] /home/user/Android/roms/OmniRO...roms/OmniROM/8.1/out/soong/build.ninja
/home/user/Android/roms/OmniROM/8.1/out/build-omni_z3.ninja is missing, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[999/999] including ./vendor/sony/shinano-common-caf/proprietary/Android.mk ...
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord_48k.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoStop_48k.ogg:system/media/audio/ui/VideoStop.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click_48k.ogg:system/media/audio/ui/camera_click.ogg ignored.
No private recovery resources for TARGET_DEVICE z3
Using '/home/user/Android/roms/OmniROM/8.1/prebuilts/misc/linux-x86/ccache/ccache' binary on 'linux-x86'
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
[ 99% 1273/1274] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: 'keystore.msm8974', needed by '/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/obj/ETC/twrp.fstab_intermediates/twrp.fstab', missing and no known rule to make it
14:36:38 ninja failed with: exit status 1
#### failed to build some targets (01:37 (mm:ss)) ####
real 1m37,436s
user 2m37,577s
sys 0m11,100s
And the main question is if I am on the right way at all
s0f0s said:
The next attempt was unsuccessful too...
First I got
Code:
build/core/base_rules.mk:238: error: hardware/qcom/gps/core: MODULE.TARGET.SHARED_LIBRARIES.libloc_core already defined by hardware/qcom/gps/sdm845/core.
I renamed hardware/qcom/gps/core/Android.mk and got
Code:
build/core/base_rules.mk:238: error: hardware/qcom/gps/utils: MODULE.TARGET.SHARED_LIBRARIES.libgps.utils already defined by hardware/qcom/gps/sdm845/utils.
I renamed hardware/qcom/gps/utils/Android.mk
But I think there should be more elegant way to exclude them (if this is a right decision at all)
Now I have ninja error about missing twrp.fstab
Code:
$ brunch
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. uml-userdebug
3. aosp_walleye-userdebug
4. aosp_walleye_test-userdebug
5. aosp_taimen-userdebug
6. omni_oneplus5t-user
7. omni_oneplus5t-userdebug
8. omni_oneplus5t-eng
9. omni_oneplus5-user
10. omni_oneplus5-userdebug
11. omni_oneplus5-eng
12. omni_z2-eng
13. omni_z2-userdebug
14. omni_z3c-eng
15. omni_z3-eng
Which would you like? [aosp_arm-eng] 15
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
WARNING: detected conflict in revisions for repository android_hardware_qcom_gps
Traceback (most recent call last):
File "vendor/omni/build/tools/roomservice.py", line 356, in <module>
fetch_dependencies(device)
File "vendor/omni/build/tools/roomservice.py", line 310, in fetch_dependencies
create_common_dependencies_manifest(dependencies)
File "vendor/omni/build/tools/roomservice.py", line 299, in create_common_dependencies_manifest
create_common_dependencies_manifest(common_deps)
File "vendor/omni/build/tools/roomservice.py", line 297, in create_common_dependencies_manifest
check_manifest_problems(common_deps)
File "vendor/omni/build/tools/roomservice.py", line 239, in check_manifest_problems
file = ES.parse('/'.join([local_manifest_dir, "roomservice.xml"]))
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '.repo/local_manifests/roomservice.xml'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
[44/44] bootstrap /home/user/Android/r...ut/soong/.minibootstrap/build.ninja.in
[4/4] /home/user/Android/roms/OmniROM/...M/8.1/out/soong/.bootstrap/build.ninja
[871/872] glob vendor/*/*/*/*/*/*/Android.bp
[54/54] /home/user/Android/roms/OmniRO...roms/OmniROM/8.1/out/soong/build.ninja
/home/user/Android/roms/OmniROM/8.1/out/build-omni_z3.ninja is missing, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[999/999] including ./vendor/sony/shinano-common-caf/proprietary/Android.mk ...
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord_48k.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoStop_48k.ogg:system/media/audio/ui/VideoStop.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click_48k.ogg:system/media/audio/ui/camera_click.ogg ignored.
No private recovery resources for TARGET_DEVICE z3
Using '/home/user/Android/roms/OmniROM/8.1/prebuilts/misc/linux-x86/ccache/ccache' binary on 'linux-x86'
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
[ 99% 1273/1274] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: 'keystore.msm8974', needed by '/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/obj/ETC/twrp.fstab_intermediates/twrp.fstab', missing and no known rule to make it
14:36:38 ninja failed with: exit status 1
#### failed to build some targets (01:37 (mm:ss)) ####
real 1m37,436s
user 2m37,577s
sys 0m11,100s
And the main question is if I am on the right way at all
Click to expand...
Click to collapse
Partially.
WARNING: detected conflict in revisions for repository android_hardware_qcom_gps
mean the hardware/qcom/gps repo was not synced to 8.1 (this is was present on 8.0 & 8.1 but only fixed on 8.1)
To switch from 8.0 to 8.1 you need to do all the sync process again :s In another meaning you need to delete all the 8.0 sync and start from scratch.
nailyk said:
To switch from 8.0 to 8.1 you need to do all the sync process again :s In another meaning you need to delete all the 8.0 sync and start from scratch.
Click to expand...
Click to collapse
For 8.1 I created new directory i.e. I had ~/Android/roms/OmniROM/8.0 for 8.0 and created ~/Android/roms/OmniROM/8.1 for 8.1. Then
Code:
repo init -u git://github.com/omnirom/android.git -b android-8.1
...
wget "https://raw.githubusercontent.com/nailyk-fr/local_manifests/android-8.1/x-roomservice.xml" -O .repo/local_manifests/x-roomservice.xml
repo sync
So can we consider this as starting from scratch?
And that warning persisted from the beginning. Looks like it is responsible for those errors with already defined modules.
Although it says 'in revisions' the particular problem is absence of '.repo/local_manifests/roomservice.xml' Looks like normally it is created automatically, but this does not happen. What could be the reason for this?
s0f0s said:
For 8.1 I created new directory i.e. I had ~/Android/roms/OmniROM/8.0 for 8.0 and created ~/Android/roms/OmniROM/8.1 for 8.1. Then
Code:
repo init -u git://github.com/omnirom/android.git -b android-8.1
...
wget "https://raw.githubusercontent.com/nailyk-fr/local_manifests/android-8.1/x-roomservice.xml" -O .repo/local_manifests/x-roomservice.xml
repo sync
So can we consider this as starting from scratch?
And that warning persisted from the beginning. Looks like it is responsible for those errors with already defined modules.
Although it says 'in revisions' the particular problem is absence of '.repo/local_manifests/roomservice.xml' Looks like normally it is created automatically, but this does not happen. What could be the reason for this?
Click to expand...
Click to collapse
Yes this is a 'from scratch' sync.
Please post the error. Do not have it here.
nailyk said:
Please post the error.
Click to expand...
Click to collapse
At first the error was
Code:
$ breakfast
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. uml-userdebug
3. aosp_walleye-userdebug
4. aosp_walleye_test-userdebug
5. aosp_taimen-userdebug
6. omni_oneplus5t-user
7. omni_oneplus5t-userdebug
8. omni_oneplus5t-eng
9. omni_oneplus5-user
10. omni_oneplus5-userdebug
11. omni_oneplus5-eng
12. omni_z2-eng
13. omni_z2-userdebug
14. omni_z3c-eng
15. omni_z3-eng
Which would you like? [aosp_arm-eng] 15
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
WARNING: detected conflict in revisions for repository android_vendor_qcom_opensource_interfaces
Traceback (most recent call last):
File "vendor/omni/build/tools/roomservice.py", line 356, in <module>
fetch_dependencies(device)
File "vendor/omni/build/tools/roomservice.py", line 310, in fetch_dependencies
create_common_dependencies_manifest(dependencies)
File "vendor/omni/build/tools/roomservice.py", line 299, in create_common_dependencies_manifest
create_common_dependencies_manifest(common_deps)
File "vendor/omni/build/tools/roomservice.py", line 297, in create_common_dependencies_manifest
check_manifest_problems(common_deps)
File "vendor/omni/build/tools/roomservice.py", line 239, in check_manifest_problems
file = ES.parse('/'.join([local_manifest_dir, "roomservice.xml"]))
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 647, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory: '.repo/local_manifests/roomservice.xml'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
I changed the revision in the device/sony/msm8974-common/omni.dependencies
Code:
{
"remote": "omnirom",
"repository": "android_hardware_qcom_gps",
"target_path": "hardware/qcom/gps",
"revision": "android-8.[B]1[/B]"
},
Then the same revision conflict occurred for android_vendor_qcom_opensource_interfaces and android_vendor_nxp-nfc_interfaces_opensource_nfc. I changed their revisions in the same file too and got
Code:
$ brunch
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. uml-userdebug
3. aosp_walleye-userdebug
4. aosp_walleye_test-userdebug
5. aosp_taimen-userdebug
6. omni_oneplus5t-user
7. omni_oneplus5t-userdebug
8. omni_oneplus5t-eng
9. omni_oneplus5-user
10. omni_oneplus5-userdebug
11. omni_oneplus5-eng
12. omni_z2-eng
13. omni_z2-userdebug
14. omni_z3c-eng
15. omni_z3-eng
Which would you like? [aosp_arm-eng] 15
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
[44/44] bootstrap /home/user/Android/r...ut/soong/.minibootstrap/build.ninja.in
[4/4] /home/user/Android/roms/OmniROM/...M/8.1/out/soong/.bootstrap/build.ninja
[871/872] glob vendor/*/*/*/*/*/*/Android.bp
[54/54] /home/user/Android/roms/OmniRO...roms/OmniROM/8.1/out/soong/build.ninja
/home/user/Android/roms/OmniROM/8.1/out/build-omni_z3.ninja is missing, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[464/999] including ./hardware/qcom/gps/Android.mk ...
build/core/base_rules.mk:238: error: hardware/qcom/gps/core: MODULE.TARGET.SHARED_LIBRARIES.libloc_core already defined by hardware/qcom/gps/sdm845/core.
10:05:15 ckati failed with: exit status 1
#### failed to build some targets (01:10 (mm:ss)) ####
real 1m9,955s
user 2m7,271s
sys 0m8,134s
Well, hardware/qcom/gps/sdm845/Android.mk is included in device/sony/msm8974-common/Android.mk and later hardware/qcom/gps/Android.mk includes the following
Code:
ifneq ($(filter apq8064,$(TARGET_BOARD_PLATFORM)),)
#For apq8064 use msm8960
include $(call all-named-subdir-makefiles,msm8960)
else ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),)
#For msm8992 use msm8994
include $(call all-named-subdir-makefiles,msm8994)
else ifneq ($(filter msm8960 msm8084 msm8994 msm8996 msm8998 sdm845,$(TARGET_BOARD_PLATFORM)),)
#For these, use their platform name as the subdirectory
include $(call all-named-subdir-makefiles,$(TARGET_BOARD_PLATFORM))
else ifeq ($(filter msm8916,$(TARGET_BOARD_PLATFORM)),)
#For all other targets besides msm8916
GPS_DIRS=core utils loc_api platform_lib_abstractions etc
include $(call all-named-subdir-makefiles,$(GPS_DIRS))
endif #TARGET_BOARD_PLATFORM
but the target platform is msm8974 which do not have appropriate case. So I added the case for it
Code:
ifneq ($(filter apq8064,$(TARGET_BOARD_PLATFORM)),)
#For apq8064 use msm8960
include $(call all-named-subdir-makefiles,msm8960)
else ifneq ($(filter msm8992,$(TARGET_BOARD_PLATFORM)),)
#For msm8992 use msm8994
include $(call all-named-subdir-makefiles,msm8994)
else ifneq ($(filter msm8960 msm8084 msm8994 msm8996 msm8998 sdm845,$(TARGET_BOARD_PLATFORM)),)
#For these, use their platform name as the subdirectory
include $(call all-named-subdir-makefiles,$(TARGET_BOARD_PLATFORM))
[B]else ifneq ($(filter msm8974,$(TARGET_BOARD_PLATFORM)),)
#For msm8974 use sdm845
ifndef MODULE.TARGET.SHARED_LIBRARIES.libloc_core
include $(call all-named-subdir-makefiles,sdm845)
endif[/B]
else ifeq ($(filter msm8916,$(TARGET_BOARD_PLATFORM)),)
#For all other targets besides msm8916
GPS_DIRS=core utils loc_api platform_lib_abstractions etc
include $(call all-named-subdir-makefiles,$(GPS_DIRS))
endif #TARGET_BOARD_PLATFORM
Now I get the error about missing keystore.msm897
Code:
$ brunch omni_z3-eng
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
ninja: no work to do.
ninja: no work to do.
/home/user/Android/roms/OmniROM/8.1/out/build-omni_z3.ninja is missing, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[999/999] including ./vendor/sony/shinano-common-caf/proprietary/Android.mk ...
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord_48k.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoStop_48k.ogg:system/media/audio/ui/VideoStop.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click_48k.ogg:system/media/audio/ui/camera_click.ogg ignored.
No private recovery resources for TARGET_DEVICE z3
Using '/home/user/Android/roms/OmniROM/8.1/prebuilts/misc/linux-x86/ccache/ccache' binary on 'linux-x86'
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
[ 99% 1273/1274] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: 'keystore.msm8974', needed by '/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/obj/ETC/twrp.fstab_intermediates/twrp.fstab', missing and no known rule to make it
18:29:09 ninja failed with: exit status 1
#### failed to build some targets (54 seconds) ####
real 0m53,430s
user 0m54,585s
sys 0m5,082s
Which right now I have no idea how to deal with
Maybe I was not right with corrections of previous errors...
Your remaining repositories errors are related to branch being updated.
You can pick this change: https://gerrit.omnirom.org/#/c/28265/ will solve some.
The next gps error is probably related to wrong branch too.
Delete the repo to ensure the 8.1 branch is synced:
Code:
rm -rf hardware/qcom/gps .repo/project-objects/android_hardware_qcom_gps.git .repo/projects/hardware/qcom/gps.git
repo sync hardware/qcom/gps
but the target platform is msm8974 which do not have appropriate case. So I added the case for it
Click to expand...
Click to collapse
Do not add it, it will include gps twice, which cause you the next error. (gps include is directly called into device trees)
Never had the keystore missing one.
Ensure the repo is correctly synced, ( hardware/qcom/keymaster ) and on the right branch.
nailyk said:
You can pick this change:
Click to expand...
Click to collapse
Yes, it solves revision issues. But the problem with gps remains
Code:
$ brunch omni_z3-eng
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
[44/44] bootstrap /home/user/Android/r...ut/soong/.minibootstrap/build.ninja.in
[4/4] /home/user/Android/roms/OmniROM/...M/8.1/out/soong/.bootstrap/build.ninja
[871/872] glob vendor/*/*/*/*/*/*/Android.bp
[54/54] /home/user/Android/roms/OmniRO...roms/OmniROM/8.1/out/soong/build.ninja
/home/user/Android/roms/OmniROM/8.1/out/build-omni_z3.ninja is missing, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[464/999] including ./hardware/qcom/gps/Android.mk ...
build/core/base_rules.mk:238: error: hardware/qcom/gps/core: MODULE.TARGET.SHARED_LIBRARIES.libloc_core already defined by hardware/qcom/gps/sdm845/core.
02:00:32 ckati failed with: exit status 1
#### failed to build some targets (01:06 (mm:ss)) ####
real 1m5,548s
user 1m57,410s
sys 0m7,823s
gps include is directly called into device trees
Click to expand...
Click to collapse
but why the "hardware/qcom/gps/Android.mk" is included later? This file do not have section for msm8974 platform and thus includes some default stuff which conflicts with sdm845. If I exclude that default stuff then again I get missing keystore.msm8974 error
Code:
$ brunch omni_z3-eng
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
ninja: no work to do.
ninja: no work to do.
./hardware/qcom/gps/Android.mk was modified, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[999/999] including ./vendor/sony/shinano-common-caf/proprietary/Android.mk ...
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord_48k.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoStop_48k.ogg:system/media/audio/ui/VideoStop.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click_48k.ogg:system/media/audio/ui/camera_click.ogg ignored.
[B]No private recovery resources for TARGET_DEVICE z3[/B]
Using '/home/user/Android/roms/OmniROM/8.1/prebuilts/misc/linux-x86/ccache/ccache' binary on 'linux-x86'
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
ninja: error: 'keystore.msm8974', needed by '/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/obj/ETC/twrp.fstab_intermediates/twrp.fstab', missing and no known rule to make it
01:37:23 ninja failed with: exit status 1
#### failed to build some targets (57 seconds) ####
real 0m56,763s
user 0m52,993s
sys 0m4,630s
Note among others this message:
No private recovery resources for TARGET_DEVICE z3
Is it possible that it is somehow connected with missing keystore.msm8974?
Sometimes strange errors may be caused by wrong versions of building environment components (JDK python, etc.) Which are the correct versions?
s0f0s said:
Yes, it solves revision issues. But the problem with gps remains
Code:
$ brunch omni_z3-eng
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
[44/44] bootstrap /home/user/Android/r...ut/soong/.minibootstrap/build.ninja.in
[4/4] /home/user/Android/roms/OmniROM/...M/8.1/out/soong/.bootstrap/build.ninja
[871/872] glob vendor/*/*/*/*/*/*/Android.bp
[54/54] /home/user/Android/roms/OmniRO...roms/OmniROM/8.1/out/soong/build.ninja
/home/user/Android/roms/OmniROM/8.1/out/build-omni_z3.ninja is missing, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[464/999] including ./hardware/qcom/gps/Android.mk ...
build/core/base_rules.mk:238: error: hardware/qcom/gps/core: MODULE.TARGET.SHARED_LIBRARIES.libloc_core already defined by hardware/qcom/gps/sdm845/core.
02:00:32 ckati failed with: exit status 1
#### failed to build some targets (01:06 (mm:ss)) ####
real 1m5,548s
user 1m57,410s
sys 0m7,823s
but why the "hardware/qcom/gps/Android.mk" is included later? This file do not have section for msm8974 platform and thus includes some default stuff which conflicts with sdm845. If I exclude that default stuff then again I get missing keystore.msm8974 error
Code:
$ brunch omni_z3-eng
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
ninja: no work to do.
ninja: no work to do.
./hardware/qcom/gps/Android.mk was modified, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[999/999] including ./vendor/sony/shinano-common-caf/proprietary/Android.mk ...
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord_48k.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoStop_48k.ogg:system/media/audio/ui/VideoStop.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click_48k.ogg:system/media/audio/ui/camera_click.ogg ignored.
[B]No private recovery resources for TARGET_DEVICE z3[/B]
Using '/home/user/Android/roms/OmniROM/8.1/prebuilts/misc/linux-x86/ccache/ccache' binary on 'linux-x86'
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
ninja: error: 'keystore.msm8974', needed by '/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/obj/ETC/twrp.fstab_intermediates/twrp.fstab', missing and no known rule to make it
01:37:23 ninja failed with: exit status 1
#### failed to build some targets (57 seconds) ####
real 0m56,763s
user 0m52,993s
sys 0m4,630s
Note among others this message:
No private recovery resources for TARGET_DEVICE z3
Is it possible that it is somehow connected with missing keystore.msm8974?
Sometimes strange errors may be caused by wrong versions of building environment components (JDK python, etc.) Which are the correct versions?
Click to expand...
Click to collapse
That is another issue.
GPS repo just got upgraded to 8.1 but not from 8.0.
Am trying again with : https://gerrit.omnirom.org/#/c/28672/
It should solve that issue. Currently running on jenkins.
nailyk said:
It should solve that issue.
Click to expand...
Click to collapse
Yes, but where the USE_DEVICE_SPECIFIC_GPS flag is set?
This is conceptual solution, but in my case will produce the same result and so bring me to that keymaster issue, which I still do not understand
s0f0s said:
Yes, but where the USE_DEVICE_SPECIFIC_GPS flag is set?
This is conceptual solution, but in my case will produce the same result and so bring me to that keymaster issue, which I still do not understand
Click to expand...
Click to collapse
Just pick the patch for GPS.
We will solve the missing keystore later.
You are probably missing hardware/qcom/keymaster repo
hardware/qcom/keymaster/Android.mk:14:LOCAL_MODULE := keystore.$(TARGET_BOARD_PLATFORM)
nailyk said:
Just pick the patch for GPS.
Click to expand...
Click to collapse
It solves the gps issue, but the missing keystore.msm8974 error is here
Code:
$ brunch omni_z3-eng
including device/generic/uml/vendorsetup.sh
including device/google/muskie/vendorsetup.sh
including device/google/taimen/vendorsetup.sh
including device/oneplus/oneplus5t/vendorsetup.sh
including device/oneplus/oneplus5/vendorsetup.sh
including device/sony/z2/vendorsetup.sh
including device/sony/z3c/vendorsetup.sh
including device/sony/z3/vendorsetup.sh
Looking for dependencies on: device/sony/shinano-common
Looking for dependencies on: device/sony/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
AUX_OS_VARIANT_LIST=
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=omni_z3
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-21-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=OPM3.171019.013
OUT_DIR=/home/user/Android/roms/OmniROM/8.1/out
============================================
[44/44] bootstrap /home/user/Android/r...ut/soong/.minibootstrap/build.ninja.in
[4/4] /home/user/Android/roms/OmniROM/...M/8.1/out/soong/.bootstrap/build.ninja
[871/872] glob vendor/*/*/*/*/*/*/Android.bp
[54/54] /home/user/Android/roms/OmniRO...roms/OmniROM/8.1/out/soong/build.ninja
/home/user/Android/roms/OmniROM/8.1/out/build-omni_z3.ninja is missing, regenerating...
[120/999] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "z3", platform "shinano", with ' -DDEV_BLOCK_FOTA_NUM="16" -DDEV_BLOCK_FOTA_MAJOR="179" -DDEV_BLOCK_FOTA_MINOR="16" -DFOTA_RAMDISK_CHECK="0" -DKEYCHECK_ENABLED="1" -DKEYCHECK_NO_DOWN="1"'
[999/999] including ./vendor/sony/shinano-common-caf/proprietary/Android.mk ...
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord_48k.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoStop_48k.ogg:system/media/audio/ui/VideoStop.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click_48k.ogg:system/media/audio/ui/camera_click.ogg ignored.
No private recovery resources for TARGET_DEVICE z3
Using '/home/user/Android/roms/OmniROM/8.1/prebuilts/misc/linux-x86/ccache/ccache' binary on 'linux-x86'
platform_testing/build/tasks/tests/instrumentation_metric_test_list.mk: warning: continuous_instrumentation_metric_tests: Unknown installed file for module perf-setup.sh
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module RecyclerViewTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module SettingsFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module LauncherFunctionalTests
platform_testing/build/tasks/tests/instrumentation_test_list.mk: warning: continuous_instrumentation_tests: Unknown installed file for module EmergencyInfoTests
platform_testing/build/tasks/tests/native_metric_test_list.mk: warning: continuous_native_metric_tests: Unknown installed file for module perf-setup.sh
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:390: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/root/res/images/charger/battery_scale.png'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv1_CM.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv2.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/lib/libGLESv3.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/libta.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/vendor/etc/audio_effects.conf'
build/core/Makefile:34: warning: overriding commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/system/etc/mkshrc'
[ 99% 1273/1274] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: 'keystore.msm8974', needed by '/home/user/Android/roms/OmniROM/8.1/out/target/product/z3/obj/ETC/twrp.fstab_intermediates/twrp.fstab', missing and no known rule to make it
22:41:48 ninja failed with: exit status 1
#### failed to build some targets (01:20 (mm:ss)) ####
real 1m20.580s
user 2m20.994s
sys 0m10.102s
You are probably missing hardware/qcom/keymaster repo
Click to expand...
Click to collapse
Maybe I misunderstand you, but hardware/qcom/keymaster repo present:
Code:
~/Android/roms/OmniROM/8.1/hardware/qcom/keymaster$ ls -la
total 64
drwxr-xr-x 3 user user 4096 Jan 24 22:02 .
drwxr-xr-x 25 user user 4096 Jan 24 22:02 ..
-rw-r--r-- 1 user user 859 Jan 24 22:02 Android.mk
drwxr-xr-x 2 user user 4096 Jan 24 22:02 .git
-rw-r--r-- 1 user user 27729 Jan 24 22:02 keymaster_qcom.cpp
-rw-r--r-- 1 user user 7220 Jan 24 22:02 keymaster_qcom.h
-rw-r--r-- 1 user user 10735 Jan 24 22:02 QSEEComAPI.h
and here is Android.mk
Code:
# TODO: Find a better way to separate build configs for ADP vs non-ADP devices
ifneq ($(BOARD_IS_AUTOMOTIVE),true)
LOCAL_PATH := $(call my-dir)
[B][COLOR="Magenta"]ifneq ($(filter msm8960 msm8084,$(TARGET_BOARD_PLATFORM)),)
[/COLOR][/B]
keymaster-def := -fvisibility=hidden -Wall
ifeq ($(TARGET_BOARD_PLATFORM),msm8084)
keymaster-def += -D_ION_HEAP_MASK_COMPATIBILITY_WA
endif
include $(CLEAR_VARS)
LOCAL_MODULE := keystore.$(TARGET_BOARD_PLATFORM)
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_SRC_FILES := keymaster_qcom.cpp
LOCAL_C_INCLUDES := $(TARGET_OUT_HEADERS)/common/inc
LOCAL_CFLAGS := $(keymaster-def)
LOCAL_SHARED_LIBRARIES := \
libcrypto \
liblog \
libc \
libdl
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)
endif # TARGET_BOARD_PLATFORM
endif
Note that the highlighted condition is not satisfied so the main body of the file is excluded. But is it safe to just include msm8974 to the filter list or not? I mean it might help to build the ROM, but will it later work on the device?
My bad: https://github.com/nailyk-fr/local_manifests/commit/3a89e63ef7b2d6ae6bd87e44bdb6dd9615da516d
Dunno why the build ran fine on Jenkins with that missing dependency.
You probably need a repo sync --force-sync hardware/qcom/keymaster after fetching the new manifest.
nailyk said:
new manifest.
Click to expand...
Click to collapse
:good: just at first produces revision conflict with SnapdragonCamera2 cause its revision="android-8.0"
Now the build is in process (30%)
Meanwhile I want the situation with blueborne to be clarified a bit. I have found appropriate kernel commit in net/bluetooth/l2cap_core.c
file history, but searching for it among the project commits do not display it. Why
The same query works fine with android_kernel_oneplus_msm8998 commit history...

Problem with custom rom compilation

Hello
I am trying to compile RR on xperia z2
But every time the compilation ends with a mistake
I solved the first problems myself but this is beyond my possibilities
I would be very grateful for your help
OS: Ubuntu 16.04
[email protected]:/home/sthomson/rr# . build/envsetup.sh
including device/generic/car/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/uml/vendorsetup.sh
including device/sony/sirius/vendorsetup.sh
including sdk/bash_completion/adb.bash
▼ Which build-type do you want to choose?
〉 1- Unofficial ︱ For the unofficial builds
〉 2- Nightly ︱ Only for the official daily builds by the maintainers
〉 3- Weekly ︱ Only for the official weekly builds by the maintainers
〉 4- Release ︱ Only for the official releases by the RR-Team
〉 5- Milestone ︱ Only for the milestone releases by the RR-Team
〉 6- Experimental ︱ Only for the experimental releases by the RR-Team
〉 7- Final ︱ Only for the final releases by the RR-Team
〉 30/sec Time-out ︱ Default option
▼ Pick a number
1
Building unofficial variant
▼ For how many days changelog do you want to generate?
〉 30/sec Time-out ︱ 7 Days by default
▼ Type a number
1
〉 Generating day number 1 09-14-2018..
... A new repo command ( 1.23) is available.
... You should upgrade soon:
cp /home/sthomson/rr/.repo/repo/repo /usr/bin/repo
... A new repo command ( 1.23) is available.
... You should upgrade soon:
cp /home/sthomson/rr/.repo/repo/repo /usr/bin/repo
√ Changelog successfully generated.
[email protected]:/home/sthomson/rr# 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. aosp_car_emu_arm-userdebug
8. aosp_car_emu_arm64-userdebug
9. aosp_car_emu_x86-userdebug
10. aosp_car_emu_x86_64-userdebug
11. mini_emulator_arm64-userdebug
12. m_e_arm-userdebug
13. mini_emulator_x86_64-userdebug
14. mini_emulator_x86-userdebug
15. uml-userdebug
16. rr_sirius-eng
17. rr_sirius-userdebug
Which would you like? [aosp_arm-eng] 17
Trying dependencies-only mode on anon-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
RR_VERSION=RR-O-v6.2.0-20180914-sirius-Unofficial
TARGET_PRODUCT=rr_sirius
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_PLATFORM_VERSION=OPM1
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.13.0-36-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=OPM6.171019.030.K1
OUT_DIR=/home/sthomson/rr/out
AUX_OS_VARIANT_LIST=
============================================
[email protected]:/home/sthomson/rr# make sirius
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=rr_sirius
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.13.0-36-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=OPM6.171019.030.K1
OUT_DIR=/home/sthomson/rr/out
============================================
[44/44] bootstrap /home/sthomson/rr/out/soong/.minibootstrap/build.ninja.in
[4/4] /home/sthomson/rr/out/soong/.boo...on/rr/out/soong/.bootstrap/build.ninja
[872/873] glob vendor/rr/build/soong/Android.bp
[56/56] /home/sthomson/rr/out/soong/.b...home/sthomson/rr/out/soong/build.ninja
/home/sthomson/rr/out/build-rr_sirius.ninja is missing, regenerating...
[132/1087] including ./device/sony/msm8974-common/Android.mk ...
device-sony-common-init: init_sony for "sirius", platform "shinano", with ''
[330/1087] including ./frameworks/av/camera/Android.mk ...
frameworks/av/camera/cameraserver/Android.mk:18: warning: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
[597/1087] including ./packages/apps/ResurrectionOTA/Android.mk ...
cp: nie można wykonać stat na '/home/sthomson/rr/ota_conf': Nie ma takiego pliku ani katalogu
[1087/1087] including ./vendor/sony/tsubasa/Android.mk ...
PRODUCT_COPY_FILES vendor/sony/sirius/proprietary/etc/firmware/a330_pfp.fw:system/etc/firmware/a330_pfp.fw ignored.
PRODUCT_COPY_FILES vendor/sony/sirius/proprietary/etc/firmware/a330_pm4.fw:system/etc/firmware/a330_pm4.fw ignored.
PRODUCT_COPY_FILES vendor/sony/sirius/proprietary/etc/firmware/leia_pfp_470.fw:system/etc/firmware/leia_pfp_470.fw ignored.
PRODUCT_COPY_FILES vendor/sony/sirius/proprietary/etc/firmware/leia_pm4_470.fw:system/etc/firmware/leia_pm4_470.fw ignored.
PRODUCT_COPY_FILES vendor/sony/sirius/proprietary/usr/idc/AVRCP.idc:system/usr/idc/AVRCP.idc ignored.
PRODUCT_COPY_FILES vendor/sony/sirius/proprietary/usr/idc/qwerty2.idc:system/usr/idc/qwerty2.idc ignored.
PRODUCT_COPY_FILES vendor/sony/sirius/proprietary/usr/idc/qwerty.idc:system/usr/idc/qwerty.idc ignored.
vendor/rr/build/tasks/kernel.mk:152: warning: ***************************************************************
vendor/rr/build/tasks/kernel.mk:153: warning: * Using prebuilt kernel binary instead of source *
vendor/rr/build/tasks/kernel.mk:154: warning: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
vendor/rr/build/tasks/kernel.mk:155: warning: * Please configure your device to download the kernel *
vendor/rr/build/tasks/kernel.mk:156: warning: * source repository to kernel/sony/msm8974
vendor/rr/build/tasks/kernel.mk:157: warning: * for more information *
vendor/rr/build/tasks/kernel.mk:158: warning: ***************************************************************
[ 99% 1276/1277] glob vendor/rr/build/soong/Android.bp
ninja: error: unknown target 'sirius'
15:41:13 ninja failed with: exit status 1
#### failed to build some targets (44 seconds) ####
Click to expand...
Click to collapse
Regards

Categories

Resources