Building Error - Omni Q&A

Code:
build/core/Makefile:70: warning: overriding commands for target `/home/karishnu/android/omni/out/target/product/mako/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/karishnu/android/omni/out/target/product/mako/system/vendor/etc/audio_effects.conf'
No private recovery resources for TARGET_DEVICE mako
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
prebuilts/tools/gcc-sdk/gcc: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: No such file or directory
make: *** [/home/karishnu/android/omni/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 127
real 2m5.615s
user 0m54.109s
sys 0m20.064s
while building for mako I get this error. I resynced the repo many times. Have no clue why i get this error. Using ubuntu 13.10 for building. i have also tried
Code:
breakfast mako

That is no error but a warning
Sent from my N1 using Tapatalk

maxwen said:
That is no error but a warning
Sent from my N1 using Tapatalk
Click to expand...
Click to collapse
I mean the no such file or directory error. anyway the build process stops after giving that error.

Related

[Q/A] Build Errors and such...

Ok guys lets all post our build errors here for a more organized help and support. And so that we can help each other out
Sent from my Gnome Shelled Mako
Good idea , hope someone will know this one.
Export includes file: hardware/libhardware_legacy/audio/Android.mk -- /home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/audio_policy.default_intermediates/export_includes
Export includes file: hardware/qcom/display/libgenlock/Android.mk -- /home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libgenlock_intermediates/export_includes
Export includes file: device/lge/mako/camera/mm-camera-interface/Android.mk -- /home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libmmcamera_interface2_intermediates/export_includes
make: *** No rule to make target `/home/elio/android/omni/out/target/product/mako/obj/KERNEL_OBJ/usr', needed by `/home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/elio/android/omni/out/target/product/mako/obj/SHARED_LIBRARIES/libmmcamera_interface2_intermediates/import_includes
Click to expand...
Click to collapse
i have been trying to build for mako and i get stuck at this error.
i'm ubuntu 12.04 64bit.
Looks like a kernel error.
Add this lines to your local_manifest
Code:
<project name="omnirom/android_device_lge_mako" path="device/lge/mako" remote="github" revision="android-4.3" />
<project name="omnirom/android_kernel_lge_mako" path="kernel/lge/mako" remote="github" revision="android-4.3" />
then
Code:
repo sync -j4 && make clean && . build/envsetup.sh && time brunch mako
fix for most errors
Gnome said:
Ok guys lets all post our build errors here for a more organized help and support. And so that we can help each other out
Sent from my Gnome Shelled Mako
Click to expand...
Click to collapse
I am just starting out on building Roms but for almost any error even if you can't fix it just delete your folder/directory with the source and reinitialize repo in a new directory
Sent from my lg optimus f6 which boot loader can't be unlocked I'm never getting a new lg phone
help
alright ive been trying to port kitkat to my f6 for a week or so and i just hit this error and yes i have included msmb_camera.h in my PATH and put it in a few dirs named media also in my usr/bin and /bin and /sbin can anyone find how to fix it here it is
Code:
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:44:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:42:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_interface.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_channel.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_stream.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_interface.o] Error 1
UPADTE
alright i solved this by puting msmb_camera.h in hardware/qcom/msm8x74/kernel-headers/media
please hit that thanks button if i helped
codingninja62001 said:
alright ive been trying to port kitkat to my f6 for a week or so and i just hit this error and yes i have included msmb_camera.h in my PATH and put it in a few dirs named media also in my usr/bin and /bin and /sbin can anyone find how to fix it here it is
Code:
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/venc/src/video_encoder_device.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_channel.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_stream.c:44:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:42:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
In file included from hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/mm_camera_interface.c:40:0:
hardware/qcom/camera/QCamera2/stack/mm-camera-interface/../common/mm_camera_interface.h:34:31: fatal error: media/msmb_camera.h: No such file or directory
compilation terminated.
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_channel.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_stream.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera_interface.o] Error 1
UPADTE
alright i solved this by puting msmb_camera.h in hardware/qcom/msm8x74/kernel-headers/media
please hit that thanks button if i helped
Click to expand...
Click to collapse
Most likely Omni does not have any non-Nexus devices that compile the camera HAL from source, and as a result does not yet pull in kernel headers for the camera HAL.
https://github.com/omnirom/android_...mmit/6736097aeaed860eefdf90ebbb145cc310b564b4 can give you a rough idea of how to convert something set to use prebuilt kernel headers to one that uses headers from the kernel being built.
What's an f6???
Entropy512 said:
Most likely Omni does not have any non-Nexus devices that compile the camera HAL from source, and as a result does not yet pull in kernel headers for the camera HAL.
https://github.com/omnirom/android_...mmit/6736097aeaed860eefdf90ebbb145cc310b564b4 can give you a rough idea of how to convert something set to use prebuilt kernel headers to one that uses headers from the kernel being built.
What's an f6???
Click to expand...
Click to collapse
okey it isn't omni its cyanogenmod and f6 as LG optimus f6 a budget phone that ive working on a port for and can you explain in a little more detail and my KERNEL_OBJ/usr is empty so no source there
---------- Post added at 05:13 PM ---------- Previous post was at 04:35 PM ----------
Entropy512 said:
Most likely Omni does not have any non-Nexus devices that compile the camera HAL from source, and as a result does not yet pull in kernel headers for the camera HAL.
https://github.com/omnirom/android_...mmit/6736097aeaed860eefdf90ebbb145cc310b564b4 can give you a rough idea of how to convert something set to use prebuilt kernel headers to one that uses headers from the kernel being built.
What's an f6???
Click to expand...
Click to collapse
Hey can you help me with this new error i had fixed that one yesterday not much detail it spits out do you know how to declare GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY or fix this
Code:
frameworks/native/libs/gui/Surface.cpp: In member function 'virtual android::status_t android::Surface::lock(ANativeWindow_Buffer*, ARect*)':
frameworks/native/libs/gui/Surface.cpp:818:29: error: 'GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY' was not declared in this scope
make: *** [/home/ryan/android/system/out/target/product/f6mt/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o] Error 1
make: *** Waiting for unfinished jobs....
Please help me
build/core/base_rules.mk:316: warning: overriding commands for target `/home/govind/n/out/target/product/Z00L/system/xbin/wget' ./external/busybox/Android.mk:171: warning: ignoring old commands for target `/home/govind/n/out/target/product/Z00L/system/xbin/wget' vendor/cm/build/tasks/kernel.mk:285: warning: overriding commands for target `/home/govind/n/out/target/product/Z00L/obj/KERNEL_OBJ/.config' build/core/tasks/kernel.mk:209: warning: ignoring old commands for target `/home/govind/n/out/target/product/Z00L/obj/KERNEL_OBJ/.config' vendor/cm/build/tasks/kernel.mk:299: warning: overriding commands for target `TARGET_KERNEL_BINARIES' build/core/tasks/kernel.mk:220: warning: ignoring old commands for target `TARGET_KERNEL_BINARIES' vendor/cm/build/tasks/kernel.mk:348: warning: overriding commands for target `kerneltags' build/core/tasks/kernel.mk:252: warning: ignoring old commands for target `kerneltags' vendor/cm/build/tasks/kernel.mk:353: warning: overriding commands for target `kernelconfig' build/core/tasks/kernel.mk:255: warning: ignoring old commands for target `kernelconfig' vendor/cm/build/tasks/kernel.mk:372: warning: overriding commands for target `/home/govind/n/out/target/product/Z00L/kernel' build/core/tasks/kernel.mk:269: warning: ignoring old commands for target `/home/govind/n/out/target/product/Z00L/kernel' Starting build with ninja ninja: Entering directory `.' ninja: error: '/home/govind/n/out/target/product/Z00L/obj/SHARED_LIBRARIES/libqmiservices_intermediates/export_includes', needed by '/home/govind/n/out/target/product/Z00L/obj/EXECUTABLES/wcnss_service_intermediates/import_includes', missing and no known rule to make it make: *** [ninja_wrapper] Error 1 #### make failed to build some targets (25 seconds) #### Build step 'Execute shell' marked build as failure FTP: Current build result is [FAILURE], not going to run. Finished: FAILURE
https://hastebin.com/qixotiyuqo.sql plz help me in sorting out this error

[E] Syntax error after last Repo Sync

Hello,
after last repo sync of OmniRom I'm getting this error:
Code:
Target buildinfo: /home/lozohcum/CM11/out/target/product/jlo/system/build.prop
Target buildinfo from: device/sony/jlo/system.prop
/bin/bash: -c: line 0: unexpected EOF while looking for proper `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [/home/lozohcum/CM11/out/target/product/jlo/system/build.prop] Error 1
make: *** Deleting file `/home/lozohcum/CM11/out/target/product/jlo/system/build.prop'
[email protected]:~/CM11$
Does anyone know how to solve it? I can give more extended log from console if needed.
I'm working on KitKat Omni.
I faced the same problem (well,the error message was a bit different) and I solved it by installing Oracle's java 6 SDK. Then make clean and brunch
Στάλθηκε από το GT-I9100 μου χρησιμοποιώντας Tapatalk
lozohcum said:
Hello,
after last repo sync of OmniRom I'm getting this error:
Code:
Target buildinfo: /home/lozohcum/CM11/out/target/product/jlo/system/build.prop
Target buildinfo from: device/sony/jlo/system.prop
/bin/bash: -c: line 0: unexpected EOF while looking for proper `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [/home/lozohcum/CM11/out/target/product/jlo/system/build.prop] Error 1
make: *** Deleting file `/home/lozohcum/CM11/out/target/product/jlo/system/build.prop'
[email protected]:~/CM11$
Does anyone know how to solve it? I can give more extended log from console if needed.
I'm working on KitKat Omni.
Click to expand...
Click to collapse
Are you really repo syncing omnirom in a cm11 folder? Is it one you have emptied of cm11 first and initialized to omni sources? Did you do " . build/envsetup.sh" before trying to build?
Problem solved. I had to revert one commit from my device tree.
Thanks for replying

Compile error with AOSPA 4.4.2: fatal error: linux/msm_mdp.h: No such file..

Hello there,
I got stuck at building PA for HTC Desire, have tried it several times. I have enough disk space -- I have made a fresh repo sync -- I have also tried with "make -j1". Then switched GCC to armeabi-4.4.3 to 4.7 and to 4.8 -- it always ends up with this error:
Code:
hardware/qcom/display-legacy/liboverlay/overlayUtils.h:38:36: fatal error: linux/msm_mdp.h: No such file or directory
The missing header file is actually present in the kernel tree. I have build with this kernel and the display-legacy a handful of custom roms without any issue.
Kernel: https://github.com/spezi77/android_kernel_htc_qsd8k
Display-legacy: https://github.com/Evervolv/android_hardware_qcom_display-legacy
Any tip is welcome! :good:
Thanks!
More lines:
Code:
target thumb C: libloc_api-rpc <= hardware/qcom/gps-legacy/loc_api/libloc_api-rpc/gen-3200/loc_api_rpc_glue.c
target thumb C: libloc_api-rpc <= hardware/qcom/gps-legacy/loc_api/libloc_api-rpc/src/loc_apicb_appinit.c
target thumb C: libloc_api-rpc <= hardware/qcom/gps-legacy/loc_api/libloc_api-rpc/src/loc_api_sync_call.c
Import includes file: /home/spezi77/android/paranoid/out/target/product/bravo/obj/SHARED_LIBRARIES/gralloc.qsd8k_intermediates/import_includes
target arm C++: libGLESv1_CM <= frameworks/native/opengl/libs/GLES_CM/gl.cpp
Import includes file: /home/spezi77/android/paranoid/out/target/product/bravo/obj/SHARED_LIBRARIES/hwcomposer.qsd8k_intermediates/import_includes
target thumb C++: liboverlay <= hardware/qcom/display-legacy/liboverlay/overlay.cpp
In file included from hardware/qcom/display-legacy/liboverlay/overlay.cpp:30:0:
hardware/qcom/display-legacy/liboverlay/overlayUtils.h:38:36: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [/home/spezi77/android/paranoid/out/target/product/bravo/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlay.o] Error 1
make: *** Waiting for unfinished jobs....
Total time elapsed: 17 minutes (1078.277761994 seconds)
[email protected]:~/android/paranoid$
spezi77 said:
Hello there,
I got stuck at building PA for HTC Desire, have tried it several times. I have enough disk space -- I have made a fresh repo sync -- I have also tried with "make -j1". Then switched GCC to armeabi-4.4.3 to 4.7 and to 4.8 -- it always ends up with this error:
Code:
hardware/qcom/display-legacy/liboverlay/overlayUtils.h:38:36: fatal error: linux/msm_mdp.h: No such file or directory
The missing header file is actually present in the kernel tree. I have build with this kernel and the display-legacy a handful of custom roms without any issue.
Kernel: https://github.com/spezi77/android_kernel_htc_qsd8k
Display-legacy: https://github.com/Evervolv/android_hardware_qcom_display-legacy
Any tip is welcome! :good:
Thanks!
More lines:
Code:
target thumb C: libloc_api-rpc <= hardware/qcom/gps-legacy/loc_api/libloc_api-rpc/gen-3200/loc_api_rpc_glue.c
target thumb C: libloc_api-rpc <= hardware/qcom/gps-legacy/loc_api/libloc_api-rpc/src/loc_apicb_appinit.c
target thumb C: libloc_api-rpc <= hardware/qcom/gps-legacy/loc_api/libloc_api-rpc/src/loc_api_sync_call.c
Import includes file: /home/spezi77/android/paranoid/out/target/product/bravo/obj/SHARED_LIBRARIES/gralloc.qsd8k_intermediates/import_includes
target arm C++: libGLESv1_CM <= frameworks/native/opengl/libs/GLES_CM/gl.cpp
Import includes file: /home/spezi77/android/paranoid/out/target/product/bravo/obj/SHARED_LIBRARIES/hwcomposer.qsd8k_intermediates/import_includes
target thumb C++: liboverlay <= hardware/qcom/display-legacy/liboverlay/overlay.cpp
In file included from hardware/qcom/display-legacy/liboverlay/overlay.cpp:30:0:
hardware/qcom/display-legacy/liboverlay/overlayUtils.h:38:36: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
make: *** [/home/spezi77/android/paranoid/out/target/product/bravo/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlay.o] Error 1
make: *** Waiting for unfinished jobs....
Total time elapsed: 17 minutes (1078.277761994 seconds)
[email protected]:~/android/paranoid$
Click to expand...
Click to collapse
Afternoon Matey.
You may get a better response here
http://forum.xda-developers.com/showthread.php?t=1863547
ⓐⓝⓓⓡⓞⓒⓛⓓⓔ ⓘⓢ ⓝⓞⓣ ⓐ ⓢⓘⓝ

[Q] Help building Omni

Code:
hardware/qcom/media-caf/mm-video/vidc/vdec/inc/frameparser.h: In constructor 'frame_parse::frame_parse()':
hardware/qcom/media-caf/mm-video/vidc/vdec/inc/frameparser.h:94:17: warning: 'frame_parse::bytes_tobeparsed' will be initialized after [-Wreorder]
hardware/qcom/media-caf/mm-video/vidc/vdec/inc/frameparser.h:67:14: warning: 'H264_Utils* frame_parse::mutils' [-Wreorder]
hardware/qcom/media-caf/mm-video/vidc/vdec/src/frameparser.cpp:76:1: warning: when initialized here [-Wreorder]
hardware/qcom/media-caf/mm-video/vidc/vdec/src/frameparser.cpp: In member function 'int frame_parse::parse_sc_frame(OMX_BUFFERHEADERTYPE*, OMX_BUFFERHEADERTYPE*, OMX_U32*)':
hardware/qcom/media-caf/mm-video/vidc/vdec/src/frameparser.cpp:215:16: warning: enumeration value 'A5' not handled in switch [-Wswitch]
hardware/qcom/media-caf/mm-video/vidc/vdec/src/frameparser.cpp:365:14: warning: enumeration value 'A4' not handled in switch [-Wswitch]
hardware/qcom/media-caf/mm-video/vidc/vdec/src/frameparser.cpp:365:14: warning: enumeration value 'A5' not handled in switch [-Wswitch]
hardware/qcom/media-caf/mm-video/vidc/vdec/test/omx_vdec_test.cpp:56:0: warning: "LOG_TAG" redefined [enabled by default]
In file included from system/core/include/cutils/log.h:1:0,
from system/core/include/utils/Vector.h:24,
from frameworks/native/include/binder/IBinder.h:23,
from frameworks/native/include/binder/Binder.h:20,
from frameworks/native/include/binder/IInterface.h:21,
from frameworks/native/include/binder/IMemory.h:26,
from frameworks/native/include/binder/MemoryHeapBase.h:23,
from hardware/qcom/media-caf/mm-video/vidc/vdec/test/omx_vdec_test.cpp:51:
system/core/include/log/log.h:68:0: note: this is the location of the previous definition
hardware/qcom/media-caf/mm-video/vidc/vdec/test/omx_vdec_test.cpp:84:27: fatal error: linux/msm_mdp.h: No such file or directory
compilation terminated.
target thumb C++: libOmxVdec <= hardware/qcom/media-caf/mm-video/vidc/vdec/src/mp4_utils.cpp
make: *** [/home/zeroblade1984/Android/omni/out/target/product/m7ul/obj/EXECUTABLES/mm-vdec-omx-test_intermediates/test/omx_vdec_test.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from hardware/qcom/media-caf/mm-video/vidc/vdec/src/h264_utils.cpp:49:0:
hardware/qcom/media-caf/mm-video/vidc/common/inc/extra_data_handler.h:37:31: fatal error: linux/msm_vidc_dec.h: No such file or directory
compilation terminated.
make: *** [/home/zeroblade1984/Android/omni/out/target/product/m7ul/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/h264_utils.o] Error 1
In file included from hardware/qcom/media-caf/mm-video/vidc/vdec/src/mp4_utils.cpp:29:0:
hardware/qcom/media-caf/mm-video/vidc/vdec/inc/omx_vdec.h:53:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
make: *** [/home/zeroblade1984/Android/omni/out/target/product/m7ul/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/mp4_utils.o] Error 1
real 6m45.287s
user 13m46.486s
sys 4m52.261s
i have been wretched all day building Omni for M7 and i am plagued by the errors above..been googling around to see if there's a way but to no futile response..hope some can help with this..just repo sync'd everything before i built
I'm really confused, that looks like a mismatch between the kernel and media-caf (indicating the kernel needs updating), but...
m7ul is successfully building? http://dl.omnirom.org/m7ul/
Did you perhaps accidentally sync a kernel, device, or media-caf tree from CM????
Entropy512 said:
I'm really confused, that looks like a mismatch between the kernel and media-caf (indicating the kernel needs updating), but...
m7ul is successfully building? http://dl.omnirom.org/m7ul/
Did you perhaps accidentally sync a kernel, device, or media-caf tree from CM????
Click to expand...
Click to collapse
i had it building..yes seems you are right..i accidentlly synced CM kernel..lolz..i have one question though..how to i remove the advanced settings package??as i have cleaned the kernel source and updated a few stuff..also updated some blobs and from my testing point everything is working..except that off course the Advanced settings is left out gray since i removed most of the stuff and left the kernel stockish..
kairi_zeroblade said:
i accidentlly synced CM kernel..lolz.
Click to expand...
Click to collapse
How dafuq can you "accidentally" sync a wrong kernel? smh
chasmodo said:
How dafuq can you "accidentally" sync a wrong kernel? smh
Click to expand...
Click to collapse
i alread had the manifests setup before and YES i did some experimenting on my own..good thing Entropy reminded me of that mistake.. :silly:

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!

Categories

Resources