Compiling ROM/Kernel, Mission Failed, help please - General Questions and Answers

I am trying to build from source BlissStalk to Galaxy Tab S T700.
after about 30 minutes, whenever the kernel is building it spits out errors as follows:
ls: cannot access drivers/gud//MobiCoreDriver/platforms: No such file or directory
CC drivers/gud/MobiCoreDriver/logging.o
In file included from <command-line>:0:0:
/home/mtp/Development/Porting/kernel/samsung/exynos5420/include/linux/kconfig.h:46:1: fatal error: drivers/gud//build_tag.h: No such file or directory
compilation terminated.
make[4]: *** [drivers/gud/MobiCoreDriver/logging.o] Error 1
make[3]: *** [drivers/gud] Error 2
make[3]: *** Waiting for unfinished jobs....
....
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mtp/Development/Porting/kernel/samsung/exynos5420'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Anybody have any idea where I am going wrong?

jewnersey said:
I am trying to build from source BlissStalk to Galaxy Tab S T700.
after about 30 minutes, whenever the kernel is building it spits out errors as follows:
Anybody have any idea where I am going wrong?
Click to expand...
Click to collapse
Are you solve the problem?
I myself got the same error, if I want to build kernel 3.4.0 for Sony Xperia M2 Aqua (18.6.A.0.175).
ls: cannot access /drivers/gud/MobiCoreDriver/platforms: No such file or directory
LD drivers/gud/built-in.o
CC [M] drivers/gud/MobiCoreDriver/logging.o
drivers/gud/MobiCoreDriver/logging.c:21:18: fatal error: main.h: No such file or directory
#include <main.h>
Click to expand...
Click to collapse
but folder /drivers/gud/MobiCoreDriver/platforms exist and inside is folder MSM8960_SURF_STD and in this folder is file platform.h.
even if I write sudo make clean, it's appear the same error?
sudo make cleanls: cannot access /drivers/gud/MobiCoreDriver/platforms: No such file or directory
/bin/sh: /scripts/gcc-version.sh: No such file or directory
/bin/sh: /scripts/gcc-version.sh: No such file or directory
CLEAN .tmp_versions
Click to expand...
Click to collapse
Does anyone know how to solve this issue?
lp SaX15

Has this been fixed?
I am trying to compile a 3.41 kernel
sudo make clean
ls: cannot access '/drivers/gud/mobicore_driver/platforms': No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
/bin/bash: /scripts/gcc-version.sh: No such file or directory
sudo make flo_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2500:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:705:19: warning: ‘%s’ directive writing likely 7 or more bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
705 | sprintf(newname, "%s%s", dirname, basename);
| ^~~~~~
scripts/kconfig/confdata.c:705:19: note: assuming directive output of 7 bytes
scripts/kconfig/confdata.c:705:2: note: ‘sprintf’ output 1 or more bytes (assuming 4104) into a destination of size 4097 705 | sprintf(newname, "%s%s", dirname, basename);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:708:20: warning: ‘.tmpconfig.’ directive writing 11 bytes into a region of size between 1 and 4097 [-Wformat-overflow=]
708 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
| ^~~~~~~~~~~~~~~~~
scripts/kconfig/confdata.c:708:3: note: ‘sprintf’ output between 13 and 4119 bytes into a destination of size 4097
708 | sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid());
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTLD scripts/kconfig/conf
***
*** Can't find default configuration "arch/x86/configs/flo_defconfig"!
***
make[1]: *** [/home/jseitz/android/unlegacy/android_kernel_qcom_msm8960/scripts/kconfig/Makefile:96: flo_defconfig] Error 1
make: *** [Makefile:497: flo_defconfig] Error 2
Click to expand...
Click to collapse

Related

[Q] Error when building zImage

Hi.
I tried to build kernel with the source updated to the homepage.
I added some CPU governors and tried to pack on OS X.
But there was an error
I thought that i did all process right.
The terminal Says:
../prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi-gcc: ../prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi-gcc: cannot execute binary file
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-tcc92x/Kconfig:102:warning: choice value used outside its choice group
arch/arm/mach-tcc92x/Kconfig:105:warning: choice value used outside its choice group
../prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi-gcc: ../prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi-gcc: cannot execute binary file
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
CC kernel/bounds.s
/bin/sh: ../prebuilt/linux-x86/toolchain/arm-eabi-4.3.1/bin/arm-eabi-gcc: cannot execute binary file
make[1]: *** [kernel/bounds.s] Error 126
make: *** [prepare0] Error 2
is it because i tried to pack in os x, or did i do something wrong??

[Q] Noob Trying to Build AOKP but fail

trying to build aokp but having trouble, can anyone help? plz
*
build/core/tasks/kernel.mk:47: ***************************************************************
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt (out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
Cannot create temporary file in ./: Read-only file system
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
Cannot create temporary file in ./: Read-only file system
prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-ar: out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a: Read-only file system
prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-ar: out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a: Read-only file system
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a] Error 1
prebuilts/tools/gcc-sdk/gcc: line 40: 12720 Aborted (core dumped) $MY_TOOL "[email protected]"
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 134
prebuilts/tools/gcc-sdk/gcc: line 40: 12744 Aborted (core dumped) $MY_TOOL "[email protected]"
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 13

[q] compiling kernel probs!!

I'm having problem while compiling kernel from source :
[email protected]:~$ cd Android/kernel
[email protected]:~/Android/kernel$ make ARCH=arm CROSS_COMPILE=arm-eabi- -j4
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
make[2]: *** [scripts/mod/empty.o] Error 2
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
make[1]: *** [kernel/bounds.s] Error 2
make: *** [prepare0] Error 2
[email protected]:~/Android/kernel$ ^C
[email protected]:~/Android/kernel$
Click to expand...
Click to collapse
In .bashrc I added this line at the end :
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin
export PATH=${PATH}:Android/bootimagetools/tools
Click to expand...
Click to collapse
What to do please help me :crying:
Thanks in advance
Edit .bashrc
In the first line of export change it
From:
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin
To:
export PATH=${PATH}:Android/toolchains/arm-eabi-4.4.3/bin/arm-eabi-
Other things seems to be fine
Please hit on the thanks button if you like my work.

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.

[Completed] Need help with ROM Compilation error

Hey guys, I have been trying to compile a rom for bacon. I have all the source set up and the build is stopping at this error. Please help me solve this problem.
make -C kernel/oneplus/msm8974 O=out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/int/darko/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androideabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= bacon_defconfig
/bin/sh: 1: cd: can't cd to out/target/product/bacon/obj/KERNEL_OBJ
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
Install: out/host/linux-x86/lib64/libcutils.so
make[1]: Entering directory `/home/int/darko/kernel/oneplus/msm8974'
Makefile:121: *** output directory "out/target/product/bacon/obj/KERNEL_OBJ" does not exist. Stop.
make[1]: Leaving directory `/home/int/darko/kernel/oneplus/msm8974'
make: *** [out/target/product/bacon/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
INT3NSE07 said:
Hey guys, I have been trying to compile a rom for bacon. I have all the source set up and the build is stopping at this error. Please help me solve this problem.
make -C kernel/oneplus/msm8974 O=out/target/product/bacon/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/int/darko/prebuilts/misc/linux-x86/ccache/ccache arm-linux-androideabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= bacon_defconfig
/bin/sh: 1: cd: can't cd to out/target/product/bacon/obj/KERNEL_OBJ
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
Install: out/host/linux-x86/lib64/libcutils.so
make[1]: Entering directory `/home/int/darko/kernel/oneplus/msm8974'
Makefile:121: *** output directory "out/target/product/bacon/obj/KERNEL_OBJ" does not exist. Stop.
make[1]: Leaving directory `/home/int/darko/kernel/oneplus/msm8974'
make: *** [out/target/product/bacon/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Hello,
Try posting your query here [GUIDE][COMPLETE] Android ROM Development From Source To End, the experts there maybe able to assist you.
-Vatsal

Categories

Resources