Error while trying to Build AOSP 7.0 for Lux [Help needed] - X Play Q&A, Help & Troubleshooting

Hello, I am trying to build Android 7.0 AOSP for our Moto X Play.
This is my 1st time and I am running into various problems. While I have been able to fix few of them, this particular problem is out of my understanding.
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/lux/obj/KERNEL_OBJ/usr', needed by 'out/target/product/lux/obj/EXECUTABLES/audiod_intermediates/audiod_main.o', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
I have attached my local-manifest and default.xml files for reference.
@squid2 , @Vatsal , @GtrCraft , @TechnoAnder , @nickdoherty please check if any one of you can help. I am sorry for tagging you all to the post like this. But I really want to be able to successfully build the ROM for our device.
Point out my mistakes if any in local-manifest and also comment if you need any more info to be able to help me fix the issue.
Update 1 : I tried with just "make" and at last got this :
Code:
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/bin/rild'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/lib/libril.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/lib/libril.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/lib/hw/audio.primary.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/lib/hw/audio.primary.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/lib/hw/audio.primary.msm8916.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/lib/hw/audio.primary.msm8916.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/lib/hw/audio_policy.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/lib/hw/audio_policy.default.so'
build/core/ninja.mk:163: recipe for target 'out/build-aosp_lux.ninja' failed
make: *** [out/build-aosp_lux.ninja] Segmentation fault (core dumped)
make: *** Deleting file 'out/build-aosp_lux.ninja'
Update 2 : Trying again gave different error :
Code:
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/bin/rild'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/bin/rild'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/lib/libril.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/lib/libril.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/lib/hw/audio.primary.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/lib/hw/audio.primary.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/lib/hw/audio.primary.msm8916.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/lib/hw/audio.primary.msm8916.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/lux/system/lib/hw/audio_policy.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `out/target/product/lux/system/lib/hw/audio_policy.default.so'
*** glibc detected *** out/host/linux-x86/bin/ckati: free(): invalid next size (fast): 0x0000000055536890 ***
======= Backtrace: =========
[0x4946c2]
[0x42e3d8]
[0x42dc46]
[0x42c9db]
[0x477c44]
[0x4032c1]
======= Memory map: ========
00400000-00584000 r-xp 00000000 08:04 777269 /media/arnabj/Firmwares/AndroidSource/Nougat/out/host/linux-x86/bin/ckati
00584000-0058d000 rw-p 00183000 08:04 777269 /media/arnabj/Firmwares/AndroidSource/Nougat/out/host/linux-x86/bin/ckati
0058d000-005a8000 rw-p 00000000 00:00 0
02260000-5d875000 rw-p 00000000 00:00 0 [heap]
7f16f0000000-7f16f2403000 rw-p 00000000 00:00 0
7f16f2403000-7f16f4000000 ---p 00000000 00:00 0
7f16f8000000-7f16fac00000 rw-p 00000000 00:00 0
7f16fac00000-7f16fc000000 ---p 00000000 00:00 0
7f16fc000000-7f16fe400000 rw-p 00000000 00:00 0
7f16fe400000-7f1700000000 ---p 00000000 00:00 0
7f1700000000-7f1703401000 rw-p 00000000 00:00 0
7f1703401000-7f1704000000 ---p 00000000 00:00 0
7f1706e4e000-7f1706e4f000 ---p 00000000 00:00 0
7f1706e4f000-7f170764f000 rw-p 00000000 00:00 0
7f170764f000-7f1707650000 ---p 00000000 00:00 0
7f1707650000-7f1707e50000 rw-p 00000000 00:00 0
7f1707e50000-7f1707e51000 ---p 00000000 00:00 0
7f1707e51000-7f1708651000 rw-p 00000000 00:00 0
7f1708651000-7f1708652000 ---p 00000000 00:00 0
7f1708652000-7f170a257000 rw-p 00000000 00:00 0
7f170a2be000-7f170a6bf000 rw-p 00000000 00:00 0
7f170aab8000-7f170acb3000 rw-p 00000000 00:00 0
7f170ad13000-7f170ad15000 rw-p 00000000 00:00 0
7ffc0370b000-7ffc03746000 rw-p 00000000 00:00 0 [stack]
7ffc0379b000-7ffc0379d000 r--p 00000000 00:00 0 [vvar]
7ffc0379d000-7ffc0379f000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
build/core/ninja.mk:163: recipe for target 'out/build-aosp_lux.ninja' failed
make: *** [out/build-aosp_lux.ninja] Aborted (core dumped)
make: *** Deleting file 'out/build-aosp_lux.ninja'
#### make failed to build some targets (01:05 (mm:ss)) ####
Update 3 : The above error only comes up when do "make", may be my pc's resources get exhausted? doing "make -j4" gives the initial error again. So I manually created these three directories : obj, KERNEL_OBJ, usr and restarted with "make -j4".
To my surprise this time it didn't gave this error anymore. Instead it gave :
Code:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/lux/obj/SHARED_LIBRARIES/libcryptfs_hw_intermediates/export_includes', needed by 'out/target/product/lux/obj/EXECUTABLES/vold_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
When serached on Google regarding this I came to find out that I have missed "device/qcom/common/" and so updated my local-manifest and sync'd it. Even though now I have the device tree I still get the same error.

I appears to me that 'out/target/product/lux/' is having permissions issue. Because there was no 'obj' directory inside 'lux/' when the first error occured. I manually created it. But now when it's there, I still get errors of file not being found such as that eport_includes file.

A clean build again results in initial error. Hope anyone can help me fix it.

Or your build system is not powerful enough. Or you didn't set it up properly. Anyway building on aosp source is just a waste of your time. Wait for caf or cm releases

I understand it's time consuming but I am willing to put that time and effort.
And regarding my PC Confugration, its Gen 3 Core i3 (4 Cpus @ 2.59Ghz, 4+8 GiB DDR3 RAM 1600MHz)

Sorry new to this answer-question thingy.
Deleted.
---------- Post added at 02:53 AM ---------- Previous post was at 02:52 AM ----------
still this error @GtrCraft @arnabJ on the caf sources

still this error @GtrCraft @arnabJ on the caf sources

You mean to say that I may not be at fault here? I mean my setup of Local-manifest.

Related

Help on Kernel 2.6.35.10 Compilation Error

I encounter the following error when compiling the kernel 2.6.35.10.
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_request_end':
drivers/mmc/host/msm_sdcc.c:208: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_dma_complete_tlet':
drivers/mmc/host/msm_sdcc.c:350: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_start_command_deferred':
drivers/mmc/host/msm_sdcc.c:560: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c:561: error: 'MSM_MMC_REQ_TIMEOUT' undeclared (first use in this function)
drivers/mmc/host/msm_sdcc.c:561: error: (Each undeclared identifier is reported only once
drivers/mmc/host/msm_sdcc.c:561: error: for each function it appears in.)
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_probe':
drivers/mmc/host/msm_sdcc.c:1897: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c:1948: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_remove':
drivers/mmc/host/msm_sdcc.c:2010: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
make[3]: *** [drivers/mmc/host/msm_sdcc.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
My compliation steps are as follows
1. download kernel 2.6.35.10 is from microslav_mm's git webpage:
$ cd /home/username/android/
$ git clone git://github.com/mmxtrem/android_kernel_swift.git
$ cd cm-kernel after a little rename
2. pull out the /proc/config.gz from my GT540 phone (SDSL 2.1) for kernel configuration.
$ adb pull /proc/config.gz .
$ cat config.gz | gunzip > .config
$ make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig
3. configure the cross-compiler and trigger the compilation
$ export CCOMPILER=/home/username/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
How can I fix this compilation error? Any suggestions will be appreciated.
Shawn
csqjxiao said:
I encounter the following error when compiling the kernel 2.6.35.10.
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_request_end':
drivers/mmc/host/msm_sdcc.c:208: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_dma_complete_tlet':
drivers/mmc/host/msm_sdcc.c:350: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_start_command_deferred':
drivers/mmc/host/msm_sdcc.c:560: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c:561: error: 'MSM_MMC_REQ_TIMEOUT' undeclared (first use in this function)
drivers/mmc/host/msm_sdcc.c:561: error: (Each undeclared identifier is reported only once
drivers/mmc/host/msm_sdcc.c:561: error: for each function it appears in.)
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_probe':
drivers/mmc/host/msm_sdcc.c:1897: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c:1948: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
drivers/mmc/host/msm_sdcc.c: In function 'msmsdcc_remove':
drivers/mmc/host/msm_sdcc.c:2010: error: 'struct msmsdcc_host' has no member named 'req_tout_timer'
make[3]: *** [drivers/mmc/host/msm_sdcc.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
My compliation steps are as follows
1. download kernel 2.6.35.10 is from microslav_mm's git webpage:
$ cd /home/username/android/
$ git clone git://github.com/mmxtrem/android_kernel_swift.git
$ cd cm-kernel after a little rename
2. pull out the /proc/config.gz from my GT540 phone (SDSL 2.1) for kernel configuration.
$ adb pull /proc/config.gz .
$ cat config.gz | gunzip > .config
$ make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig
3. configure the cross-compiler and trigger the compilation
$ export CCOMPILER=/home/username/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
How can I fix this compilation error? Any suggestions will be appreciated.
Shawn
Click to expand...
Click to collapse
Same here. Any ideas?
Can you guys put the errors in a code tag? not so messy
These errors comes with arm-eabi-linaro-4.6.2
Compiling with arm-eabi-4.4.3 also print this error but compilation of kernel continues to the end. But. Where can I find kernel image? I suppose it should be in arch/arm/boot/ but it isn't. Or where I have to looking for the Image file?
Code:
[email protected] ~/android/kernel/$ ls -l arch/arm/boot/
razem 16
drwxr-xr-x 2 smogf smogf 4096 04-01 23:27 bootp
drwxr-xr-x 2 smogf smogf 4096 04-01 23:27 compressed
-rw-r--r-- 1 smogf smogf 1274 04-01 23:27 install.sh
-rw-r--r-- 1 smogf smogf 3118 04-01 23:27 Makefile
[email protected] ~/android/kernel/mmxtrem-android_kernel_swift-6010f54
I've tried once again with make zImage and compilation fails with the same error as before. I have no idea. Any help will be useful.
smogf said:
These errors comes with arm-eabi-linaro-4.6.2
Compiling with arm-eabi-4.4.3 also print this error but compilation of kernel continues to the end. But. Where can I find kernel image? I suppose it should be in arch/arm/boot/ but it isn't. Or where I have to looking for the Image file?
Code:
[email protected] ~/android/kernel/$ ls -l arch/arm/boot/
razem 16
drwxr-xr-x 2 smogf smogf 4096 04-01 23:27 bootp
drwxr-xr-x 2 smogf smogf 4096 04-01 23:27 compressed
-rw-r--r-- 1 smogf smogf 1274 04-01 23:27 install.sh
-rw-r--r-- 1 smogf smogf 3118 04-01 23:27 Makefile
[email protected] ~/android/kernel/mmxtrem-android_kernel_swift-6010f54
I've tried once again with make zImage and compilation fails with the same error as before. I have no idea. Any help will be useful.
Click to expand...
Click to collapse
It seems bootp, Compressed, install.sh and Makefile is in the folder your looking at...
Otherwise I think the image name starts with initrd
Sent using the LG GT540 Polishblood PreRC CM9 4.0 using XDA Premium

OmniROM 6.0 build error for Pixel C

General information:
1. I can't found the kernel source from android.com and android source repos.
2. I was setup build environment for OmniROM, and I was tested build manta with success.
3. I was config the device repo in .repo/local_manifests/default.xml with https://android.googlesource.com/device/google/dragon/ and https://android.googlesource.com/device/google/dragon-kernel/
4. Changed all aosp_dragon to omni_dragon, add TWRP config to BoardConfig.mk, add TARGET_PREBUILT_KERNEL := device/google/dragon-kernel/Image.fit to device.mk
5. Download and extract vendor file from https://developers.google.com/android/nexus/drivers#dragon using MXC14G version.
6. Modified tools/roomservice.py for disabled check dragon online.(Make it compile)
My build step:
cmd:
cd /media/dev/source/OmniROM/
brunch dragon
Wait for complete, it report error:
Code:
Export includes file: external/tinycompress/Android.mk -- /media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/export_includes
make: *** No rule to make target '/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr', needed by '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o'
The full log in http://pastebin.com/drM6Fe2R
I tried build the external/tinycompress package only, it return error.
cmd:
mm external/tinycompress
Report error:
Code:
No private recovery resources for TARGET_DEVICE dragon
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/google/dragon
build/core/tasks/kernel.mk:109: * See http://forum.xda-developers.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
build/core/tasks/kernel.mk:271: warning: overriding recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
build/core/Makefile:72: warning: ignoring old recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
make: Nothing to be done for 'external/tinycompress'.
The full log in http://pastebin.com/DaHjPmHk
Can't you help me fix this build erro?
kendling said:
General information:
1. I can't found the kernel source from android.com and android source repos.
2. I was setup build environment for OmniROM, and I was tested build manta with success.
3. I was config the device repo in .repo/local_manifests/default.xml with https://android.googlesource.com/device/google/dragon/ and https://android.googlesource.com/device/google/dragon-kernel/
4. Changed all aosp_dragon to omni_dragon, add TWRP config to BoardConfig.mk, add TARGET_PREBUILT_KERNEL := device/google/dragon-kernel/Image.fit to device.mk
5. Download and extract vendor file from https://developers.google.com/android/nexus/drivers#dragon using MXC14G version.
6. Modified tools/roomservice.py for disabled check dragon online.(Make it compile)
My build step:
cmd:
cd /media/dev/source/OmniROM/
brunch dragon
Wait for complete, it report error:
Code:
Export includes file: external/tinycompress/Android.mk -- /media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/export_includes
make: *** No rule to make target '/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr', needed by '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o'
The full log in http://pastebin.com/drM6Fe2R
I tried build the external/tinycompress package only, it return error.
cmd:
mm external/tinycompress
Report error:
Code:
No private recovery resources for TARGET_DEVICE dragon
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/google/dragon
build/core/tasks/kernel.mk:109: * See http://forum.xda-developers.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
build/core/tasks/kernel.mk:271: warning: overriding recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
build/core/Makefile:72: warning: ignoring old recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/kernel'
make: Nothing to be done for 'external/tinycompress'.
The full log in http://pastebin.com/DaHjPmHk
Can't you help me fix this build erro?
Click to expand...
Click to collapse
I'd look at one of the other Nexus device trees to see how they set up inline kernel build and properly Omni-fied it. I haven't done it in such a long time I don't really remember the exact details.
anyone can help me ?
Code:
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" dtbs
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
make[2]: *** No rule to make target `dtbs'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" modules
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
CHK include/linux/version.h
I did found the problem!!
Because I did add the lines to aosp_dragon.mk below:
Code:
# Inherit from our custom product configuration
$(call inherit-product, vendor/omni/config/common_tablet.mk)
After that, I got new errors:
1. Failed to compile mkbootimg.c
Code:
target C: utility_mkbootimg <= system/core/mkbootimg/mkbootimg.c
system/core/mkbootimg/mkbootimg.c: In function 'print_id':
system/core/mkbootimg/mkbootimg.c:82:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (unsigned i = 0; i < id_len; i++) {
^
system/core/mkbootimg/mkbootimg.c:82:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
build/core/binary.mk:801: recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/obj/UTILITY_EXECUTABLES/utility_mkbootimg_intermediates/mkbootimg.o' failed
make: *** [/media/dev/source/OmniROM/out/target/product/dragon/obj/UTILITY_EXECUTABLES/utility_mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** 正在等待未完成的任务....
2. Failed to compile compress.c
Code:
target thumb C: audio.usb.default_32 <= hardware/libhardware/modules/usbaudio/audio_hal.c
In file included from bionic/libc/include/signal.h:32:0,
from bionic/libc/include/sys/select.h:33,
from bionic/libc/include/unistd.h:35,
from external/tinycompress/compress.c:61:
/media/dev/source/OmniROM/out/target/product/dragon/obj/KERNEL_OBJ/usr/include/asm/sigcontext.h:53:2: error: unknown type name '__uint128_t'
__uint128_t vregs[32];
^
build/core/binary.mk:801: recipe for target '/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o' failed
make: *** [/media/dev/source/OmniROM/out/target/product/dragon/obj_arm/SHARED_LIBRARIES/libtinycompress_intermediates/compress.o] Error 1
make: *** 正在等待未完成的任务....
make: *** wait: 没有子进程。 停止。
Anyone can help me?
About __uint128_t problem, do this:
https://github.com/omnirom/android_...mmit/80349b926351ca5992973e4a0357ca649a602faa
Blue59 said:
anyone can help me ?
Code:
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" dtbs
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
make[2]: *** No rule to make target `dtbs'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ibrahim/wave/kernel/samsung/aries'
make: [TARGET_KERNEL_BINARIES] Error 2 (ignored)
make -C kernel/samsung/aries O=/home/ibrahim/wave/out/target/product/wave/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" "/home/ibrahim/wave/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/"/arm-eabi-" modules
make[1]: Entering directory `/home/ibrahim/wave/kernel/samsung/aries'
CHK include/linux/version.h
Click to expand...
Click to collapse
@Blue59
make[2]: *** No rule to make target `dtbs'.
Click to expand...
Click to collapse
The problem is , your kernel's Makefile not have dtbs make rule.
See https://github.com/kendling/android_kernel_google_dragon/blob/m/arch/arm64/Makefile
dtbs: prepare scripts
$(Q)$(MAKE) $(build)=$(boot)/dts
dtbs_install:
$(Q)$(MAKE) $(dtbinst)=$(boot)/dts
Click to expand...
Click to collapse
Hi everybody,
I was fixed all problem and build success.
After build success, the boot.img can't bootup.
Tablet display "OS on your tablet is damaged. Need recovery."
Yes, I fixed it too.
Now my build was all success and success bootup.
I want to release the ROM later.
Thanks all!

Omnirom Compile Error | Device: Find7 | Android 7.1

I tried to compile omnirom from source, as descripted at the github page of omnirom (/omnirom/android), but right at the beginning there was the following error message:
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Here is the output (after the includes) of brunch find7:
PRODUCT_COPY_FILES device/oppo/msm8974-common/configs/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/oppo/msm8974-common/configs/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/oppo/msm8974-common/sensor/sap.conf:system/etc/sap.conf ignored.
PRODUCT_COPY_FILES vendor/qcom/binaries/msm8974/graphics/proprietary/vendor/lib/libadreno_utils.so:system/vendor/lib/libadreno_utils.so ignored.
No private recovery resources for TARGET_DEVICE find7
device/oppo/msm8974-common/camerawrapper/Android.mk:25: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/camera-wrapper.msm8974.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/camera-wrapper.msm8974.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/nfc.default.so'
build/core/Makefile:1098: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.cpio'
build/core/Makefile:1054: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.cpio'
build/core/Makefile:1104: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.img'
build/core/Makefile:1060: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.img'
device/oppo/msm8974-common/mkbootimg.mk:15: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/boot.img'
build/core/Makefile:583: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/boot.img'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 5/31136] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed
[ 0% 5/31136] Yacc: aidl <= system/tools/aidl/aidl_language_y.yy
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=/home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h -o /home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp system/tools/aidl/aidl_language_y.yy"
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[ 0% 5/31136] host Java: doclava (/ho...BRARIES/doclava_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
real 0m25.565s
user 0m33.620s
sys 0m3.068s
And here is the output of "breakfast find7":
breakfast find7
Looking for dependencies on: device/oppo/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=omni_find7
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N4F26O
OUT_DIR=/home/user/android/omni/out
May someone of you can help me
UserWhoNeedsHelpForFind7 said:
I tried to compile omnirom from source, as descripted at the github page of omnirom (/omnirom/android), but right at the beginning there was the following error message:
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Here is the output (after the includes) of brunch find7:
PRODUCT_COPY_FILES device/oppo/msm8974-common/configs/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/oppo/msm8974-common/configs/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/oppo/msm8974-common/sensor/sap.conf:system/etc/sap.conf ignored.
PRODUCT_COPY_FILES vendor/qcom/binaries/msm8974/graphics/proprietary/vendor/lib/libadreno_utils.so:system/vendor/lib/libadreno_utils.so ignored.
No private recovery resources for TARGET_DEVICE find7
device/oppo/msm8974-common/camerawrapper/Android.mk:25: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/camera-wrapper.msm8974.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/camera-wrapper.msm8974.so'
build/core/Makefile:34: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/system/lib/hw/nfc.default.so'
build/core/Makefile:1098: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.cpio'
build/core/Makefile:1054: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.cpio'
build/core/Makefile:1104: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.img'
build/core/Makefile:1060: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/ramdisk-recovery.img'
device/oppo/msm8974-common/mkbootimg.mk:15: warning: overriding commands for target `/home/user/android/omni/out/target/product/find7/boot.img'
build/core/Makefile:583: warning: ignoring old commands for target `/home/user/android/omni/out/target/product/find7/boot.img'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 5/31136] Lex: aidl <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: fatal internal error, exec of /usr/bin/m4 failed
[ 0% 5/31136] Yacc: aidl <= system/tools/aidl/aidl_language_y.yy
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=/home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h -o /home/user/android/omni/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp system/tools/aidl/aidl_language_y.yy"
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[ 0% 5/31136] host Java: doclava (/ho...BRARIES/doclava_intermediates/classes)
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:157: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
real 0m25.565s
user 0m33.620s
sys 0m3.068s
And here is the output of "breakfast find7":
breakfast find7
Looking for dependencies on: device/oppo/msm8974-common
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=omni_find7
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-62-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=N4F26O
OUT_DIR=/home/user/android/omni/out
May someone of you can help me
Click to expand...
Click to collapse
I ran into this too.. (Find7op build) I'm still working on fixing this, but my build time is limited..
Looks like your build env setup is missing some required deps (g++lib). Follow this guide here: https://docs.omnirom.org/Build_for_i9300
Make sure to also install the package deps for 64bit hosts.
golden-guy said:
Looks like your build env setup is missing some required deps (g++lib). Follow this guide here: https://docs.omnirom.org/Build_for_i9300
Make sure to also install the package deps for 64bit hosts.
Click to expand...
Click to collapse
I get this error while building LOS 14.1
Could you please help?
Code:
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -o/home/dev-k/lineage/out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
[ 0% 4/56326] host C++: libbase <= system/core/base/errors_unix.cpp
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
Thanks

No private recovery resources for TARGET_DEVICE tissot & ninja error

I'm just working on AOSP with the device trees that are out there, and when I run make -j8 I am getting this below, and not sure;
No private recovery resources for TARGET_DEVICE tissot
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/bin/fingerprintd'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/bin/fingerprintd'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/hw/fingerprint.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/hw/fingerprint.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcamera_client.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcamera_client.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcamera_metadata.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcamera_metadata.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcameraservice.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcameraservice.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libminui.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libminui.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib64/hw/consumerir.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib64/hw/consumerir.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib64/hw/fingerprint.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib64/hw/fingerprint.default.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/tissot/obj/STATIC_LIBRARIES/bootctrl.msm8953_intermediates/export_includes', needed by 'out/target/product/tissot/obj/EXECUTABLES/update_engine_sideload_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
DoR3M3 said:
I'm just working on AOSP with the device trees that are out there, and when I run make -j8 I am getting this below, and not sure;
No private recovery resources for TARGET_DEVICE tissot
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/bin/fingerprintd'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/bin/fingerprintd'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/hw/fingerprint.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/hw/fingerprint.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcamera_client.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcamera_client.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcamera_metadata.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcamera_metadata.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libcameraservice.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libcameraservice.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib/libminui.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib/libminui.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib64/hw/consumerir.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib64/hw/consumerir.default.so'
build/core/Makefile:34: warning: overriding commands for target `out/target/product/tissot/system/lib64/hw/fingerprint.default.so'
build/core/base_rules.mk:319: warning: ignoring old commands for target `out/target/product/tissot/system/lib64/hw/fingerprint.default.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'out/target/product/tissot/obj/STATIC_LIBRARIES/bootctrl.msm8953_intermediates/export_includes', needed by 'out/target/product/tissot/obj/EXECUTABLES/update_engine_sideload_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
Click to expand...
Click to collapse
I told already its error because of A/B partition so try this go to hardware/qcom/bootctrl and Edit android.mk & add msm8953 to filter
arunassain said:
I told already its error because of A/B partition so try this go to hardware/qcom/bootctrl and Edit android.mk & add msm8953 to filter
Click to expand...
Click to collapse
@arunassain
Now it's another error, maybe best to move on to Oreo as you mentioned...
ninja: Entering directory `.'
ninja: error: 'out/target/product/tissot/obj/KERNEL_OBJ/usr', needed by 'out/target/product/tissot/obj/STATIC_LIBRARIES/librecovery_updater_msm8953_intermediates/gpt-utils.o', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Thanks
DoR3M3 said:
@arunassain
Now it's another error, maybe best to move on to Oreo as you mentioned...
ninja: Entering directory `.'
ninja: error: 'out/target/product/tissot/obj/KERNEL_OBJ/usr', needed by 'out/target/product/tissot/obj/STATIC_LIBRARIES/librecovery_updater_msm8953_intermediates/gpt-utils.o', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
Thanks
Click to expand...
Click to collapse
Yes better move on to Oreo hope u won't get any error in Oreo wait for stable tree and start ur built over AOSP
arunassain said:
Yes better move on to Oreo hope u won't get any error in Oreo wait for stable tree and start ur built over AOSP
Click to expand...
Click to collapse
@arunassain I'm looking around trying to figure what Trees you mentioned to me...

Exec format error when building Google Kernel for Nexus 7 2012

Hi,
I am trying to build kernel for Nexus 7 (2012) but it is giving my exec format error. The commands and the errors are shown below:
Code:
LIFEBOOK-S761:~/Desktop$ git clone https://android.googlesource.com/kernel/tegra.git
Cloning into 'tegra'...
remote: Sending approximately 758.70 MiB ...
remote: Counting objects: 102, done
remote: Finding sources: 100% (8/8)
remote: Total 4341886 (delta 3657743), reused 4341880 (delta 3657743)
Receiving objects: 100% (4341886/4341886), 758.70 MiB | 10.87 MiB/s, done.
Resolving deltas: 100% (3657743/3657743), done.
LIFEBOOK-S761:~/Desktop$ cd tegra/
LIFEBOOK-S761:~/Desktop/tegra$ git checkout android-tegra3-grouper-3.1-kitkat-mr2
Checking out files: 100% (38132/38132), done.
Branch 'android-tegra3-grouper-3.1-kitkat-mr2' set up to track remote branch 'android-tegra3-grouper-3.1-kitkat-mr2' from 'origin'.
Switched to a new branch 'android-tegra3-grouper-3.1-kitkat-mr2'
LIFEBOOK-S761:~/Desktop/tegra$ export ARCH=arm
LIFEBOOK-S761:~/Desktop/tegra$ export SUBARCH=arm
LIFEBOOK-S761:~/Desktop/tegra$ export CROSS_COMPILE=/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-
LIFEBOOK-S761:~/Desktop/tegra$ make tegra3_android_defconfig
#
# configuration written to .config
#
LIFEBOOK-S761:~/Desktop/tegra$ make -j4
/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
/bin/sh: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Exec format error
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Can you please tell what I might be doing wrong or what could be the problem?

Categories

Resources