I encountered a problem when building lineageos 16.0, please help solve it. - LineageOS Questions & Answers

The wrong part is like this:
Code:
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `/home/jjut/los/out/target/product/albus/system/vendor/lib/libsensorndkbridge.so'
[ 99% 5741/5742] glob vendor/qcom/opensource/interfaces/wifi/supplicant/2.0/src
ninja: error: '/home/jjut/los/out/target/product/albus/obj_arm/SHARED_LIBRARIES/libqsap_sdk_intermediates/export_includes', needed by '/home/jjut/los/out/target/product/albus/obj_arm/SHARED_LIBRARIES/libqsap_shim_intermediates/import_includes', missing and no known rule to make it
17:09:12 ninja failed with: exit status 1
#### failed to build some targets (02:09 (mm:ss)) ####
I tried to find a good solution on Google or Github. Please help me on the xda developer. Thank you, I wish you a happy life.
help!

You need to declare a prebuilt shared library, atleast i fixed my error (with libminui) during building twrp, but the recovery didn't boot eventually. You need the compiled .so file and follow instructions here https://developer.android.com/ndk/guides/prebuilts

Related

Error Compiling Android 7.0 (Nougat) for Galaxy Nexus Toro (Help Needed ASAP Please)

First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
______________________________________________________________________________________________________________________________
Here are some theories I have about this problem:
- It may have to do something about the "Compiling with jack" on the android website tutorial i don't know about
- I also am thinking that it has to do something with the drivers (Vendor), since I am using the ones from stock Android 4.2.2 for the Galaxy Nexus Toro. I read from another thread saying that you have to "Modify the device tree" for a later version of Android, which I don't know about (Please give me a link or tell how to do that).
I am running Ubuntu 16.04 LTS
Developers, can you please respond as soon as possible. I would greatly appreciate it if you could.
Thanks,
Nrichard7029
Please? Anyone?
nrichard7029 said:
Please? Anyone?
Click to expand...
Click to collapse
They're all busy trying to get it to compile themselves. Lots of stuff has changed with the build system in Nougat, it's going to take a bit to get everything sorted out. Keep an eye on https://github.com/OMAP4-AOSP for the most recent changes relevant for our devices.
nrichard7029 said:
First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
Click to expand...
Click to collapse
did you solve this ? i am getting similar error instead of ''libinvensense_hal_intermediates'' i have ''libbootloader_message_writer_intermediates''
nrichard7029 said:
First of all, I would like to tell that this is my first time compiling a rom from source, and so I am very sorry for any silly mistakes I made.
I have been having this issue lately with compiling the latest version of Android (Nougat 7.0) as of now to the Galaxy Nexus. I was able to get everything except the ending part to compile the flashable zip. Here is the error I get on the terminal whenever I try:
______________________________________________________________________________________________________________________________
No private recovery resources for TARGET_DEVICE toro
build/core/binary.mk:664: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:664: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:668: warning: overriding commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:668: warning: ignoring old commands for target `out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/toro/obj/SHARED_LIBRARIES/libinvensense_hal_intermediates/export_includes', needed by 'out/target/product/toro/obj/SHARED_LIBRARIES/sensors.tuna_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (07:05 (mm:ss)) ####
______________________________________________________________________________________________________________________________
Here are some theories I have about this problem:
- It may have to do something about the "Compiling with jack" on the android website tutorial i don't know about
- I also am thinking that it has to do something with the drivers (Vendor), since I am using the ones from stock Android 4.2.2 for the Galaxy Nexus Toro. I read from another thread saying that you have to "Modify the device tree" for a later version of Android, which I don't know about (Please give me a link or tell how to do that).
I am running Ubuntu 16.04 LTS
Developers, can you please respond as soon as possible. I would greatly appreciate it if you could.
Thanks,
Nrichard7029
Click to expand...
Click to collapse
, I know this is quite late, but searching for the same error on google and found your thread:
Just go to file manager, click view, go on "Show Hidden Files", tick it, and open your .bashrc file. At the bottom of it, add "export USE_NINJA=false" . This should fix your error.
Think "tuna" - not "toro"
bablu048 said:
did you solve this ? i am getting similar error instead of ''libinvensense_hal_intermediates'' i have ''libbootloader_message_writer_intermediates''
Click to expand...
Click to collapse
You may want to change your thinking to "tuna" (a unified build) - as opposed to "toro" (device-specific); this is especially true for 6.0 and later. In fact, I've seen fewer and fewer specific builds for tuna-family members (even the GSM-specific maguro, the most commonplace outside the US) - my usual N builds are from a maguro owner that is from (doun't laugh) Japan - we don't even have a language in common. (They don't speak CDMA in Japan - and the builder himself tests on maguro hardware. Me? I run on toro hardware and VZW MVNO Tracfone - no such thing as corndog sushi!
Found the issue - it's in ninja (called by brunch). Any idea if it's even fixable?

Cannot build Lineage OS 14.1 for moto g (FALCON)

I'm trying to build Lineage OS 14.1 but I get this error :
Code:
Checking build tools versions...
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
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/mnt/volume-nyc1-01/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
No private recovery resources for TARGET_DEVICE falcon
build/core/java.mk:334: warning: overriding commands for target `/mnt/volume-nyc1-01/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/mnt/volume-nyc1-01/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/mnt/volume-nyc1-01/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/mnt/volume-nyc1-01/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/mnt/volume-nyc1-01/out/target/product/falcon/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/mnt/volume-nyc1-01/out/target/product/falcon/root/res/images/charger/battery_fail.png'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/mnt/volume-nyc1-01/out/target/common/obj/JAVA_LIBRARIES/tcmiface_intermediates/classes.jack', needed by '/mnt/volume-nyc1-01/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/with-local/classes.dex', 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: Leaving directory '/mnt/volume-nyc1-01'
#### make failed to build some targets (02:09 (mm:ss)) ####
Is there a way to get arround this issue ?
Unfortunately, I am in no position to help.
But I'm also trying to build LOS14.1 (following wiki.lineageos.org/Build_for_falcon.html) and failing earlier than you since some blobs are missing, namely vendor/lib/libbccQTI.so and vendor/lib/libscale.so. They are not on my phone (currently running cm13). Do you know where to get those?
(Others have originally also not been fetched from my phone using device/motorola/falcon/extract-files.sh, but I modified msm8226-common/proprietary-files.txt to include those.)
brodekind said:
Unfortunately, I am in no position to help.
But I'm also trying to build LOS14.1 (following wiki.lineageos.org/Build_for_falcon.html) and failing earlier than you since some blobs are missing, namely vendor/lib/libbccQTI.so and vendor/lib/libscale.so. They are not on my phone (currently running cm13). Do you know where to get those?
(Others have originally also not been fetched from my phone using device/motorola/falcon/extract-files.sh, but I modified msm8226-common/proprietary-files.txt to include those.)
Click to expand...
Click to collapse
I'm getting the proprietary files from TheMuppets : github.com/TheMuppets/proprietary_vendor_motorola
Maybe it can help you. I still haven't been able to build falcon because of my error.
Thanks for your answer.
Couldn't get it to work with TheMuppets repo, though.
However, it seems to build now (currently at 50%). I installed the official nightly on my phone. Updated my repo (without muppets), used extract-files.sh to get the blobs (had to edit msm8226-common/proprietary-files.txt to include some more libraries) and followed the build guide, i.e. breakfast falcon, brunch falcon.
Just posting this so you know this error might have to do with your system setup.
Thanks @brodekind to let me know. I will retry with a new vps.
BruhToine said:
Thanks @brodekind to let me know. I will retry with a new vps.
Click to expand...
Click to collapse
Did you find any solution? I'm also getting the same error
Jerwinn7 said:
Did you find any solution? I'm also getting the same error
Click to expand...
Click to collapse
No sorry. I've redo the setup process but I still get same error.
If you use extract-files.sh, it accesses files in folders which require root permission. Make sure, that you allow root for USB debugging/ADB in the developer settings.
BruhToine said:
I'm trying to build Lineage OS 14.1 but I get this error :
Is there a way to get arround this issue ?
Click to expand...
Click to collapse
Was this error solved? Could you please assist?

Trying to compile Lineage 15 from modified device tree - error

Hey guys!
So I'm currently experimenting with porting Lineage 15 (don't get your hopes up; I'm just looking for patterns in other device trees and carrying them over to this one) and I'm always getting stuck at this error:
Code:
ninja: error: '/home/alexander/oreo/out/target/product/ether/obj/STATIC_LIBRARIES/libbootloader_message_intermediates/export_includes', needed by '/home/alexander/oreo/out/target/product/ether/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
02:16:32 ninja failed with: exit status 1
It seems that I might be lacking some library that some component is requesting, however I have no idea how to trace these things. Any ideas?

Building AOSP 8.0.0_r30 for Xperia XZ2 Compact (h8314)

Well, new user but old lurker here, no points to post in dev threads and I'm not going to wait 3 months to get them so jumping right into things...
This is a record of my attempts to build AOSP 8.0 Orea for the nex Xperia XZ2 Compact. I'm running into problems and figured I'd document them here, for the betterment of others and to get help if needed.
Main guide: https://developer.sony.com/develop/open-devices/guides/aosp-build-instructions/build-aosp-oreo-8-0-kernel-4-4/#tutorial-step-3
Some modification required, as the phone and code are both pretty new, as mentioned by BeNeDeLuX on May 22 the repo was only just uploaded. More to follow.
github links not permitted?!??!?
well according to XDA, outside links are not allowed to be posted until you've replied 10 times... Even if the posts are OBVIOUSLY code-related (e.g. GitHub *cough*cough*)...
Please excuse me while I go spam another thread, or create an intro or something... brb
Step 2
OK, jumping right back into it:
Now we need to add the git repos for tama (platform) and apollo (xz2).
First follow the steps in the main guide up to step 4.3: https://developer.sony.com/develop/.../build-aosp-oreo-8-0-kernel-4-4/
Then clone the following two repositories into the ~/android/devices/sony directory:
Code:
git clone https://github.com/sonyxperiadev/device-sony-tama.git tama
Code:
git clone https://github.com/sonyxperiadev/device-sony-apollo.git apollo
now continue on with the steps in the main guide
There may be errors yet to come...
First error
First error:
Code:
build/core/base_rules.mk:374: warning: ignoring old commands for target
`out/target/product/apollo/vendor/etc/gps.conf'
ninja: error: 'kernel/sony/msm/arch/arm64/configs/aosp_tama_apollo_defconfig',
needed by '/home/anna/android_8-0-0/out/target/product/apollo/obj/KERNEL_OBJ/.config',
missing and no known rule to make it
16:32:12 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 failed to build some targets (01:40 (mm:ss)) ####
System Info:
Code:
Linux hostname 4.8.0-53-generic #56~16.04.1-Ubuntu SMP Tue May 16 01:18:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Will post any progress as I make it, suggestions are welcome. You can find the full log here
any progress??
I'm back!
[email protected] said:
any progress??
Click to expand...
Click to collapse
Hey yes sorry my real-life job doesn't always allow for much personal time...
So right now the Sony dev repos don't have a pre-built kernel or kernel configuration for the XZ2 Compact.
I've grabbed the current config from /proc/config.gz on my XZ2 Compact running Android 8.0.0, Linux kernel 4.9.65-perf+, posted to gist here: https://gist.github.com/Ifiht/9d0eff34d1f47ecd955b49acd34a14fb
The closest config (based on software/hardware from https://en.wikipedia.org/wiki/Sony_Xperia) in sony repos is the aosp_yoshino_lilac default config, I've started compiling all these resources in a single git repo at https://github.com/Ifiht/sony-xperia-xz2.build.
Will update here with progress once I've got some with the kernel build.
2nd Error
Code:
ninja: error: 'out/target/product/apollo/obj_arm/SHARED_LIBRARIES/libqdutils_intermediates/export_includes', needed by 'out/target/product/apollo/obj_arm/SHARED_LIBRARIES/libOmxVdec_intermediates/import_includes', missing and no known rule to make it
12:58:20 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 failed to build some targets (03:37 (mm:ss)) ####
So the build failed again using the defconfig listed in my git repo for this project. This time it doesn't even look like a kernel issue, more like a repo conflict given that all the errors are in "out" directory.
Appreciate any guidance from those that have seen this before. Full error copied here: https://gist.github.com/Ifiht/bb4e1dd43b6598ffcf02b83d960cd959
3rd error
Code:
[ 90% 10/11] glob system/core/*/Android.bp
ninja: error: 'device/sony/common-kernel/kernel-dtb-apollo', needed by 'out/target/product/apollo/kernel', missing and no known rule to make it
14:07:36 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
After upgrading my kernel and local repos to 4.9.6 and re-syncing everything for good measure I'm now getting the above. At least this one seems straightforward, even if it may mean I have to frankenstein together a custom kernel from the flagship source repos currently available from Sony...
Oh well onward and upward!
Build attempt on Mac OSX
Hey,
thank you for documenting your progress, I am playing along trying to get the build to work on my Mac OS 10.13 machine,
nice to see I am not the only one trying
Stuck with the exact same error now btw
Code:
[ 99% 141/142] glob prebuilts/abi-dumps/vndk/current/arm64/source-based/[email protected]
ninja: error: 'device/sony/common-kernel/kernel-dtb-apollo', needed by 'out/target/product/apollo/kernel', missing and no known rule to make it
20:16:48 ninja failed with: exit status 1
best wishes
https://github.com/sonyxperiadev/bug_tracker/issues/169#issuecomment-424278920
PLEASE DON'T FLASH TAMA WITH THE CURRENT KERNEL
My Akari's display got permanently damaged.
I repeat, DO NOT FLASH.
Click to expand...
Click to collapse

[PORT] Vendor from omni to lineage

I found omni9 vendor, there is a way to port them to lineage?
https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P?files=1
You need port device tree to Lineage... this vendor is PIE
Zmianekpl said:
I found omni9 vendor, there is a way to port them to lineage?
https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P?files=1
Click to expand...
Click to collapse
That doesnt even have to be ported, you can easily pull those files from the stock rom
Sorry but i lost my mind when searching solution for these error's, can somebody look up on it ?
They are here:
Vendor by @robotusr - https://github.com/robotusr/proprietary_vendor_xiaomi_daisy
Code:
[ 99% 1044/1045] glob vendor/rr/overlay/common/**/*
ninja: error: '/home/zmianek/RR/out/target/product/daisy/obj/STATIC_LIBRARIES/bootctrl.msm8953_intermediates/export_includes', needed by '/home/zmianek/RR/out/target/product/daisy/obj/EXECUTABLES/update_engine_sideload_intermediates/import_includes', missing and no known rule to make it
14:31:48 ninja failed with: exit status 1
I give it another shot with omni vendor but ended with:
Vendor by @wertus33333 - https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P
Code:
[1027/1028] including vendor/xiaomi/daisy/Android.mk ...
build/make/core/base_rules.mk:260: error: vendor/xiaomi/daisy: MODULE.TARGET.SHARED_LIBRARIES.libaudiopolicymanager already defined by vendor/qcom/opensource/audio/policy_hal.
When i comment "LOCAL_MODULE := libaudiopolicymanager" in vendor/xiaomi/daisy/Android.mk it displays
Code:
[1027/1028] including vendor/xiaomi/daisy/Android.mk ...
build/make/core/dynamic_binary.mk:20: error: vendor/xiaomi/daisy: LOCAL_MODULE not defined before call to local-intermediates-dir.
20:17:02 ckati failed with: exit status
Zmianekpl said:
I found omni9 vendor, there is a way to port them to lineage?
https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P?files=1
Click to expand...
Click to collapse
The tree is not stable/finished, as soon as it works for omni (don't expect anything soon ) it should be easy to port it to lineage.
Zmianekpl said:
I give it another shot with omni vendor but ended with:
Vendor by @wertus33333 - https://github.com/DaisyRomz/proprietary_vendor_xiaomi_daisy/tree/P
Code:
[1027/1028] including vendor/xiaomi/daisy/Android.mk ...
build/make/core/base_rules.mk:260: error: vendor/xiaomi/daisy: MODULE.TARGET.SHARED_LIBRARIES.libaudiopolicymanager already defined by vendor/qcom/opensource/audio/policy_hal.
When i comment "LOCAL_MODULE := libaudiopolicymanager" in vendor/xiaomi/daisy/Android.mk it displays
Code:
[1027/1028] including vendor/xiaomi/daisy/Android.mk ...
build/make/core/dynamic_binary.mk:20: error: vendor/xiaomi/daisy: LOCAL_MODULE not defined before call to local-intermediates-dir.
20:17:02 ckati failed with: exit status
Click to expand...
Click to collapse
What does it say if you remove the first entry in vendor/daisy/android.mk, where libaudiopolicymanager is defined? I'm sorry for the bad work i'm no dev. Therefore please take everything on github with a bit of care . If you are interested in trying to build roms for the device feel free to pm me your telegram id and i'll add you to the "daisy "dev" group".

Categories

Resources