trouble building kernel - Moto G5 Questions & Answers

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

Related

[DEV] Steam development

Steam development
Although I'm been in a long hiatus, thanks to hardcore there are still a few out there who use an UTLK based kernel. I hope Steam will be as succesfull as ULTK was.
To achieve this there were some developments in ULTK (now named Steam).
1. Steam is now one big file, containing multiple applications. This is mainly to minimize the amount of libc's on an initramfs (and this feat is actually achieved)
2. As steam is now one file there are no more bash scripts. Pre and post-init is now written in C, which has the added benefit of being able to use C libraries, like the (now multitouch capable) ui library of the recovery. Checking logs on what went wrong was never been easier.
3. init.rc and recovery.rc are now modified on-the-fly, possibly making the work to get Steam work on stock kernels easier
4. Steam uses config variables (just like properties on android) to communicate. There are already more uses of config variables inside the code than the gui actually allows one to use.
5. Localization strings are separated into separate files, to make translation easier (no accent support in the font however)
6. Device specific stuff are moved into separate files too.
7. There is now also an oem.c where one could add additional code that gets run, when steam is installed, upgraded or uninstalled. Currently the default config is to load up Afterburner after installation.
8. Afterburner is a simple application inside the recovery, which shows a list of installable elements, where the user can chose which ones to install. This is like
giving them a lot of update.zip's, only in one easy to use place.
9. All source files are now put inside into an organization on github. If you want to help me develop this project, please drop me a message, and I'll add you to the developer list.
10. (anything else I might have forgotten)
If you have any questions considering the development of Steam, plase drop a line. Thanks!
Compiler script, for Steam 2.9.9.0: Compiler Script
Compiler script for Steam 2.9.9.1 (and upward): Compiler Script
with this you can write:
Code:
TARGET_DEVICE=ns-on-sgs-i9000 ./install.sh
to compile for the gingerbread port instead of the default sgs one.
shouldn't line 74 be
Code:
cd ../ns-on-sgs-i9000
in the compiler for 2.9.9.1
thanks, is there any device-dependant or hardcoded code that we should modify to implement on different devices?
luismanson said:
thanks, is there any device-dependant or hardcoded code that we should modify to implement on different devices?
Click to expand...
Click to collapse
First you should set the correct vendor in Android/vendor directory. It's not really needed for Steam to work. but if you're doing some other Android compiling it's useful. The compiler script will run for the "galaxys" vendor, you have to change it too, if you have changed the vendor.
Apart from this a lot of device specific code is inside Android/bootable/steam/recovery/device/*
Check the current two device there. I don't yet have a script that will automate device building, so you have to modify the Android.mk there to actually use the new device.
mascool said:
shouldn't line 74 be
Code:
cd ../ns-on-sgs-i9000
in the compiler for 2.9.9.1
Click to expand...
Click to collapse
Oh, yeah, fixed.
any ideas here?
Code:
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/dump_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/dump_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/dump_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/dump_image'
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/flash_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/flash_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/flash_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/flash_image'
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/erase_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/erase_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/erase_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/erase_image'
No private recovery resources for TARGET_DEVICE galaxys
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
make: *** [out/target/product/galaxys/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cbc_cksm.o] Error 1
cp out/target/product/galaxys/system/bin/steam /home/kernel/share/steam
cp out/target/product/galaxys/system/bin/steam /home/kernel/initramfs/out/sbin/steam
End of script
luismanson said:
any ideas here?
Code:
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/dump_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/dump_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/dump_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/dump_image'
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/flash_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/flash_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/flash_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/flash_image'
build/core/base_rules.mk:455: warning: overriding commands for target `out/target/product/galaxys/utilities/erase_image'
build/core/base_rules.mk:455: warning: ignoring old commands for target `out/target/product/galaxys/utilities/erase_image'
build/core/dynamic_binary.mk:113: warning: overriding commands for target `out/target/product/galaxys/symbols/utilities/erase_image'
build/core/dynamic_binary.mk:113: warning: ignoring old commands for target `out/target/product/galaxys/symbols/utilities/erase_image'
No private recovery resources for TARGET_DEVICE galaxys
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
make: *** [out/target/product/galaxys/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cbc_cksm.o] Error 1
cp out/target/product/galaxys/system/bin/steam /home/kernel/share/steam
cp out/target/product/galaxys/system/bin/steam /home/kernel/initramfs/out/sbin/steam
End of script
Click to expand...
Click to collapse
try compiling using the compiler script, that uses the choosecombo and make command. I use the Android base 2.2.1 for compilation. Somehow DES get's disabled in a config file, I don't which one that might be (hopefully it's not one of mine... )
i was doing it manually and now with your script, also got the sources again. yet i have the same problem
Code:
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_enc.c
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cfb64enc.c
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_cksm.c:59:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cbc_cksm.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cfb64enc.c:59:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cfb64enc.c:59:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
In file included from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/ncbc_enc.c:64,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_enc.c:61:
external/openssl/include/openssl/des.h:66:2: error: #error DES is disabled.
In file included from external/openssl/include/openssl/des.h:101,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/des_locl.h:83,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/ncbc_enc.c:64,
from bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/des/cbc_enc.c:61:
external/openssl/include/openssl/des_old.h:97:2: error: #error DES is disabled.
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cbc_enc.o] Error 1
make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/des/cfb64enc.o] Error 1
[email protected]:~/android/i9000B/froyo/Android$
I have the same problem with android source code 2.2.1
when I change openssl to 2.3, i get the below error.
Code:
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/cversion.c
target thumb C: libsteam_crypto <= bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:171:4: error: #error "Inconsistency between crypto.h and cryptlib.c"
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:184: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c: In function 'CRYPTO_get_new_lockid':
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:212: error: 'app_locks' undeclared (first use in this function)
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:212: error: (Each undeclared identifier is reported only once
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:212: error: for each function it appears in.)
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c: In function 'CRYPTO_set_dynlock_lock_callback':
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:404: warning: implicit declaration of function 'int_CRYPTO_set_do_dynlock_callback'
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c: In function 'CRYPTO_get_lock_name':
bootable/steam/cryptsetup/crypto/../../../../external/openssl/crypto/dyn_lck.c:423: error: 'app_locks' undeclared (first use in this function)
make: *** [out/target/product/galaxys/obj/STATIC_LIBRARIES/libsteam_crypto_intermediates/../../../../external/openssl/crypto/dyn_lck.o] Error 1
Hi,
I have found the problem...
in bootable/steam/crypto/android-config.mk, many things has been disabled.
Code:
LOCAL_CFLAGS += -DOPENSSL_NO_MD5 -DOPENSSL_NO_MD4 -DOPENSSL_NO_DEPRECATED -DOPENSSL_NO_DSA -DOPENSSL_NO_ECDSA \
-DOPENSSL_NO_MDC2 -DOPENSSL_NO_RIPEMD -DOPENSSL_NO_SHA256 -DOPENSSL_NO_SHA512 \
-DOPENSSL_NO_DES -DOPENSSL_NO_RC4 -DOPENSSL_NO_IDEA -DOPENSSL_NO_SEED -DOPENSSL_NO_RC2 \
-DOPENSSL_NO_BF -DOPENSSL_NO_CAST -DOPENSSL_NO_RC5 -DOPENSSL_NO_CAMELLIA
Hi bro sztupy,
If I delete those error detection in the SSL source code, is there any problem? for example
Code:
#ifdef OPENSSL_NO_DES
#error DES is disabled.
#endif
sorry for my lousy english.
why dont you try removing -DOPENSSL_NO_DES
luismanson said:
why dont you try removing -DOPENSSL_NO_DES
Click to expand...
Click to collapse
After removing -DOPENSSL_NO_DES, still have many errors.
after remove one by one, i found that the below option can be compile without error
Code:
LOCAL_CFLAGS += -DOPENSSL_NO_DEPRECATED -DOPENSSL_NO_ECDSA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_SHA256 -DOPENSSL_NO_SHA512 -DOPENSSL_NO_IDEA -DOPENSSL_NO_SEED -DOPENSSL_NO_BF -DOPENSSL_NO_CAST -DOPENSSL_NO_RC5 -DOPENSSL_NO_CAMELLIA
thanks, i will use this option unless the OP says something before im @ home
Hi,
I am trying to translate steam recovery to chinese, but after compile, all of the chinese character cannot show(become blank) in steam recovery.
is there any way to display Unicode or add the character encoding?
I am newbie in C programming...

[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.

[HELP] Error while building CM P350 ROM

Hi all,
I'm kind of a newbie in building rom's and while my pc was building my first rom for my lg p350 I had this error message:
Code:
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:39: error: Resource does not already exist in overlay at 'config_tether_upstream_regexs'; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:40: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:41: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:105: error: Resource at config_enableScreenOnAnimation appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:108: error: Resource at config_enableScreenOffAnimation appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:111: error: Resource at config_networkLocationProvider appears in overlay but not in the base package; use <add-resource> to add.
device/lge/p350/overlay/frameworks/base/core/res/res/values/config.xml:114: error: Resource at config_geocodeProvider appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/home/simon/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/home/simon/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
I hope someone can help me...

[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:

Need help for fixing these errors occurred during compiling cm 14

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

Categories

Resources