Error when compiling Kernel - Android Q&A, Help & Troubleshooting

Hello,
Im currently trying to compile a nethunter kernel for my device. For that I used the toolchain in the plattform folder of my Kernel package. After using
Code:
make menuconfig
and configuring the features i continued with
Code:
make "defconfig"
but than i got this error message:
Code:
Makefile:727: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
scripts/kconfig/conf --silentoldconfig Kconfig
arch/Kconfig:404:warning: choice value must have a prompt
arch/Kconfig:406:warning: defaults for choice values not supported
.config:235:warning: override: CC_STACKPROTECTOR_STRONG changes choice state
configuration written to .config
include/config/auto.conf:622:warning: override: CC_STACKPROTECTOR_NONE changes choice state
Makefile:727: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: No such file or directory
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
security/samsung/defex_lsm/Makefile:13: [DEFEX] INTEGRITY_ENABLE
security/samsung/defex_lsm/Makefile:118: [DEFEX] VTS false
CHK include/generated/utsrelease.h
HOSTLD scripts/dtc/dtc
CC scripts/mod/empty.o
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x8): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x38): first defined here
CC scripts/mod/devicetable-offsets.s
/bin/sh: 1: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: not found
/bin/sh: 1: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: not found
make[2]: *** [scripts/Makefile.build:278: scripts/mod/empty.o] Error 127
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:153: scripts/mod/devicetable-offsets.s] Error 127
make[1]: *** [scripts/Makefile.build:484: scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
CHK include/generated/timeconst.h
CC kernel/bounds.s
/bin/sh: 1: ../PLATFORM/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-gcc: not found
make[1]: *** [Kbuild:20: kernel/bounds.s] Error 127
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:1086: prepare0] Error 2
make: *** Waiting for unfinished jobs....
collect2: error: ld returned 1 exit status
make[2]: *** [scripts/Makefile.host:100: scripts/dtc/dtc] Error 1
make[1]: *** [scripts/Makefile.build:484: scripts/dtc] Error 2
make: *** [Makefile:576: scripts] Error 2
I dont know how to continue.
Device: Samsung galaxy A7FN (SM-A750FN)
Kernelversion: 4.4
androidversion: ten
Thx for any help or advice.
Error message Screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Related

MID7012 - Kernel Building ERROR - PLS Help!

so far i have downloaded the tcc8902 kernel, it fails to build...
using ubuntu 11.10
am i missing something in my toolchain???
when i "make menuconfig" i get a few error....
and after that i just run "make" it fails.... see image...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i would like to finish this build so i can OC this device...
the kernel come pre-setup with the freqtables and voltages from the mid9200
any help would be nice!
would be very nice if it would just build!!!!!
have a look at the cyanogen wiki about setting up your cross compiler.
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
Sent from my Nexus One using XDA App
i will try this.... i understand now, cant build ARM source with out an arm processor, the ia32 doesnt read or write arm source.... wow....
will try later gotta goto school... preparing for a test.... i pray this works, i got a whole ton of people wanting this kernel and android build....
Hi you can still compile for arm on your pc. you just need a compiler that can output arm code.
first download the ARM EABI Toolchain for your computer
then set the environment variable for the arm build toolchain. such as
export CCOMPILER=[extraction directory]/bin/arm-eabi-
then build kernel with new toolchain
make ARCH=arm CROSS_COMPILE=$CCOMPILER menuconfig
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
and if your .config is correct that should get you a working kernel.
ps. and by your first screenshot it looks like your .config is the default from /boot/config-3.0.0-14.
so back to the wiki with how to get the .config from your android device
adb pull /proc/config.gz /home/user_name/android/kernel/cm-kernel/config.gz
cat config.gz | gunzip > .config
make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig
hope that helps and good luck!
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
just my luck... i tryed to build the toolchain... and i picked a broken script... stupid download... md5 was correct, just a broken installer script... error code 1 and code 2.... garbage...
recomend any good arm cross-compiler toolchains?
The prebuilt binaries from here should be all you need.
https://sourcery.mentor.com/sgpp/lite/arm/portal/subscription3053
then just make sure to export CCOMPILER=path/to/toolchain/bin/arm-none-eabi-
any progress been made on this? theres a lot of delveopment happening over at the KTZ Forums but not much about developing kernels. you should take a peak.
LemonHead2089 said:
any progress been made on this? theres a lot of delveopment happening over at the KTZ Forums but not much about developing kernels. you should take a peak.
Click to expand...
Click to collapse
I second that, I need a kernel that is OC-able since this rubbish wont run faster than 720mhz.
Has anyone been able to run ICS on this? Any other roms other than the KTZ ones? I really don't like them to be honest (I do appreciate their work) but I would prefer CM7 or something similar, maybe something very light would also be awesome.

bell atrix 2.3.6, does not go past dual core technology screen

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
has anyone had this problem before? i've tried flashing the bell SBF found here:
http://forum.xda-developers.com/showthread.php?t=1660980
instructions used here:
http://forum.xda-developers.com/showthread.php?t=991072
however, in rsd lite it gives me an error trying to switch to bp pass through mode, and fails flashing ap-os.
anyone that can help me would be appreciated
Can you boot it into bootloader and use fastboot?
Sent from my MB860 using xda app-developers app
=JKT= said:
Can you boot it into bootloader and use fastboot?
Sent from my MB860 using xda app-developers app
Click to expand...
Click to collapse
this is the error from rsd:
09/09/12 23:20:03 ERROR: Interface AP-OS: Error flashing subscriber unit. Device API Error: 0xE0020093 Address: 0x300020 Command: ADDR - on device ID 0.
09/09/12 23:20:03 ERROR: Flash failure: Interface AP-OS: Error flashing subscriber unit. Device API Error: 0xE0020093 Address: 0x300020 Command: ADDR (Error Code: e0020093),
Detailed Error Details: Direction of the Error=2000, Command Value=200000, Code Group Number=39 - on device ID 0.
09/09/12 23:20:03 [Device ID: 0] Interface AP-OS: Error flashing subscriber unit. Device API Error: 0xE0020093 Address: 0x300020 Command: ADDR
09/09/12 23:20:03 ERROR: Failed flashing process. - on device ID 0.
also says failed to switch device to bp pass through mode before this error
for fastboot, i cannot get any partition to erase:
erasing 'userdata' ... FAILED (remote: (00042004))
etc etc, for all partitions
i think the ram might be bad or something, since everything i try, nothing works

error at decompile (info inside)

Hi all.
I´m having an issue when I try to decompile a theme for cm9 (this one http://forum.xda-developers.com/showthread.php?t=1673652 I do have permision to do so from creator)
I´ve installed this java "jdk1.7.0_07 for 64bit windows" when I run "java -version" in cmd I get
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
which I think means I dont have to add the path right ?
I´ve installed android-sdk aswell as platform-tools, and added C:\Program Files (x86)\Android\android-sdk\platform-tools in path, I can do adb command if I CD to the folder.
I have taken the framework-res.apk and SystemUI.apk from my phone, renamed the first one 1.apk and 2nd one 2.apk and placed them in the "User\apktool\framework" folder location.
But when I set the corect project in apkmanager 5.0.2 and then try to decompile I get this error in log.
Code:
|10-10-2012 -- 19:06:14,36|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
E:\User\Desktop\and\place-apk-here-for-modding\../place-apk-here-for-modding/signedtheme.apk blev ikke fundet.
E:\User\Desktop\and\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedtheme.apk blev ikke fundet.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: E:\User\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010301e9
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Can anyone see what I´m doing wrong, and point me in the right direction to fix it?
And I´m just trying to theme the phone signal icons from grey to yellow.
Phone is SGS2 I9100 and on stock CM9
really, no one have any experience with this ?
More details, Ive installed these two.
http://www.oracle.com/technetwork/java/javase/downloads/jre-7u2-download-1377135.html for 64bit
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html for 64bit
---final edit---
got it fixed now
I guess JDK 1.6 is needed for it to work properly as mentioned here. As Android officially supports the 1.6 version only. But doesn't matter, as you've already got it fixed.
pharaohdk said:
More details, Ive installed these two.
http://www.oracle.com/technetwork/java/javase/downloads/jre-7u2-download-1377135.html for 64bit
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html for 64bit
---final edit---
got it fixed now
Click to expand...
Click to collapse
can i knw how did u fix it...............

[ROM][SM-G350E][STATUS]CyanogenMod 13 for GALAXY Star Advance/2 Plus

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Welcome to the new CyanogenMod 13 thread for the SM-G350E!
CURRENT PROJECT STATUS (randomly updated):
Actually I created higgs2g device tree, synced CM13 repo, and I "brunch"ed, but got this error:
Code:
libsepol.report_failure: neverallow on line 312 of external/sepolicy/domain.te (or line 10028 of policy.conf) violated by allow init system_file:file { create setattr unlink link };
libsepol.report_failure: neverallow on line 312 of external/sepolicy/domain.te (or line 10028 of policy.conf) violated by allow init system_file:dir { write };
libsepol.report_failure: neverallow on line 299 of external/sepolicy/domain.te (or line 10015 of policy.conf) violated by allow init unlabeled:file { execute };
libsepol.report_failure: neverallow on line 290 of external/sepolicy/init.te (or line 9072 of policy.conf) violated by allow init unlabeled:file { execute_no_trans };
libsepol.check_assertions: 4 neverallow failures occurred
Error while expanding policy
external/sepolicy/Android.mk:112: recipe for target '/home/hicham03/cm13/out/target/product/higgs2g/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery' failed
make: *** [/home/hicham03/cm13/out/target/product/higgs2g/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery] Error 1
make: *** Attente des tâches non terminées....
Once I found a solution for this error, I will able to successfully build the ROM, then I'll upload it!
I'LL NEVER REPLY THOSE WHO:
- Ask when the ROM will be ready
- Crying for the ROM link
- Begging for the ROM upload
XDA:DevDB Information
CyanogenMod 13 for SM-G350E, ROM for the Samsung Galaxy Star
Contributors
Hicham03, ahtesham01
Source Code: https://github.com/xdaHicham03/android_device_samsung_higgs2g
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.10.x
ROM Firmware Required: TWRP 3.0
Version Information
Status: Testing
Created 2016-06-14
Last Updated 2016-06-14
Reserved
Bro, source code must be directed to your device tree, except the device you develop with is supported by CyanogenMod team officially
doesntexits said:
Bro, source code must be directed to your device tree, except the device you develop to is supported by CyanogenMod team officially
Click to expand...
Click to collapse
Thanks for your reply..
can give instructions on how you collect or porting cyanogenmod our FPGA device, the whole internet clambered did not find anything that is connected with higgs2g
Placeholder threads are not permitted.
Thread closed.
OP, please PM me or report your thread when you have a download link ready.

*** MOD Edit: content removed ***

*** MOD Edit: content removed ***

Categories

Resources