I cant make kernel - Xiaomi Mi A2 Lite Questions & Answers

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

Related

Error when in compiling lunch menu

Code:
Which would you like? [full-eng] 9
ls: cannot access device/*/D710/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_D710". Stop.
Device D710 not found. Attempting to retrieve device repository from CyanogenMod Github ([URL]http://github.com/CyanogenMod[/URL]).
Repository for D710 not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
ls: cannot access device/*/D710/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_D710". Stop.
** Don't have a product spec for: 'cm_D710'
** Do you have the right repo manifest?
Re: [Q]Proprietary Drivers for compiling?
I suggest installing CM10.1 then with ADB added to your path, run the extract script.
Sent from my SPH-D710 using xda premium
Deleted
Im getting a new error when im in lunch menu.
Code:
Which would you like? [full-eng] 9
ls: cannot access device/*/D710/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_D710". Stop.
Device D710 not found. Attempting to retrieve device repository from CyanogenMod Github ([URL]http://github.com/CyanogenMod[/URL]).
Repository for D710 not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
ls: cannot access device/*/D710/cm.mk: No such file or directory
build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_D710". Stop.
** Don't have a product spec for: 'cm_D710'
** Do you have the right repo manifest?
Your best bet is to jump on irc.
webchat.freenode.net
irc.freenode.net:6667
Then join #jb-dev-e4gt
Sent from my SPH-D710 using xda premium
EDIT: The compile was so far but then i got this error:
Code:
cannot create /home/austin/beanstalk/out/target/product/d710/obj/KERNEL_OBJ/usr/include/linux/atm_nicstar.h: Read-only file system
/home/austin/beanstalk/out/target/product/d710/obj/KERNEL_OBJ/usr/include/linux/atm_nicstar.h.tmp: Read-only file system
make[4]: *** [/home/austin/beanstalk/out/target/product/d710/obj/KERNEL_OBJ/usr/include/linux/.install] Error 30
make[3]: *** [linux] Error 2
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/austin/beanstalk/kernel/samsung/smdk4210'
make: *** [/home/austin/beanstalk/out/target/product/d710/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs....
collect2: ld terminated with signal 6 [Aborted], core dumped
make: *** [/home/austin/beanstalk/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs] Error 1
make: *** Deleting file `/home/austin/beanstalk/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs'
make: unlink: /home/austin/beanstalk/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs: Read-only file system

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

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

[fix] Nexus 5x Kernel 3.10.x CONFIG_MODULES Makefile:822: recipe for target 'driver'

Hello guys,
this my first post and I want to share how to fix the error when compiling a kernel 3.10.x with the CONFIG_MODULES enabled
the error that comes up is something like
...
LD drivers/staging/qcacld-2.0/wlan.o
LD drivers/staging/qcacld-2.0/built-in.o
LD drivers/staging/built-in.o
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
compiling twice without cleaning you got the entire error
drivers/usb/phy/class-dual-role.c:91:1: error: expected ',' or ';' before 'int'
int dual_role_get_property(struct dual_role_phy_instance *dual_role,
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/phy/class-dual-role.o' failed
make[3]: *** [drivers/usb/phy/class-dual-role.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/Makefile.build:455: recipe for target 'drivers/usb/phy' failed
make[2]: *** [drivers/usb/phy] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:822: recipe for target 'drivers' failed
make: *** [drivers] Error 2
that is a syntax error, pretty easy to fix:
- open the file drivers/usb/phy/class-dual-role.c within a text editor
- go to line 90
this:
EXPORT_SYMBOL_GPL(dual_role_get_property)
should be
EXPORT_SYMBOL_GPL(dual_role_get_property);
the error was a missing ";" in the end of that line
I hope I have been helpful for the all the developers and compilers who want to enable "the loadable module support"
cheers
thank you
WOW!!! Thank you

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

Categories

Resources