Compiling Recovery E5-SM500 BUG TWRP - Galaxy E5, E7 Android Development

Hello Guys.
I am new at developing for android.
Have some problems compiling the TWRP for this device. I know that the recovery is already compiled, but I am doing this for learning purpose.
Device Tree: https://github.com/E5-CyanogenMod/android_device_samsung_e5ltexx
Kenel: https://github.com/E5-CyanogenMod/android_kernel_samsung_e5ltexx
The problem is when i use TWRP. I am using branch "android-5.1"
This is the error message:
Code:
bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:151:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minuitwrp/graphics_overlay.c:163:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'allocate_overlay':
bootable/recovery/minuitwrp/graphics_overlay.c:205:5: warning: implicit declaration of function 'isDisplaySplit' [-Wimplicit-function-declaration]
if (!isDisplaySplit()) {
^
bootable/recovery/minuitwrp/graphics_overlay.c:231:9: warning: implicit declaration of function 'getFbXres' [-Wimplicit-function-declaration]
float xres = getFbXres();
^
bootable/recovery/minuitwrp/graphics_overlay.c:232:9: warning: implicit declaration of function 'getLeftSplit' [-Wimplicit-function-declaration]
int lSplit = getLeftSplit();
^
target Executable: erase_image (/home/eabz/cm12/out/target/product/e5lte/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/LINKED/erase_image)
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/graphics_overlay.o] Error 1
If someone knows how to fix?

eabz2000 said:
Hello Guys.
I am new at developing for android.
Have some problems compiling the TWRP for this device. I know that the recovery is already compiled, but I am doing this for learning purpose.
Device Tree: https://github.com/E5-CyanogenMod/android_device_samsung_e5ltexx
Kenel: https://github.com/E5-CyanogenMod/android_kernel_samsung_e5ltexx
The problem is when i use TWRP. I am using branch "android-5.1"
This is the error message:
Code:
bootable/recovery/minui/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minui/graphics_overlay.c:151:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'alloc_ion_mem':
bootable/recovery/minuitwrp/graphics_overlay.c:163:17: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask =
^
bootable/recovery/minuitwrp/graphics_overlay.c: In function 'allocate_overlay':
bootable/recovery/minuitwrp/graphics_overlay.c:205:5: warning: implicit declaration of function 'isDisplaySplit' [-Wimplicit-function-declaration]
if (!isDisplaySplit()) {
^
bootable/recovery/minuitwrp/graphics_overlay.c:231:9: warning: implicit declaration of function 'getFbXres' [-Wimplicit-function-declaration]
float xres = getFbXres();
^
bootable/recovery/minuitwrp/graphics_overlay.c:232:9: warning: implicit declaration of function 'getLeftSplit' [-Wimplicit-function-declaration]
int lSplit = getLeftSplit();
^
target Executable: erase_image (/home/eabz/cm12/out/target/product/e5lte/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/LINKED/erase_image)
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/STATIC_LIBRARIES/libminui_intermediates/graphics_overlay.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/eabz/cm12/out/target/product/e5lte/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/graphics_overlay.o] Error 1
If someone knows how to fix?
Click to expand...
Click to collapse
Enrique change TW_NEW_ION_HEAP to Flag to false ??

Related

compile cm11 error

Checking build tools versions...
/home/blackcat/cm11/out/target/product/ancora/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
error help me
Import includes file: /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/import_includes
make: *** No rule to make target `vendor/cm/proprietary/Term.apk', needed by `/home/blackcat/cm11/out/target/product/ancora/system/app/Term.apk'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/vim/src/Android.mk -- /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/export_includes
blackcat67 said:
Checking build tools versions...
/home/blackcat/cm11/out/target/product/ancora/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/blackcat/cm11/out/target/product/ancora/obj/include/qcom/display/copybit_priv.h'
error help me
Import includes file: /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/import_includes
make: *** No rule to make target `vendor/cm/proprietary/Term.apk', needed by `/home/blackcat/cm11/out/target/product/ancora/system/app/Term.apk'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/vim/src/Android.mk -- /home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/vim_intermediates/export_includes
Click to expand...
Click to collapse
Code:
cd vendor/cm
./get-prebuilts
then start your build again
Vendor:
git clone git://github.com/arco/android_vendor_samsung_ancora.git -b cm-10.2 ancora
Device :
git clone git://github.com/hadidjapri/android_device_samsung_ancora.git -b cm-11 ancora
Display Legacy
git clone git://github.com/alviteri/android_hardware_qcom_display-legacy -b
display-legacy
Media Legacy
git clone git://github.com/alviteri/android_hardware_qcom_media-legacy -b
media-legacy
Is it true source _?
lunch
- cm_ancora-userdebug
make -j4
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
blackcat67 said:
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Same error did you fix it? and how?
Thank you
Which repos should i use for arco cm11 ?
Can some one help?
I get error
device/samsung/ancora/camerahal/cameraHAL.cpp:38:31: fatal error: ui/legacy/Overlay.h: No such file or directory
compilation terminated.
make: *** [/home/acc/cm11/out/target/product/ancora/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Madridii said:
Same error did you fix it? and how?
Thank you
Click to expand...
Click to collapse
Any fixes yet?
blackcat67 said:
target thumb C: tc <= external/iproute2/tc/q_prio.c
external/iproute2/tc/q_prio.c: In function 'prio_parse_opt':
external/iproute2/tc/q_prio.c:35:9: warning: excess elements in struct initializer [enabled by default]
external/iproute2/tc/q_prio.c:35:9: warning: (near initialization for 'opt') [enabled by default]
external/iproute2/tc/q_prio.c:60:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:64:8: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
external/iproute2/tc/q_prio.c:85:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/iproute2/tc/q_prio.c:31:46: warning: unused parameter 'qu' [-Wunused-parameter]
external/iproute2/tc/q_prio.c: In function 'prio_print_opt':
external/iproute2/tc/q_prio.c:133:30: error: 'struct tc_prio_qopt' has no member named 'enable_flow'
make: *** [/home/blackcat/cm11/out/target/product/ancora/obj/EXECUTABLES/tc_intermediates/q_prio.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Same error also how did you fix
Edit
I found way to fix by git revert to a earlier commit type this in terminal
Code:
cd ~/your/build/dir/external/iproute2
git revert 4c48963517f1569ce909ad2f8a4b7a675de5a1f6

[SOLVED] Build Error - QCamera2

Can anyone help me resolve this? Thanks in advance!
Code:
device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:1612:23: [COLOR=Red]error[/COLOR]: 'value' is used uninitialized in this function [-Werror=uninitialized]
control.value = *value;
^
device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/mm_camera.c:680:13: [COLOR=MediumTurquoise][COLOR=DeepSkyBlue]note:[/COLOR] [/COLOR]'value' was declared here
int32_t value;
^
arget thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/Int32Mat.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/MapSequence.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_TensorEm/Mat.c
cc1: all warnings being treated as errors
make: *** [out/target/product/flo/obj/SHARED_LIBRARIES/libmmcamera_interface_intermediates/src/mm_camera.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
**Fixed it

Need help compiling kernel

So I am brand new at all of this and figured I would toy around with this older phone to see what I can learn. I am using directions from this link:
"htcevohacks.com/htc-evo-hacks/how-to-build-your-own-htc-evo-4g-android-kernel/"
I'm trying to make a custom kernel so I can put ubuntu on my phone following the directions from these two links:
"htcevohacks.com/htc-evo-hacks/ubuntu-evo-4g/"
"nexusonehacks.net/nexus-one-hacks/how-to-install-ubuntu-on-your-android/"
So while trying to compile on step 13 off the first link this is what I get when I use the command "make":
:/kernel# make
CHK include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-arm
CALL scripts/checksyscalls.sh
<stdin>:1097: warning: #warning syscall fadvise64 not implemented
<stdin>:1265: warning: #warning syscall migrate_pages not implemented
<stdin>:1321: warning: #warning syscall pselect6 not implemented
<stdin>:1325: warning: #warning syscall ppoll not implemented
<stdin>:1365: warning: #warning syscall epoll_pwait not implemented
CHK include/linux/compile.h
CC arch/arm/mach-msm/devices.o
arch/arm/mach-msm/devices.c:391: error: variable 'android_usb_pdata' has initializer but incomplete type
arch/arm/mach-msm/devices.c:392: error: unknown field 'vendor_id' specified in initializer
arch/arm/mach-msm/devices.c:392: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:392: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:393: error: unknown field 'product_id' specified in initializer
arch/arm/mach-msm/devices.c:393: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:393: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:394: error: unknown field 'adb_product_id' specified in initializer
arch/arm/mach-msm/devices.c:394: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:394: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:395: error: unknown field 'version' specified in initializer
arch/arm/mach-msm/devices.c:395: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:395: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:396: error: unknown field 'product_name' specified in initializer
arch/arm/mach-msm/devices.c:396: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:396: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:397: error: unknown field 'manufacturer_name' specified in initializer
arch/arm/mach-msm/devices.c:397: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:397: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c:398: error: unknown field 'nluns' specified in initializer
arch/arm/mach-msm/devices.c:398: warning: excess elements in struct initializer
arch/arm/mach-msm/devices.c:398: warning: (near initialization for 'android_usb_pdata')
arch/arm/mach-msm/devices.c: In function 'msm_set_ums_device_id':
arch/arm/mach-msm/devices.c:452: error: 'usb_mass_storage_device' undeclared (first use in this function)
arch/arm/mach-msm/devices.c:452: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/devices.c:452: error: for each function it appears in.)
arch/arm/mach-msm/devices.c: In function 'msm_enable_car_kit_detect':
arch/arm/mach-msm/devices.c:463: error: 'struct msm_hsusb_platform_data' has no member named 'enable_car_kit_detect'
arch/arm/mach-msm/devices.c: In function 'msm_init_ums_lun':
arch/arm/mach-msm/devices.c:469: error: 'mass_storage_pdata' undeclared (first use in this function)
arch/arm/mach-msm/devices.c: In function 'msm_add_usb_id_pin_gpio':
arch/arm/mach-msm/devices.c:486: error: 'struct msm_hsusb_platform_data' has no member named 'usb_id_pin_gpio'
arch/arm/mach-msm/devices.c: At top level:
arch/arm/mach-msm/devices.c:490: warning: 'struct msm_hsusb_product' declared inside parameter list
arch/arm/mach-msm/devices.c:490: warning: its scope is only this definition or declaration, which is probably not what you want
arch/arm/mach-msm/devices.c: In function 'msm_hsusb_set_product':
arch/arm/mach-msm/devices.c:491: error: 'struct msm_hsusb_platform_data' has no member named 'products'
arch/arm/mach-msm/devices.c:492: error: 'struct msm_hsusb_platform_data' has no member named 'num_products'
arch/arm/mach-msm/devices.c: In function 'board_serialno_setup':
arch/arm/mach-msm/devices.c:1159: error: invalid use of undefined type 'struct android_usb_platform_data'
make[1]: *** [arch/arm/mach-msm/devices.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Click to expand...
Click to collapse
Like I said, I'm new to this so I don't really know what any of that means. The lines should be all correct but I did have to separate them manually after copying it. I'm using Lubuntu and my phone is running CyanogenMod 7
yep
So, I also am having this problem... does anyone have an answer? My issue is exactly the same, and I tried it a second time with the same results, even though I tried different options prior to it starting to compile. Or does anyone have a ready made kernel for this that they would be willing to post?
thanks

[CM 13]Error when compile rom

Hello,
When compile the rom occurs such error(sorry for my bad launguage, i'm from Poland)
Code:
deprecated-register]
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
^~~~~~~~~
/root/CM13/out/host/linux-x86/obj/EXECUTABLES/rsg-generator_support_intermediates/spec.cpp:1462:3: warning: 'register' storage class specifier is deprecated [-Wdeprecated-register]
register char *source =
^~~~~~~~~
19 warnings generated.
Import includes file: /root/CM13/out/target/product/w55n/obj/SHARED_LIBRARIES/libblasV8_intermediates/import_includes
target thumb C++: libF77blasV8 <= external/eigen/blas/single.cpp
target thumb C++: libF77blasV8 <= external/eigen/blas/double.cpp
make: *** [/root/CM13/out/target/product/w55n/obj/STATIC_LIBRARIES/libF77blasV8_intermediates/single.o] Killed
make: *** Waiting for unfinished jobs....
make: *** [/root/CM13/out/target/product/w55n/obj/STATIC_LIBRARIES/libF77blasV8_intermediates/double.o] Killed
make: Leaving directory `/root/CM13'
I make device tree for w55n from device tree w5

Trying to update f2fs in d852 kernel

I'm trying to update the f2fs driver for the d852 and cannot get it to compile. I'm new to compiling ROMs so I'm hoping it's something simple. Without these changes I can get lineage to compile with no problems. I have been doing it for a week or so with no issues.
I'm taking https://kernel.googlesource.com/pub/scm/linux/kernel/git/jaegeuk/f2fs-stable/fs/f2fs/* and putting it in kernel/lge/g3/fs/f2fs. I am using the 3.4.y branch from jaedeuk's git. According to my phone currently running lineage, it's using the 3.4.0 kernel.
I get these errors when trying to build lineage for my d852:
Code:
CC fs/ext4/ialloc.o
CC security/keys/process_keys.o
CC fs/ext4/inode.o
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:51:50: error: 'S_SHIFT' undeclared here (not in a function)
static unsigned char f2fs_type_by_mode[S_IFMT >> S_SHIFT] = {
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:52:2: error: array index in initializer not of integer type
[S_IFREG >> S_SHIFT] = F2FS_FT_REG_FILE,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:52:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:53:2: error: array index in initializer not of integer type
[S_IFDIR >> S_SHIFT] = F2FS_FT_DIR,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:53:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:54:2: error: array index in initializer not of integer type
[S_IFCHR >> S_SHIFT] = F2FS_FT_CHRDEV,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:54:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:55:2: error: array index in initializer not of integer type
[S_IFBLK >> S_SHIFT] = F2FS_FT_BLKDEV,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:55:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:56:2: error: array index in initializer not of integer type
[S_IFIFO >> S_SHIFT] = F2FS_FT_FIFO,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:56:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:57:2: error: array index in initializer not of integer type
[S_IFSOCK >> S_SHIFT] = F2FS_FT_SOCK,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:57:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:58:2: error: array index in initializer not of integer type
[S_IFLNK >> S_SHIFT] = F2FS_FT_SYMLINK,
^
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:58:2: error: (near initialization for 'f2fs_type_by_mode')
../../../../../../kernel/lge/g3/fs/f2fs/dir.c:51:22: warning: 'f2fs_type_by_mode' defined but not used [-Wunused-variable]
error, forbidden warning: dir.c:51
/root/android/system/kernel/lge/g3/scripts/Makefile.build:307: recipe for target 'fs/f2fs/dir.o' failed
make[3]: *** [fs/f2fs/dir.o] Error 1
/root/android/system/kernel/lge/g3/scripts/Makefile.build:443: recipe for target 'fs/f2fs' failed
make[2]: *** [fs/f2fs] Error 2
make[2]: *** Waiting for unfinished jobs....
Figured it out. Forgot to copy the new include/linux/f2fs_fs.h which defines S_SHIFT.

Categories

Resources