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

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?

Related

Xoom with ICS 4.0.3 AOSP how to

Now that the code is out, let's start hacking the Xoom.
These instructions are for Linux 64-bit Ubuntu 11.10 / Mint 12, with latest updates.
follow directions on source.android.com to set up your environment
then move to next page to set up the repo and download the code
make sure you use Sun/Oracle Java Development Kit 1.6.x. It WILL NOT work with OpenJDK, which comes with Ubuntu 11.10/Mint 12. (best is remove OpenJDK to avoid hard to track errors)
downloading the code takes ages (a good 2h even with a good connection) and requires at least 2GB of hard disk space. But for compilation, I'd recommend to have 20GB at least.
download proprietary drivers at: http://tinyurl.com/6rfu8rn
extract the drivers from Broadcom and NVidia, this will gives you 2 .sh files
just run these 2 .sh files and copy the created vendor/ directory into the root of your Google code repo.
There are 2 kinds of Xoom
Xoom Verizon LTE, codename stingray
Xoom wifi, codename wingray
Make some corrections in the code for GCC 4.6
external/mesa3d/src/glsl/linker.cpp: l.70 add: #include <cstddef>
To build the code:
. ./build/envsetup.sh
lunch full_stingray-userdebug or full_wingray-userdebug
make -j5
This can take 2h to compile on an average machine like my MacBook Pro with 8GB RAM (very important to have more than 4GB!!!), or even more. And having a quad-core machine (or even more cores), really saves you tons of time!
Once compilation is done, it's time to flash:
go to out/target/product/wingray (or stingray)
put your Xoom in fastboot mode: power off, then volume down + power on
fastboot erase cache
fastboot erase userdata
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot reboot
Note: you don't need to flash recovery.img, you should instead flash ClockworkMod recovery (http://download.clockworkmod.com/recoveries/recovery-clockwork-4.0.0.4-stingray.img)
And voila, you have a Xoom with WiFi working and all goodies from AOSP. This means no Google apps like Market...
To install Google Apps:
download this zip file [http://www.mediafire.com/?1l4ravroiwt4ybw[/url]
unzip it and go inside the folder
boot your device normally
rm system/app/Nfc*
adb push system /system
adb reboot
There are some errors with exchange service but Market, GMail, Maps work correctly. From there, go update your apps from Market
Enjoy!
Update 1: Android 4.0.1 issues back in 4.0.3?
Some people noted some compilation errors I didn't get on 4.0.3 but on 4.0.1. Here are solutions for 4.0.1 (emulator) that may work for you:
build/core/combo/HOST_linux-x86.mk:61 HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
build/core/combo/javac.mk:15 COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -source 1.5 -Xmaxerrs 9999999
frameworks/base/libs/util/Android.mk: 63 LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
libcore/luni/src/main/java/java/lang/Enum.java: 128 return ordinal - o.ordinal ();
external/gtest/include/gtest/internal/gtest-param-util.h:40 #include <cstddef> (after #include <vector>)
How much space just to tinker with ICS/gingerbread?
I have a 1.5 mbps DSL connection and 200gb would take me 8 day/24 hour of downloading and I cant do that.
Kippui said:
How much space just to tinker with ICS/gingerbread?
I have a 1.5 mbps DSL connection and 200gb would take me 8 day/24 hour of downloading and I cant do that.
Click to expand...
Click to collapse
I do my building in a VM and the virtual disk image that has ubuntu and AOSP has grown to 45 GB after a compile.
Also, question for OP... why don't we see people using "make -j otapackage" to create CWM compatible ROMs? Just make sure it doesn't have a recovery in it (or it will torch your existing recovery). I torched my recovery the first time I did it, but I think I fixed it (haven't reflashed to find out).
It builds just fine with 3 GB of RAM in my VM here. Takes around 1 hour for me, with 6 CPU threads assigned to the VM, and using -j6. I just wish I could make sure it doesn't waste time compiling the various demos and tests.
I'm also using ccache to speed up (re)building. Google has instructions on how to set it up (it's really easy). Copied from their page (http://source.android.com/source/initializing.html):
You can optionally tell the build to use the ccache compilation tool. Ccache acts as a compiler cache that can be used to speed-up rebuilds. This works very well if you do "make clean" often, or if you frequently switch between different build products.
Put the following in your .bashrc or equivalent.
export USE_CCACHE=1
By default the cache will be stored in ~/.ccache. If your home directory is on NFS or some other non-local filesystem, you will want to specify the directory in your .bashrc as well.
export CCACHE_DIR=<path-to-your-cache-directory>
The suggested cache size is 50-100GB. You will need to run the following command once you have downloaded the source code.
prebuilt/linux-x86/ccache/ccache -M 50G
This setting is stored in the CCACHE_DIR and is persistent.
Click to expand...
Click to collapse
I have it set to only 10 GB here, but if you intend to do a lot of rebuilding, 20-40 GB might be a better idea.
The full AOSP tree + out directory takes 24G on my machine using du -sh.
The OTA package is 90MB, including the recovery, which you probably want to remove.
Indeed, I forgot to mention using USE_CCACHE, it really speeds up your builds. Make sure your cache dir is the top of your AOSP tree, it's even better.
Hi,
Huge thanks for those usefull instructions.
Just a hint for Gentoo builders (and maybe others distrib), if you're having this error after the "lunch" command :
Code:
AOSP> lunch full_wingray-userdebug
build/core/config.mk:268: *** Error: could not find jdk tools.jar, please install JDK6, which you can download from java.sun.com. Stop.
** Don't have a product spec for: 'full_wingray'
** Do you have the right repo manifest?
just export env ANDROID_JAVA_HOME with full jdk path :
Code:
export ANDROID_JAVA_HOME=/opt/sun-jdk-1.6.0.29/
winglord said:
There are 2 kinds of Xoom
Xoom Verizon LTE, codename stingray
Xoom wifi, codename wingray
Click to expand...
Click to collapse
There's three kinds of Xoom, the GSM MZ601 as well (Moto's codename everest). This is not supported by Google, but hopefully the hardware is close enough to stingray that the port shouldn't be overly difficult. At worst, the port to everest might have issues with vendor_ril?
please post your finished from.
Sent from my Full Android on Wingray using Tapatalk
Does someone know if there is a way to run builded images into the sdk emulator ?
Not sure what I am doing wrong:
Code:
/ICS_SOURCE# make -j4 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.3
TARGET_PRODUCT=full_wingray
TARGET_BUILD_VARIANT=userdebug
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=IML74K
============================================
build/core/main.mk:324: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE wingray
host C++: llvm-rs-cc <= frameworks/compile/slang/llvm-rs-cc.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_ast_replace.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_context.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_ast_replace.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_context.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs.o] Error 1
[email protected]:~/ICS_SOURCE#
Im using this guide as it has more details: http://www.freeyourandroid.com/guide/compile-ics
Any guidance someone could offer would be great.
Are you in ubuntu 11.10? I was having issues also. Check out this site...
http://www.android-dev.ro/2011/12/13/building-android-4-0-on-ubuntu-11-10/
aceman118 said:
Are you in ubuntu 11.10? I was having issues also. Check out this site...
http://www.android-dev.ro/2011/12/13/building-android-4-0-on-ubuntu-11-10/
Click to expand...
Click to collapse
Thanks, I am useing 11.10 so ill read through this and try again.
EDIT: got my first build completed! Thanks
you can use wingray or stingray on everest. Of course, if you use wingray on everest, you won't have phone app and other phone only features.
aceman118 said:
Are you in ubuntu 11.10? I was having issues also. Check out this site...
http://www.android-dev.ro/2011/12/13/building-android-4-0-on-ubuntu-11-10/
Click to expand...
Click to collapse
I'm using Ubuntu 11.10 64bit and GCC 4.6.
Keep in mind to add '#include <cstddef>' in headers where you have compile errors like indexOf() not found.
popokrew said:
Not sure what I am doing wrong:
Code:
/ICS_SOURCE# make -j4 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.3
TARGET_PRODUCT=full_wingray
TARGET_BUILD_VARIANT=userdebug
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=IML74K
============================================
build/core/main.mk:324: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE wingray
host C++: llvm-rs-cc <= frameworks/compile/slang/llvm-rs-cc.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_ast_replace.cpp
host C++: llvm-rs-cc <= frameworks/compile/slang/slang_rs_context.cpp
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>:0:0: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/llvm-rs-cc.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_ast_replace.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs_context.o] Error 1
cc1plus: all warnings being treated as errors
make: *** [out/host/linux-x86/obj/EXECUTABLES/llvm-rs-cc_intermediates/slang_rs.o] Error 1
[email protected]:~/ICS_SOURCE#
Im using this guide as it has more details: http://www.freeyourandroid.com/guide/compile-ics
Any guidance someone could offer would be great.
Click to expand...
Click to collapse
You are not doing anything wrong, this is a GCC 4.6 restriction.
Weird I didn't see it with ics 4.0.3 but with 4.0.1 before.
Here is what you need to do for 4.0.1:
build/core/combo/HOST_linux-x86.mk:61 HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
build/core/combo/javac.mk:15 COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -source 1.5 -Xmaxerrs 9999999
frameworks/base/libs/util/Android.mk: 63 LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
libcore/luni/src/main/java/java/lang/Enum.java: 128 return ordinal - o.ordinal ();
external/gtest/include/gtest/internal/gtest-param-util.h:40 #include <cstddef> (after #include <vector>)
winglord said:
You are not doing anything wrong, this is a GCC 4.6 restriction.
Weird I didn't see it with ics 4.0.3 but with 4.0.1 before.
Here is what you need to do for 4.0.1:
build/core/combo/HOST_linux-x86.mk:61 HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
build/core/combo/javac.mk:15 COMMON_JAVAC := javac -J-Xmx512M -target 1.5 -source 1.5 -Xmaxerrs 9999999
frameworks/base/libs/util/Android.mk: 63 LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
libcore/luni/src/main/java/java/lang/Enum.java: 128 return ordinal - o.ordinal ();
external/gtest/include/gtest/internal/gtest-param-util.h:40 #include <cstddef> (after #include <vector>)
Click to expand...
Click to collapse
winglord, I was able to get it to build with the guide aceman posted. I believe its because of the modified make: make CC=gcc-4.4 CXX=g++-4.4
Where would I find a log for the entire build? A lot of stuff scrolls by while building.
Now I just need to get the recovery image out (guessing just delete it out of the ota .zip?) and try it out. My Xoom isnt with me right now.
AlEsC said:
Does someone know if there is a way to run builded images into the sdk emulator ?
Click to expand...
Click to collapse
When running lunch you have to chose one of the emulator builds (full_eng if my memory's right). You can't run a build compiled for a specific device.
RMerlin said:
When running lunch you have to chose one of the emulator builds (full_eng if my memory's right). You can't run a build compiled for a specific device.
Click to expand...
Click to collapse
Thanks
This means I'll have to rebuild all !!
Another question, I've made a successfully build, then I've made some modification in the sources, so I've deleted all *.img thinking that "make" will rebuild them... but "make" only rebuild "system.img", "ramdisk.img" and "userdata.img".
Is there a "make boot" or something like that ? (real question is how do I rebuild my boot.img )
Thanks
winglord said:
I'm using Ubuntu 11.10 64bit and GCC 4.6.
Keep in mind to add '#include <cstddef>' in headers where you have compile errors like indexOf() not found.
Click to expand...
Click to collapse
I tried that and it didn't seem to work for me. Once I used GCC 4.4 it worked. I couldn't tell you why, though.
So I finally got a build up and running - is there something special that has to be done with the vendor binaries? I know I have seen this in other builds too but the kernel is still showing 2.x and the camera, mic and gps are not working. Is that because work needs to be done to the kernel before it is 100% with ICS? This is my first time messing with an android build so forgive me if this is a dumb question.
AlEsC said:
Thanks
This means I'll have to rebuild all !!
Another question, I've made a successfully build, then I've made some modification in the sources, so I've deleted all *.img thinking that "make" will rebuild them... but "make" only rebuild "system.img", "ramdisk.img" and "userdata.img".
Is there a "make boot" or something like that ? (real question is how do I rebuild my boot.img )
Thanks
Click to expand...
Click to collapse
Make is usually smart enough to know when something you changed will not result in a different output. It is possible that the changes you made would result in an identical boot.img, therefore it is not rebuilding it.

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?

Help with compiling nitrogen os

EDIT: SEPTEMBER I managed to compile nitrogen p the 5t with gzosp.
I can't test it atm. Is anyone able to see if it boots.
https://drive.google.com/file/d/1iqX4HLfVPAIDDrIoSLcQefkXY_FRxGjQ/view?usp=sharing
Add these 2 lines in boardconfig.mk
SRC_DISPLAY_HAL_DIR := hardware/qcom/display-caf/msm8998
SRC_MEDIA_HAL_DIR := hardware/qcom/media-caf/msm8998
quake73 said:
Add these 2 lines in boardconfig.mk
SRC_DISPLAY_HAL_DIR := hardware/qcom/display-caf/msm8998
SRC_MEDIA_HAL_DIR := hardware/qcom/media-caf/msm8998
Click to expand...
Click to collapse
speaking of the awesome guy ^^^^^^^^^^^^
i hate to keep just posting errors and annoying you/s but it seems it just compiles for 1 second then errors with a new error. like it keep going and going and i dont want to keep posting errors that i dont know how to fix
Code:
[email protected]:~/AOSP$ make clobber
19:35:42 Entire build directory removed.
#### build completed successfully ####
[email protected]:~/AOSP$ make otapackage -j4
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=8.1.0
TARGET_PRODUCT=nitrogen_dumpling
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a73
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=OPM5.171019.017
OUT_DIR=/home/jamie/AOSP/out
============================================
[44/44] bootstrap /home/jamie/AOSP/out/soong/.minibootstrap/build.ninja.in
[4/4] /home/jamie/AOSP/out/soong/.boot.../AOSP/out/soong/.bootstrap/build.ninja
[859/860] glob vendor/*/*/*/*/*/*/Android.bp
[54/54] /home/jamie/AOSP/out/soong/.bo.../home/jamie/AOSP/out/soong/build.ninja
/home/jamie/AOSP/out/build-nitrogen_dumpling.ninja is missing, regenerating...
[471/986] including ./hardware/qcom/camera/Android.mk ...
build/core/binary.mk:40: warning: hal3-test-app uses kernel headers, but does not depend on them!
[659/986] including ./system/sepolicy/Android.mk ...
./system/sepolicy/Android.mk:111: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[986/986] including ./vendor/qcom/opensource/rcs-service/Android.mk ...
PRODUCT_COPY_FILES device/oneplus/msm8998-common/configs/perfboostsconfig.xml:system/vendor/etc/perf/perfboostsconfig.xml ignored.
build/core/Makefile:53: warning: Duplicate header copy: /home/jamie/AOSP/out/target/product/dumpling/obj/include/qcom/display/qd_utils.h
build/core/Makefile:53: warning: Defined in: hardware/qcom/display-caf/msm8998/libqdutils/../common.mk hardware/qcom/display-caf/msm8998/libqdutils/../common.mk
No private recovery resources for TARGET_DEVICE dumpling
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/framework/dpm.jar'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/framework/dpm.jar'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib/libmm-qcamera.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib/libmm-qcamera.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib/[email protected]'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib/[email protected]'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libjni_pacprocessor.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libjni_pacprocessor.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libldacBT_abr.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libldacBT_abr.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libldacBT_enc.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/libldacBT_enc.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/[email protected]'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/lib64/[email protected]'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/hw/camera.msm8998.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/hw/camera.msm8998.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libmmcamera_interface.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libmmcamera_interface.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libmmjpeg_interface.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libmmjpeg_interface.so'
build/core/Makefile:34: warning: overriding commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libqomx_core.so'
build/core/base_rules.mk:390: warning: ignoring old commands for target `/home/jamie/AOSP/out/target/product/dumpling/system/vendor/lib/libqomx_core.so'
[ 90% 10/11] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: '/home/jamie/AOSP/out/target/product/dumpling/obj/STATIC_LIBRARIES/libinit_oneplus_msm8998_intermediates/export_includes', needed by '/home/jamie/AOSP/out/target/product/dumpling/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
19:46:17 ninja failed with: exit status 1
#### failed to build some targets (01:05 (mm:ss)) ####
I might just give up. Too hard for me. I need help for everything. I might just stick to lineage based ROMs with breakfast etc
Jamie_oppo said:
speaking of the awesome guy ^^^^^^^^^^^^
i hate to keep just posting errors and annoying you/s but it seems it just compiles for 1 second then errors with a new error. like it keep going and going and i dont want to keep posting errors that i dont know how to fix
Code:
[ 90% 10/11] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: '/home/jamie/AOSP/out/target/product/dumpling/obj/STATIC_LIBRARIES/libinit_oneplus_msm8998_intermediates/export_includes', needed by '/home/jamie/AOSP/out/target/product/dumpling/obj/EXECUTABLES/init_intermediates/import_includes', missing and no known rule to make it
19:46:17 ninja failed with: exit status 1
#### failed to build some targets (01:05 (mm:ss)) ####
Click to expand...
Click to collapse
That module (libinit_oneplus_msm8998_intermediates) gets built by device/oneplus/msm8998-common/init. Are you sure you synced everything? Do you have the folder device/oneplus/msm8998-common?
quake73 said:
speaking of the awesome guy ^^^^^^^^^^^^
i hate to keep just posting errors and annoying you/s but it seems it just compiles for 1 second then errors with a new error. like it keep going and going and i dont want to keep posting errors that i dont know how to fix
That module (libinit_oneplus_msm8998_intermediates) gets built by device/oneplus/msm8998-common/init. Are you sure you synced everything? Do you have the folder device/oneplus/msm8998-common?
Click to expand...
Click to collapse
I think I messed with it and it wasn't working properly. Redownloaded it, now I got a different error. I look tomorrow. Looks like a vendor error.
Thanks again for the help
quake73 said:
That module (libinit_oneplus_msm8998_intermediates) gets built by device/oneplus/msm8998-common/init. Are you sure you synced everything? Do you have the folder device/oneplus/msm8998-common?
Click to expand...
Click to collapse
yeah i resynced msmcommon 8998 . and i even tried swapping all these with lineage ones and still got sorta same errors
i think ive messed with too much stuff now
Code:
] glob vendor/*/*/*/*/*/*/Android.bp
ninja: error: '/home/jamie/AOSP/out/target/product/dumpling/obj/SHARED_LIBRARIES/[email protected]_intermediates/export_includes', needed by '/home/jamie/AOSP/out/target/product/dumpling/obj/EXECUTABLES/[email protected]_intermediates/import_includes', missing and no known rule to make it
17:21:38 ninja failed with: exit status 1
i might just give up. i really do think these fingerprint changes will fix it. Thats why i wanted to compile for myself but its was harder than i expected
Edit: I've given up sadly. I have no experience in code (learning at school now ) so I can't fix any errors
Thanks for the help @quake73
Hi, I'm also trying to get nitrogen working. I've made it further I think but I keep getting an error about libaudiopolicy and I can't fix it no matter what I do. I hope someone can help.
Thanks.
Code:
ninja: error: '/home/chickenzzz/builds/nitrogen_op5t/out/target/product/dumpling/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/chickenzzz/builds/nitrogen_op5t/out/target/product/dumpling/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it
22:34:18 ninja failed with: exit status 1
Chickenzzz29 said:
Hi, I'm also trying to get nitrogen working. I've made it further I think but I keep getting an error about libaudiopolicy and I can't fix it no matter what I do. I hope someone can help.
Thanks.
Code:
ninja: error: '/home/chickenzzz/builds/nitrogen_op5t/out/target/product/dumpling/obj_arm/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by '/home/chickenzzz/builds/nitrogen_op5t/out/target/product/dumpling/obj_arm/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it
22:34:18 ninja failed with: exit status 1
Click to expand...
Click to collapse
Modify this: USE_CUSTOM_AUDIO_POLICY := 0
in BoardConfigCommon.mk in device/oneplus/msm8998-common
Edit:
https://drive.google.com/file/d/1iqX4HLfVPAIDDrIoSLcQefkXY_FRxGjQ/view?usp=sharing
Edit:2 didn't boot

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

I encountered a problem when building lineageos 16.0, please help solve it.

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

Categories

Resources