[Q] pac man 5.1 kernel/rom related errors while building - General Questions and Answers

hi there, im building pac 5.1 from source for my device and i get the following error(s) while building the rom from :
1. a prebuilt kernel (the zimage ofcourse)
Code:
Copy: /home/bassface/pac-rom/out/target/product/a6000/root/init.target.rc
Notice file: external/sepolicy/NOTICE -- /home/bassface/pac-rom/out/target/product/a6000/obj/NOTICE_FILES/src//root/property_contexts.txt
Install: /home/bassface/pac-rom/out/target/product/a6000/root/property_contexts
make: *** No rule to make target '/home/bassface/pac-rom/out/target/product/a6000/obj/KERNEL_OBJ/usr', needed by '/home/bassface/pac-rom/out/target/product/a6000/obj/EXECUTABLES/adbd_intermediates/adb.o'. Stop.
#### make failed to build some targets (06:57 (mm:ss)) ####
if u want the whole log - http://pastebin.com/Qcm83xrv
2.im using a prebuilt kernel because im having problems compiling a kernel :c am i missing something.?
Code:
[email protected]:~/pac-rom/kernel1/lenovo/a6000$ make config
scripts/kconfig/conf --oldaskconfig Kconfig
arch/Kconfig:436: can't open file "kernel/gcov/Kconfig"
/home/bassface/pac-rom/kernel1/lenovo/a6000/scripts/kconfig/Makefile:27: recipe for target 'config' failed
make[1]: *** [config] Error 1
Makefile:503: recipe for target 'config' failed
make: *** [config] Error 2
[email protected]:~/pac-rom/kernel1/lenovo/a6000$
i get somewhat the same error while i try compiling the kernel from source through the rom..again, am i missing something.?
i checked for the folder irq in the sources and it wasnt there.
i searched for these errors but didnt find any fix any help would be highly appreciated

Anyone.?

Related

GCC Related Kernel Building Error

Hey XDA folk, pretty sure this is the correct forum to post this in, but if it isn't, then please enlighten me.
For those that aren't following my work, I've patched up the G2 CAF kernel from the lg-devs repo to my old kernel, along with GCC 5+ fixes. I am building with the GCC 6.0 UBERTC kernel toolchain. The kernel can be found here.
The exact kernel error I am getting is:
Code:
LD .tmp_vmlinux1
arch/arm/kernel/built-in.o:(___ksymtab_gpl+return_address+0x0): undefined reference to `return_address'
kernel/built-in.o: In function `get_parent_ip':
hw_breakpoint.c:(.text+0x39b10): undefined reference to `return_address'
hw_breakpoint.c:(.text+0x39b3c): undefined reference to `return_address'
/home/tsunami/android/kernel/lge/msm8974-caf/Makefile:919: recipe for target '.tmp_vmlinux1' failed
make[2]: *** [.tmp_vmlinux1] Error 1
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tsunami/android/kernel/lge/msm8974-caf'
build/core/tasks/kernel.mk:229: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
My error probably resides within this commit, but reverting it leads to a different error as well (Not the unwind warning). I am not sure as to whether I am missing a separate commit or not.
Just gonna give this a small bump.
Another bump. Do code-related issues even go here?
Closed at OP's request.

[Q][KERNEL] Source build problems.

When trying to run the scripts build_kernel.sh i get an error saying that i need to clean up the directory by using "make mrproper". However when i do i get the following error.
Code:
[email protected]:~/androidsource/kernel$ make mrproper
/home/wes/androidsource/kernel/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/wes/androidsource/kernel/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/wes/androidsource/kernel/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
What is missing? When i open the specified makefiles i do not see what is not specified as the target file. Also, drivers/media/isdbt/fc8150/makefile does not exist. Why is that? Is there something that i need to do in order to produce/unpack additional files from the whole source in order to compile the kernel for SM-N915J?
Have you ever fixed the problem? Running into the exact same error.
Thanks!

Compiling cm13 error 'unknown type init_shell'

Hello,
I'm coming from another phone and am new to this one. I'm jumping in to see if and where I can help with with bugs related to the cm13 device tree.
After almost a full compile, I'm running into an error I can't figure out.
Code:
No private recovery resources for TARGET_DEVICE osprey
make -C kernel/motorola/msm8916 O=/home/xclusive36/android/cm13/out/target/product/osprey/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/xclusive36/android/cm13/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= osprey_defconfig
host Executable: mkbootfs (/home/xclusive36/android/cm13/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
make[1]: Entering directory `/home/xclusive36/android/cm13/kernel/motorola/msm8916'
Install: /home/xclusive36/android/cm13/out/host/linux-x86/lib64/libcutils.so
/home/xclusive36/android/cm13/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/xclusive36/android/cm13/out/target/product/osprey/obj/ETC/sepolicy_intermediates/policy.conf
device/motorola/osprey/sepolicy/init_shell.te:2:ERROR 'unknown type init_shell' at token ';' on line 26943:
#line 1 "device/motorola/osprey/sepolicy/init_shell.te"
allow init_shell utags_block_device:blk_file { getattr open read ioctl lock };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/xclusive36/android/cm13/out/target/product/osprey/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/xclusive36/android/cm13/out/target/product/osprey/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/xclusive36/android/cm13/kernel/motorola/msm8916'
make: Leaving directory `/home/xclusive36/android/cm13'
#### make failed to build some targets (07:12 (mm:ss)) ####
Any help would be appreciated.
Thanks
xclusive36 said:
Hello,
I'm coming from another phone and am new to this one. I'm jumping in to see if and where I can help with with bugs related to the cm13 device tree.
After almost a full compile, I'm running into an error I can't figure out.
Code:
No private recovery resources for TARGET_DEVICE osprey
make -C kernel/motorola/msm8916 O=/home/xclusive36/android/cm13/out/target/product/osprey/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/xclusive36/android/cm13/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= osprey_defconfig
host Executable: mkbootfs (/home/xclusive36/android/cm13/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
make[1]: Entering directory `/home/xclusive36/android/cm13/kernel/motorola/msm8916'
Install: /home/xclusive36/android/cm13/out/host/linux-x86/lib64/libcutils.so
/home/xclusive36/android/cm13/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/xclusive36/android/cm13/out/target/product/osprey/obj/ETC/sepolicy_intermediates/policy.conf
device/motorola/osprey/sepolicy/init_shell.te:2:ERROR 'unknown type init_shell' at token ';' on line 26943:
#line 1 "device/motorola/osprey/sepolicy/init_shell.te"
allow init_shell utags_block_device:blk_file { getattr open read ioctl lock };
checkpolicy: error(s) encountered while parsing configuration
make: *** [/home/xclusive36/android/cm13/out/target/product/osprey/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/xclusive36/android/cm13/out/target/product/osprey/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/xclusive36/android/cm13/kernel/motorola/msm8916'
make: Leaving directory `/home/xclusive36/android/cm13'
#### make failed to build some targets (07:12 (mm:ss)) ####
Any help would be appreciated.
Thanks
Click to expand...
Click to collapse
You'll need the SELinux patch on gerrit. It's still a WIP. http://review.cyanogenmod.org/#/c/118765/
squid2 said:
You'll need the SELinux patch on gerrit. It's still a WIP. http://review.cyanogenmod.org/#/c/118765/
Click to expand...
Click to collapse
Gotcha, thanks for the reply. I was able to get a full compile by removing that folder from the device/motorola/osprey folder. I'll take a look at that patch tonight when I get off of work and try it again with SELinux enabled.

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

LineageOS 14.1 - Hammerhead Issue

Code:
============================================
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
find: ‘/home/looper/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
Starting build with ninja
ninja: Entering directory `.'
ninja: warning: phony target '-*-' names itself as an input; ignoring [-w phonycycle=warn]
ninja: error: /home/looper/lineage/out/build-lineage_hammerhead.ninja:410882: multiple rules generate /home/looper/lineage/out/target/product/hammerhead/system/etc/gps.conf [-w dupbuild=err]
make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
make: Leaving directory '/home/looper/lineage'
#### make failed to build some targets (20 seconds) ####
device tree: github. com/LineageOS/android_device_lge_hammerhead/tree/cm-14.1
kernel: github. com/LineageOS/android_kernel_lge_hammerhead/tree/cm-14.1
vendor: github. com/TheMuppets/proprietary_vendor_lge
rom source: github. com/lineageos
Hey guys, this is my first build and I am facing this issue during the build, I have no idea how to fix the error!
find some answer from google but these are not works for me at all. so really need some professional's help.:silly:
not to resurrect an old thread, but when you downloaded TheMuppets/proprietary_vendor_lge you did change the branch to cm-14.1, right? The correct address would be: https://github.com/TheMuppets/proprietary_vendor_lge/tree/cm-14.1 [-- I made the mistake of forgetting to check the branch version ... ]

Categories

Resources