Compiling Kernel - Moto G Q&A, Help & Troubleshooting

I keep getting kernel compilation error when trying to compile CM kernel from sources.
Code:
/tmp/cc0DKVco.s: Assembler messages:
/tmp/cc0DKVco.s:172: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/cc0DKVco.s:199: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
CC arch/arm/mach-msm/smd_private.o
CC arch/arm/mach-msm/smem.o
CC arch/arm/kernel/pmu.o
CC kernel/resource.o
CC arch/arm/kernel/perf_event.o
CC arch/arm/mach-msm/smd_init_dt.o
CC kernel/sysctl.o
arch/arm/mach-msm/smd_init_dt.c:24:25: fatal error: smd_private.h: No such file or directory
#include <smd_private.h>
^
compilation terminated.
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
No mods or tweaks has been added, just compiling with A7 optimized (linaro) toolchain on Ubuntu 13.10. I'm pretty sure I have installed all the necessary files and set-up the build environment. I'm new to this so could a dev help me?

bu,p

Same for me, where is the problem? can anyone help?
here is my output:
Code:
arch/arm/mach-msm/smd_init_dt.c:24:25: error: smd_private.h: No such file or directory
arch/arm/mach-msm/smd_init_dt.c: In function 'msm_smsm_probe':
arch/arm/mach-msm/smd_init_dt.c:66: error: 'disable_smsm_reset_handshake' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:66: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/smd_init_dt.c:66: error: for each function it appears in.)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'msm_smd_debug_mask' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'MSM_SMSM_DEBUG' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'smd_log_ctx' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:114: error: implicit declaration of function 'smd_get_intr_config'
arch/arm/mach-msm/smd_init_dt.c:114: warning: assignment makes pointer from integer without a cast
error, forbidden warning: smd_init_dt.c:114
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Errore 1
make: *** [arch/arm/mach-msm] Errore 2
make: *** Attesa per i processi non terminati....
CC arch/arm/kernel/pmu.o
LD arch/arm/perfmon/built-in.o
CC arch/arm/kernel/perf_event.o
arch/arm/kernel/bootinfo.c: In function 'bootinfo_bck_buf_check':
arch/arm/kernel/bootinfo.c:277: warning: integer constant is too large for 'long' type
error, forbidden warning: bootinfo.c:277
EDIT: I solved the smd_privae.h not found simply by copying it from mach-msm into mach-msm/include/mach and replacing
Code:
#include <smd_private.h>
with
Code:
#include <mach/smd_private.h>
But i still have this problem: in bootinfo.c the value BOOTINFO_BCK_MAGIC (defined as #define BOOTINFO_BCK_MAGIC 0x626f6f74696e666f) is an integer costant which is too large for 'long' type (at line 277 in the expression if (bck->magic != BOOTINFO_BCK_MAGIC))
Any help?
EDIT2: solved it thanks to google and stackoverflow, just replace 0x626F6F74696E666F with 0x626F6F74696E666FULL (where ULL = Unsigned Long Long, not sure about the meaning, still a complete noob at C++ (not even sure it is C++) :silly:

Related

help building android kernel module, error

Hi all,
I'm trying to build the tiwlan_drv kernel module for my Droid1. I built the kernel, and now I am trying to build this module. However, I get several warnings and errors:
Code:
LD [M] /home/gnychis/Documents/android/ti/wilink_6_1/stad/build/linux/tiwlan_drv.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: "hPlatform_DevicePowerOn" [/home/gnychis/Documents/android/ti/wilink_6_1/stad/build/linux/tiwlan_drv.ko] undefined!
I'm not sure why I get that undefined error when I just built the core of the module.
Code:
make[2]: Entering directory `/home/gnychis/Documents/android/omap'
CC [M] /home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.o
/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.c: In function 'wlanDrvIf_Create':
/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.c:855: error: implicit declaration of function 'create_freezeable_workqueue'
/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.c:855: warning: assignment makes pointer from integer without a cast
make[3]: *** [/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build/../../../../platforms/os/linux/src/WlanDrvIf.o] Error 1
make[2]: *** [_module_/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build] Error 2
make[2]: Leaving directory `/home/gnychis/Documents/android/omap'
make[1]: *** [../../../../platforms/os/linux/build/tiwlan_drv_stub.o] Error 2
make[1]: Leaving directory `/home/gnychis/Documents/android/ti/wilink_6_1/platforms/os/linux/build'
make: *** [../../../platforms/os/linux/build/tiwlan_drv_stub.o] Error 2
Here is the full output:
http://pastebin.com/6T0UcWgw
solved, this function name (where i get the error), was renamed in the kernel version i'm using... discrepancies between english
freezable and freezeable

Building AOSP 4.2 for the Epic 4G Touch

Okay, I have some errors in the build. I thought I could fix them by pulling the .so it can't build from another device, and when I do that, it deletes it and tries to rebuild it.
target SharedLib: libOMX.SEC.AVC.Decoder (out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/LINKED/libOMX.SEC.AVC.Decoder.so)
target SharedLib: libOMX.SEC.AVC.Encoder (out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Encoder_intermediates/LINKED/libOMX.SEC.AVC.Encoder.so)
target SharedLib: libOMX.SEC.M4V.Decoder (out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/LINKED/libOMX.SEC.M4V.Decoder.so)
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/SEC_OMX_Mpeg4dec.o: in function SEC_MFC_Mpeg4_Decode_Nonblock:hardware/samsung/exynos/multimedia/openmax/component/video/dec/mpeg4/SEC_OMX_Mpeg4dec.c:1462: error: undefined reference to 'SEC_OSAL_UnlockANB'
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/SEC_OMX_Mpeg4dec.o: in function SEC_MFC_Mpeg4_Decode_Nonblock:hardware/samsung/exynos/multimedia/openmax/component/video/dec/mpeg4/SEC_OMX_Mpeg4dec.c:1386: error: undefined reference to 'SEC_OSAL_LockANB'
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/SEC_OMX_Mpeg4dec.o: in function SEC_MFC_Mpeg4_Decode_Block:hardware/samsung/exynos/multimedia/openmax/component/video/dec/mpeg4/SEC_OMX_Mpeg4dec.c:1655: error: undefined reference to 'SEC_OSAL_LockANB'
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/SEC_OMX_Mpeg4dec.o: in function SEC_MFC_Mpeg4_Decode_Block:hardware/samsung/exynos/multimedia/openmax/component/video/dec/mpeg4/SEC_OMX_Mpeg4dec.c:1732: error: undefined reference to 'SEC_OSAL_UnlockANB'
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/STATIC_LIBRARIES/libSEC_OMX_Vdec_intermediates/libSEC_OMX_Vdec.a(SEC_OMX_Vdec.o): in function SEC_OMX_VideoDecodeGetParameter:hardware/samsung/exynos/multimedia/openmax/component/video/dec/SEC_OMX_Vdec.c:1087: error: undefined reference to 'SEC_OSAL_GetANBParameter'
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/STATIC_LIBRARIES/libSEC_OMX_Vdec_intermediates/libSEC_OMX_Vdec.a(SEC_OMX_Vdec.o): in function SEC_OMX_VideoDecodeSetParameter:hardware/samsung/exynos/multimedia/openmax/component/video/dec/SEC_OMX_Vdec.c:1173: error: undefined reference to 'SEC_OSAL_SetANBParameter'
collect2: ld returned 1 exit status
make: *** [out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.M4V.Decoder_intermediates/LINKED/libOMX.SEC.M4V.Decoder.so] Error 1
make: *** Waiting for unfinished jobs....
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/SEC_OMX_H264dec.o: in function SEC_MFC_H264_Decode_Nonblock:hardware/samsung/exynos/multimedia/openmax/component/video/dec/h264/SEC_OMX_H264dec.c:1467: error: undefined reference to 'SEC_OSAL_UnlockANB'
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/SEC_OMX_H264dec.o: in function SEC_MFC_H264_Decode_Nonblock:hardware/samsung/exynos/multimedia/openmax/component/video/dec/h264/SEC_OMX_H264dec.c:1373: error: undefined reference to 'SEC_OSAL_LockANB'
/home/thenameisnigel/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/SEC_OMX_H264dec.o: in function SEC_MFC_H264_Decode_Block:hardware/samsung/exynos/multimedia/openmax//component/video/dec/homeh264//thenameisnigelSEC_OMX_H264dec.c/:aosp1681/rebuilts /errorgcc:/ linuxundefined- x86reference/ armto/ arm'-SEC_OSAL_LockANBlinux'-
androideabi/-home4.6//thenameisnigelbin//aosp./.prebuilts//libgcc//gcclinux/-armx86-/linuxarm-/androideabiarm/-4.6.xlinux--googleandroideabi/-.4.6.//bin./../../.lib//.gcc.//armarm--linuxlinux--androideabiandroideabi//4.6.xbin-/googleld/:. .out//.target.//product./.d710//.obj.//STATIC_LIBRARIESarm/-libSEC_OMX_Venc_intermediateslinux/-libSEC_OMX_Venc.aandroideabi(/SEC_OMX_Venc.obin)/:ld :in outfunction/ targetSEC_Preprocessor_InputData/roducthardware//d710samsung//objexynos//SHARED_LIBRARIESmultimedia//libOMX.SEC.AVC.Decoder_intermediatesopenmax//SEC_OMX_H264dec.ocomponent:/ videoin/ encfunction/ SEC_OMX_Venc.cSEC_MFC_H264_Decode_Block::805hardware:/ samsungerror/:exynos /undefinedmultimedia /referenceopenmax /tocomponent /'videoSEC_OSAL_GetInfoFromMetaData/'dec
//h264home//SEC_OMX_H264dec.cthenameisnigel:/1758aosp:/ prebuiltserror/:gcc /undefinedlinux -referencex86 /toarm /'armSEC_OSAL_UnlockANB-'linux
-/androideabihome-/4.6thenameisnigel//binaosp//.prebuilts.//gcclib//linuxgcc-/x86arm/-armlinux/-armandroideabi-/linux4.6.x--androideabigoogle-/4.6./.bin//....//.lib.//gcc./.arm/-armlinux--linuxandroideabi-/androideabi4.6.x/-bingoogle//ld.:. /out./.target//.product.//d710./.obj//armSTATIC_LIBRARIES-/linuxlibSEC_OMX_Venc_intermediates-/androideabilibSEC_OMX_Venc.a/(binSEC_OMX_Venc.o/)ld:: inout /functiontarget /SEC_Preprocessor_InputDataproduct:/hardwared710//samsungobj//exynosSTATIC_LIBRARIES//multimedialibSEC_OMX_Vdec_intermediates//openmaxlibSEC_OMX_Vdec.a/(componentSEC_OMX_Vdec.o/)video:/ encin/ SEC_OMX_Venc.cfunction: 806SEC_OMX_VideoDecodeGetParameter:: hardwareerror/:samsung /undefinedexynos /referencemultimedia /toopenmax /'componentSEC_OSAL_LockANBHandle/'video
//dechome//SEC_OMX_Vdec.cthenameisnigel:/1087aosp:/ prebuiltserror/:gcc /undefinedlinux -referencex86 /toarm /'armSEC_OSAL_GetANBParameter-'linux
-/androideabihome-/4.6thenameisnigel//binaosp//.prebuilts.//gcclib//linuxgcc-/x86arm/-armlinux/-armandroideabi-/linux4.6.x--androideabigoogle-/4.6./.bin//....//.lib.//gcc./.arm/-armlinux--linuxandroideabi-/androideabi4.6.x/-bingoogle//ld.:. /out./.target//.product.//d710./.obj//armSTATIC_LIBRARIES-/linuxlibSEC_OMX_Venc_intermediates-/androideabilibSEC_OMX_Venc.a/(binSEC_OMX_Venc.o/)ld:: inout /functiontarget /SEC_Preprocessor_InputDataproduct:/hardwared710//samsungobj//exynosSTATIC_LIBRARIES//multimedialibSEC_OMX_Vdec_intermediates//openmaxlibSEC_OMX_Vdec.a/(componentSEC_OMX_Vdec.o/)video:/ encin/ SEC_OMX_Venc.cfunction: 812SEC_OMX_VideoDecodeSetParameter:: hardwareerror/:samsung /undefinedexynos /referencemultimedia /toopenmax /'componentSEC_OSAL_UnlockANBHandle/'video
//dechome//SEC_OMX_Vdec.cthenameisnigel:/1173aosp:/ prebuiltserror/:gcc /undefinedlinux -referencex86 /toarm /'armSEC_OSAL_SetANBParameter-'linux
-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/collect2: ../..ld returned 1 exit status/
../../arm-linux-androideabi/bin/ld: out/target/product/d710/obj/STATIC_LIBRARIES/libSEC_OMX_Venc_intermediates/libSEC_OMX_Venc.a(SEC_OMX_Venc.o): in function SEC_OMX_VideoEncodeSetParameter:hardware/samsung/exynos/multimedia/openmax/component/video/enc/SEC_OMX_Venc.c:1408: error: undefined reference to 'SEC_OSAL_SetANBParameter'
make: *** [out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Decoder_intermediates/LINKED/libOMX.SEC.AVC.Decoder.so] Error 1
collect2: ld returned 1 exit status
make: *** [out/target/product/d710/obj/SHARED_LIBRARIES/libOMX.SEC.AVC.Encoder_intermediates/LINKED/libOMX.SEC.AVC.Encoder.so] Error 1
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
aapt: warning: string 'gsm_alphabet_default_charset' has no default translation in frameworks/base/core/res/res; found: ko
[email protected]:~/aosp$
Please help. :|
Bump.
Bump.
Sent from my SPH-D710 using Tapatalk 2
Looks like no ones home!
You probably need ./extract-files.sh
Not sure what you mean by pulling a .so off of "another device". If anything you will need to pull some proprietary repos from CM or the other AOSP alpha builds on top of AOSP source repos. Then, you need to run the extract-files.sh from there while an E4GT is hooked up to pull the .so from a working device.
For CM, you need to pull those files from a phone that is already running CM (kind of a chicken and the egg deal)
FWIW, the kernel from AOSP could be built, maybe, by just finding the right vendor setup and building the kernel. Then again, it may fail horribly. But, what I can say is that you need a whole other bunch of repos to build any flavor or Android for the E4GT.

[Q] Problems compiling stock Kernel from official source.

Hi all.
I run into some problems when trying to build a Kernel from GT-N8000_KK_Opensource.zip (opensource.samsung.com).
I can compile the kernel with the defconfig shipped with the source code (p4notepq-w_00_defconfig) without any changes and i get a fully functional kernel and modules.
My aim is to compile driver modules for my usb-wlan-dongle TP-LINK TL-WN722N. That are the ath9k n ath9k_htc modules (also mac80211 module is needed).
I did the following changes to enable the ath9k and ath9k_htc in menuconfig
Code:
file drivers/net/wireless/ath/Makefile :
added: obj-$(CONFIG_ATH9K_HW) += ath9k/
file drivers/net/wireless/ath/Kconfig :
added: source "drivers/net/wireless/ath/ath9k/Kconfig
Also i removed Wall flags from Makefile and inserted some -Wno-error to get rid off some additional warnings.
To get rid off
Code:
include/linux/device.h:722:38: error: 'THIS_MODULE' undeclared (first use in this function)
i inserted my kernel export.h in the compat include.
Now i got the following error unsolved:
Code:
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_setup':
drivers/net/wireless/ath/ath9k/beacon.c:109: error: 'struct ath_common' has no member named 'tx_chainmask'
make[5]: *** [drivers/net/wireless/ath/ath9k/beacon.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [drivers/net/wireless/ath] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
My Build environment is:
Ubuntu 14.4.01 64bit in a VM with 8gb ram.
Toolchain used:
arm-eabi-4.4.3
Maybe someone can give me some advice how to get this module compiled.
Thanks in advance
smue83 said:
Hi all.
I run into some problems when trying to build a Kernel from GT-N8000_KK_Opensource.zip (opensource.samsung.com).
I can compile the kernel with the defconfig shipped with the source code (p4notepq-w_00_defconfig) without any changes and i get a fully functional kernel and modules.
My aim is to compile driver modules for my usb-wlan-dongle TP-LINK TL-WN722N. That are the ath9k n ath9k_htc modules (also mac80211 module is needed).
I did the following changes to enable the ath9k and ath9k_htc in menuconfig
Code:
file drivers/net/wireless/ath/Makefile :
added: obj-$(CONFIG_ATH9K_HW) += ath9k/
file drivers/net/wireless/ath/Kconfig :
added: source "drivers/net/wireless/ath/ath9k/Kconfig
Also i removed Wall flags from Makefile and inserted some -Wno-error to get rid off some additional warnings.
To get rid off
Code:
include/linux/device.h:722:38: error: 'THIS_MODULE' undeclared (first use in this function)
i inserted my kernel export.h in the compat include.
Now i got the following error unsolved:
Code:
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_setup':
drivers/net/wireless/ath/ath9k/beacon.c:109: error: 'struct ath_common' has no member named 'tx_chainmask'
make[5]: *** [drivers/net/wireless/ath/ath9k/beacon.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [drivers/net/wireless/ath] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
My Build environment is:
Ubuntu 14.4.01 64bit in a VM with 8gb ram.
Toolchain used:
arm-eabi-4.4.3
Maybe someone can give me some advice how to get this module compiled.
Thanks in advance
Click to expand...
Click to collapse
Similar issue here on S3,
Code:
net/mac80211/mlme.c: In function 'ieee80211_mgd_auth':
net/mac80211/mlme.c:2344:16: error: 'struct cfg80211_auth_request' has no member named 'local_state_change'
net/mac80211/mlme.c:2346:9: error: 'struct cfg80211_auth_request' has no member named 'local_state_change'
net/mac80211/mlme.c: In function 'ieee80211_assoc_done':
net/mac80211/mlme.c:2448:2: warning: passing argument 2 of 'cfg80211_send_rx_assoc' from incompatible pointer type [enabled by default]
include/net/cfg80211.h:2802:6: note: expected 'struct cfg80211_bss *' but argument is of type 'unsigned char *'
net/mac80211/mlme.c:2448:2: warning: passing argument 3 of 'cfg80211_send_rx_assoc' makes pointer from integer without a cast [enabled by default]
include/net/cfg80211.h:2802:6: note: expected 'u8 const *' but argument is of type 'unsigned int'
net/mac80211/mlme.c:2448:2: error: too few arguments to function 'cfg80211_send_rx_assoc'
include/net/cfg80211.h:2802:6: note: declared here
net/mac80211/mlme.c: In function 'ieee80211_mgd_deauth':
net/mac80211/mlme.c:2589:19: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2590:30: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2610:18: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2639:16: error: 'struct cfg80211_deauth_request' has no member named 'local_state_change'
make[2]: *** [net/mac80211/mlme.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Need help with KVM-Enabled stock kernel compilation

I am having an issue when compiling the kernel with KVM Enabled options, I am using the stock google toolchain and I am compiling the stock OnePlus pie kernel :
In file included from arch/arm64/kvm/../../../arch/arm/kvm/arm.c:44:0:
./arch/arm64/include/asm/kvm_mmu.h: In function 'kvm_get_hyp_vector':
./arch/arm64/include/asm/kvm_mmu.h:328:3: error: implicit declaration of function 'has_vhe' [-Werror=implicit-function-declaration]
if (!has_vhe())
^
cc1: some warnings being treated as errors
scripts/Makefile.build:298: recipe for target 'arch/arm64/kvm/../../../arch/arm/kvm/arm.o' failed
make[1]: *** [arch/arm64/kvm/../../../arch/arm/kvm/arm.o] Error 1
AS arch/arm64/kernel/kuser32.o
Makefile:995: recipe for target 'arch/arm64/kvm' failed
make: *** [arch/arm64/kvm] Error 2

Getting irq/irqdesc.o error while kernel compilation

I am trying to compile kernel for Realme 3 (new device) , but I am getting irq/irqdesc.o error, Maybe it's because the source are not complete.
Here is the link to kernel sources: https://github.com/realme-kernel-opensource/Realme3-kernel-source
Any help will be much appreciated
Code:
LD kernel/events/built-in.o
CC kernel/irq/irqdesc.o
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/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/smp.h:11,
from include/linux/irq.h:12,
from kernel/irq/irqdesc.c:10:
kernel/irq/irqdesc.c: In function '__handle_domain_irq':
kernel/irq/irqdesc.c:421:11: error: 'desc' undeclared (first use in this function)
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
kernel/irq/irqdesc.c:421:11: note: each undeclared identifier is reported only once for each function it appears in
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
make[2]: *** [scripts/Makefile.build:278: kernel/irq/irqdesc.o] Error 1
make[1]: *** [scripts/Makefile.build:484: kernel/irq] Error 2
make: *** [Makefile:1054: kernel] Error 2
fawazahmed0 said:
I am trying to compile kernel for Realme 3 (new device) , but I am getting irq/irqdesc.o error, Maybe it's because the source are not complete.
Here is the link to kernel sources: https://github.com/realme-kernel-opensource/Realme3-kernel-source
Any help will be much appreciated
Code:
LD kernel/events/built-in.o
CC kernel/irq/irqdesc.o
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/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/smp.h:11,
from include/linux/irq.h:12,
from kernel/irq/irqdesc.c:10:
kernel/irq/irqdesc.c: In function '__handle_domain_irq':
kernel/irq/irqdesc.c:421:11: error: 'desc' undeclared (first use in this function)
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
kernel/irq/irqdesc.c:421:11: note: each undeclared identifier is reported only once for each function it appears in
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
make[2]: *** [scripts/Makefile.build:278: kernel/irq/irqdesc.o] Error 1
make[1]: *** [scripts/Makefile.build:484: kernel/irq] Error 2
make: *** [Makefile:1054: kernel] Error 2
Click to expand...
Click to collapse
Now works perfectly, followed this guide:
https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297

Categories

Resources