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...
Related
help into this no such file : full_w100-eng
but i
Code:
[email protected]:~/android/w100$ build/tools/device/mkvendor.sh cm w100 ~/ddd/boot.img
Output will be in /home/w100/android/w100/device/cm/w100
645 blocks
Done!
Use the following command to set up your build environment:
lunch full_w100-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh full_w100-eng
[email protected]:~/android/w100$ lunch full_w100-eng
No such file: full_w100-eng
[email protected]:~/android/w100$ make -j4 recoveryimage============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
system/core/toolbox/Android.mk:90: warning: overriding commands for target `out/target/product/generic/system/bin/lsof'
build/core/base_rules.mk:474: warning: ignoring old commands for target `out/target/product/generic/system/bin/lsof'
make: Nothing to be done for `recoveryimage'.
Hi everyone !
I'm tryning to build CM12.1 from source for i9300
I'm am facing this error and can't figure out why ...
Code:
alexs-imac:system Alex$ brunch i9300 user j-2
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150628-UNOFFICIAL-i9300
TARGET_PRODUCT=cm_i9300
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-14.3.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/Volumes/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150628-UNOFFICIAL-i9300
TARGET_PRODUCT=cm_i9300
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-14.3.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/Volumes/android/system/out
============================================
"ebtables is disabled on this build"
external/openssl/Crypto-config-host.mk:712: Unknown host OS darwin
external/openssl/Crypto-config-host.mk:712: Unknown host OS darwin
external/openssl/Ssl-config-host.mk:111: Unknown host OS darwin
external/openssl/Ssl-config-host.mk:111: Unknown host OS darwin
external/openssl/Apps-config-host.mk:117: Unknown host OS darwin
find: dummy: No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
PRODUCT_COPY_FILES device/samsung/smdk4412-common/rootdir/init.trace.rc:root/init.trace.rc ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/audio_effects.conf:system/etc/audio_effects.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:46: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/media_codecs_ffmpeg.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/media_codecs_ffmpeg.xml'
build/core/Makefile:46: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:149: *** BUILD_FINGERPRINT cannot contain spaces: "samsung/cm_i9300/i9300:5.1.1/LMY48B/(stdin)= f:user/test-keys". Stop.
#### make failed to build some targets (02:12 (mm:ss)) ####
alexs-imac:system Alex$
Thanks in advance
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 =)
I am working for lineageos 13.0 for my lg nitro hd (p930)
I try to make clobber and rebuild 4-5 times but still make this error (Just a unnormal syntax error)
My device repo https://github.com/Nitro-lineage
Please help me and sorry for my bad english
full error log: https://pastebin.com/uYsDzLBX
Code:
[email protected]:~/lineage$ brunch p930 2>&1 | tee build.logincluding vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20170527-UNOFFICIAL-p930
TARGET_PRODUCT=lineage_p930
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=scorpion
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.8.0-53-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=MOB31T
OUT_DIR=/home/man1/lineage/out
============================================
make: Entering directory '/home/man1/lineage'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20170527-UNOFFICIAL-p930
TARGET_PRODUCT=lineage_p930
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=scorpion
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.8.0-53-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=MOB31T
OUT_DIR=/home/man1/lineage/out
============================================
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/obj/include/qcom/display/copybit_priv.h'
build/core/base_rules.mk:559: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/root/res/images/charger/battery_fail.png'
find: ‘dummy’: 沒有此一檔案或目錄
build/core/Makefile:46: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/system/bin/rild'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/system/bin/rild'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
build/core/Makefile:46: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/system/etc/wifi/wpa_supplicant.conf'
No private recovery resources for TARGET_DEVICE p930
target Symbolic: libm (/home/man1/lineage/out/target/product/p930/symbols/system/lib/libm.so)
external/sepolicy/zygote.te:3:ERROR 'syntax error' at token 'type' on line 10062:
type zygote, domain;
# zygote
checkpolicy: error(s) encountered while parsing configuration
/home/man1/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/man1/lineage/out/target/product/p930/obj/ETC/sepolicy_intermediates/policy.conf
external/sepolicy/Android.mk:85: recipe for target '/home/man1/lineage/out/target/product/p930/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/man1/lineage/out/target/product/p930/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/man1/lineage'
#### make failed to build some targets (53 seconds) ####
[email protected]:~/lineage$
this is my device_tree github.com/jk2K/android_device_meizu_mx4pro
kernel, github.com/meizuosc/m462
I got this error when i try to port lineageOS 14.1 to meizu mx4pro
HTML:
lineage make recoveryimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20170910-UNOFFICIAL-mx4pro
TARGET_PRODUCT=lineage_mx4pro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
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.10.0-19-generic-x86_64-with-Ubuntu-17.04-zesty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/meng/android/lineage/out
RECOVERY_VARIANT=twrp
============================================
Running kati to generate build-lineage_mx4pro.ninja...
device/meizu/mx4pro/BoardConfigCommon.mk was modified, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.2
LINEAGE_VERSION=14.1-20170910-UNOFFICIAL-mx4pro
TARGET_PRODUCT=lineage_mx4pro
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
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.10.0-19-generic-x86_64-with-Ubuntu-17.04-zesty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NJH47F
OUT_DIR=/home/meng/android/lineage/out
RECOVERY_VARIANT=twrp
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/meng/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/binary.mk:1253: hardware/samsung_slsi-cm/exynos5430/mobicore/common/LogWrapper/Android.mk: mcDriverDaemon: Unused source files: \
build/core/Makefile:34: warning: overriding commands for target `/home/meng/android/lineage/out/target/product/mx4pro/system/lib/libril.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/meng/android/lineage/out/target/product/mx4pro/system/lib/libril.so'
build/core/Makefile:34: warning: overriding commands for target `/home/meng/android/lineage/out/target/product/mx4pro/system/vendor/lib/libbt-vendor.so'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/meng/android/lineage/out/target/product/mx4pro/system/vendor/lib/libbt-vendor.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/meng/android/lineage/out/target/product/mx4pro/obj/STATIC_LIBRARIES/libbootloader_message_intermediates/export_includes', needed by '/home/meng/android/lineage/out/target/product/mx4pro/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (01:00 (mm:ss)) ####
what can i do? thanks