Need help for fixing these errors occurred during compiling cm 14 - Upgrading, Modifying and Unlocking

I am compiling cm 14 for core prime ve 3g (sm-g361h).
i am getting these error after executing mka bacon command (i have skipped all log above errors). I am building rom from source first time so i ain't got any clue what this error says (maybe a little bit but that ain't helping).
Code:
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:276: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:314: error: method processSolicited in class RIL cannot be applied to given types;
return super.processSolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:366: error: method does not override or implement a method from a supertype
@Override
^
device/samsung/coreprimeve3g/ril/SamsungSPRDRIL.java:422: error: method processUnsolicited in class RIL cannot be applied to given types;
super.processUnsolicited(p);
^
required: Parcel,int
found: Parcel
reason: actual and formal argument lists differ in length
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
[ 3% 1018/28725] host C++: libLLVMCor...2 <= external/llvm/lib/IR/Function.cpp
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/hamza/cm14'
#### make failed to build some targets (27:37 (mm:ss)) ####

bump

Related

[Q] Compiling RNDIS Support into Kernel

I'm trying to compile the source from HTC :
Droid Incredible by hTC – Froyo MR3 – 2.6.32 kernel source code 82.1 MB
http://dl4.htc.com/RomCode/Source_and_Binaries/incrediblec-MR3-2.6.32-g9a2fc16.tar.gz
Using heyitslou's kernel .config the kernel compiles, the only thing I'm changing is:
[*] Android gadget RNDIS ethernet function
after that the kernel no longer compiles. I get the following error.
Code:
:~/android/sources/dinc$ 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
CHK include/linux/compile.h
CC drivers/usb/gadget/f_rndis.o
drivers/usb/gadget/f_rndis.c: In function 'rndis_bind':
drivers/usb/gadget/f_rndis.c:703: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:704: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c: In function 'rndis_function_bind_config':
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:884: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:886: error: dereferencing pointer to incomplete type
make[2]: *** [drivers/usb/gadget/f_rndis.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
make: *** [drivers] Error 2
Can someone help me track down how to fix/get around this... all I'm looking for is a Froyo kernel with RNDIS (wired-tether) support. Unfortunately everyone likes wireless tether only, which doesn't work reliably enough for me over extended periods of time.
Hopefully someone can help me.
Thanks,
B
https://github.com/getitnowmarketing/Incrediblec-mr3/commit/d80716254f7c444955c3948a1fad97b052400883
This is from my personal non-released kernel. Its not a clone of ziggy's like most every other kernel is.
billygoat32 said:
I'm trying to compile the source from HTC :
Droid Incredible by hTC – Froyo MR3 – 2.6.32 kernel source code 82.1 MB
http://dl4.htc.com/RomCode/Source_and_Binaries/incrediblec-MR3-2.6.32-g9a2fc16.tar.gz
Using heyitslou's kernel .config the kernel compiles, the only thing I'm changing is:
[*] Android gadget RNDIS ethernet function
after that the kernel no longer compiles. I get the following error.
Code:
:~/android/sources/dinc$ 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
CHK include/linux/compile.h
CC drivers/usb/gadget/f_rndis.o
drivers/usb/gadget/f_rndis.c: In function 'rndis_bind':
drivers/usb/gadget/f_rndis.c:703: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:704: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c: In function 'rndis_function_bind_config':
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:880: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:881: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:882: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:884: error: dereferencing pointer to incomplete type
drivers/usb/gadget/f_rndis.c:886: error: dereferencing pointer to incomplete type
make[2]: *** [drivers/usb/gadget/f_rndis.o] Error 1
make[1]: *** [drivers/usb/gadget] Error 2
make: *** [drivers] Error 2
Can someone help me track down how to fix/get around this... all I'm looking for is a Froyo kernel with RNDIS (wired-tether) support. Unfortunately everyone likes wireless tether only, which doesn't work reliably enough for me over extended periods of time.
Hopefully someone can help me.
Thanks,
B
Click to expand...
Click to collapse
Can you post the patch your trying to apply
Hey thanks for the quick reply, I appreciate your interest.
All I'm doing is downloading the source available from HTC, pulling the config.gz from my phone (which is running your kernel) moving it into the kernel source directory, `make menuconfig`, load the .config, * the android RNDIS option and then trying to make kernel from there.
Let me know if there is anything else I can do to assist.
Thanks again,
B
On a side note, I've tried this will all the available froyo sources from HTC, the Verizon ones, stock, etc
drellisdee said:
https://github.com/getitnowmarketing/Incrediblec-mr3/commit/d80716254f7c444955c3948a1fad97b052400883
This is from my personal non-released kernel. Its not a clone of ziggy's like most every other kernel is.
Click to expand...
Click to collapse
It seems that you need to apply the patches outlined in drellisdee's post.
shoot, I missed that. Thanks for pointing that out <face-palm>
HeyItsLou,
can you include the rndis support + patch from the post above into your kernel?
https://github.com/getitnowmarketin...0716254f7c444955c3948a1fad97b052400883#diff-0
RNDIS Support
For anyone that is interested I recompiled HeyItsLous kernel with rndis support. I didn't change anything other than adding rndis support for usb wired tether. Let me know if you want it and I'll post it somewhere.

[Q] (Help) CM11 compiling errors

Hello! I'm new building a ROM and I have a lot of issues with the compilation of CM11, a lot of these has been fixed with a few workarounds in the source code, but I'm getting an error with the headers, exactly with the file Flattenable.h
The problem is that the "guard" of the headers includes only once the header Flattenable.h for one of the needed headers but not for the rest of headers that require the same header Flattenable.h and I get this error:
target thumb C++: libandroid <= frameworks/base/native/android/native_window.cpp
In file included from frameworks/native/include/ui/Rect.h:22:0,
from frameworks/native/include/ui/Region.h:25,
from system/core/include/utils/Flattenable.h:26,
from frameworks/native/include/ui/Fence.h:26,
from frameworks/native/include/gui/IGraphicBufferProducer.h:28,
from frameworks/native/include/gui/Surface.h:20,
from frameworks/base/native/android/native_window.cpp:21:
frameworks/native/include/ui/Point.h:29:41: error: expected template-name before '<' token
frameworks/native/include/ui/Point.h:29:41: error: expected '{' before '<' token
frameworks/native/include/ui/Point.h:29:41: error: expected unqualified-id before '<' token
frameworks/base/native/android/native_window.cpp:84:1: error: expected '}' at end of input
make: *** [/home/richy/Escritorio/Development/CM-11/out/target/product/hwmt1_u06/obj/SHARED_LIBRARIES/libandroid_intermediates/native_window.o] Error 1
the error is because the "template-name" has been defined in Flattenable.h but the "guard" disable the #include of the file Point.h because this header has been included previusly on the file Fence.h
Someone knows a "fix" for this problem?
I'm compiling in Ubuntu 14.04
Excuse my poor english :silly:
I found the reason of this
Thanks but i find that I have added the next line to flattenable.h and I don't remember when :/ but... it was there haha
#include <ui/Region.h>
and I search the file on another site and this include wasn't here hahaha thanks =):silly:

Flipflap build issue

I have been building Lineage for the HTC One A9 (hiaeuhl) since cyanogenmod shut down. About a week ago I started getting the below error:
Code:
/system/out/target/common/obj/APPS/FlipFlap_intermediates/src/R.stamp || exit 32; done ) && (touch /media/steve/hard_disk/android/system/out/target/common/obj/APPS/FlipFlap_intermediates/src/R.stamp )"
ERROR: resource directory 'packages/apps/FlipFlap/../../../packages/resources/devicesettings/res' does not exist
[ 86% 43518/50094] Building with Jack: /media/steve/hard_disk/android/system/out/target/common/obj/APPS/Dialer_intermediates/with-local/classes.dex
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/media/steve/hard_disk/android/system'
#### make failed to build some targets (02:14:47 (hh:mm:ss)) ####
Any ideas how I can integrate the FlipFlap package or otherwise alleviate? According to wikipedia FlipFlap is a flipcover application developed by the LineageOS team.

trouble building kernel

Closed per OP request
So i need to build a modified kernel to patch the usb host driver to hack a nintendo switch.
the patch is here
ive tried 2 kernel sources, here and here
and both are giving the same errors
Code:
CC arch/arm64/kernel/setup.o
arch/arm64/kernel/setup.c: In function 'c_show':
arch/arm64/kernel/setup.c:643:38: error: 'system_rev' undeclared (first use in this function)
seq_printf(m, "Revision\t: %04x\n", system_rev);
^
arch/arm64/kernel/setup.c:643:38: note: each undeclared identifier is reported only once for each function it appears in
arch/arm64/kernel/setup.c:645:4: error: 'system_serial_high' undeclared (first use in this function)
system_serial_high, system_serial_low);
^
arch/arm64/kernel/setup.c:645:24: error: 'system_serial_low' undeclared (first use in this function)
system_serial_high, system_serial_low);
^
scripts/Makefile.build:257: recipe for target 'arch/arm64/kernel/setup.o' failed
make[1]: *** [arch/arm64/kernel/setup.o] Error 1
Makefile:964: recipe for target 'arch/arm64/kernel' failed
make: *** [arch/arm64/kernel] Error 2
the variables i set are:
Code:
$echo $CROSS_COMPILE
/home/xxxx/Android/Sdk/ndk-bundle/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin/aarch64-linux-android-
$echo $ARCH
arm64
for a config i used
Code:
arch/arm64/configs/msm8937_defconfig
set all "NEW" options to defaults. its my first kernel build, i have no idea what most of it is /shrug
if anyone can give me some tips or a .config that works, would be very much appreciated. i havent had any luck googling the errors yet

I cant make kernel

when i try make kernel
i have this problem
arch/arm64/kernel/entry-fpsimd.S: Assembler messages:
arch/arm64/kernel/entry-fpsimd.S:53: Error: unexpected end of file in irp or irpc
/tmp/ccm5MNfe.s: Error: local label `"0" (instance number 1 of a fb label)' is not defined
scripts/Makefile.build:294: recipe for target 'arch/arm64/kernel/entry-fpsimd.o' failed
make[1]: *** [arch/arm64/kernel/entry-fpsimd.o] Error 1
Makefile:974: recipe for target 'arch/arm64/kernel' failed
make: *** [arch/arm64/kernel] Error 2
mi a2 lite daisy-p-oss
Which toolchain u use?
Ahmed Hady said:
Which toolchain u use?
Click to expand...
Click to collapse
i use UBERTC aarch64-linux-android-4.9 toolchain
mrfirt said:
i use UBERTC aarch64-linux-android-4.9 toolchain
Click to expand...
Click to collapse
Try google aarch64 4.9 first
https://android.googlesource.com/pl...nux-android-4.9/+/refs/tags/android-9.0.0_r32
i do that but i have now that problem
Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/pl...ost/linux-x86/+/master/GCC_4_9_DEPRECATION.md
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: Android: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: GCC: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: has: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: been: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: deprecated: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: in: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: favor: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: of: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: Clang,: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: and: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: will: No such file or directory
Android GCC has been deprecated in favor of Clang, and will be removed from
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: be: No such file or directory
Android in 2020-01 as per the deprecation plan in:
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: removed: No such file or directory
https://android.googlesource.com/pl...ost/linux-x86/+/master/GCC_4_9_DEPRECATION.md
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: from: No such file or directory
make[2]: *** Waiting for unfinished jobs....
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: the: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: deprecation: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: plan: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: in:: No such file or directory
921d9846-a815-11e9-84ea-ff8bce1b90b6: error: https://android.googlesource.com/pl...st/linux-x86/+/master/GCC_4_9_DEPRECATION.md: No such file or directory
scripts/Makefile.build:154: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
scripts/Makefile.build:403: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:560: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Ahmed Hady said:
Try google aarch64 4.9 first
https://android.googlesource.com/pl...nux-android-4.9/+/refs/tags/android-9.0.0_r32
Click to expand...
Click to collapse
Ahmed Give me any way to get in touch with you and thanks in advance

Categories

Resources