Cm13 build error - Galaxy S3 Neo Q&A, Help & Troubleshooting

I'm building cm13 for our device and I got an error during build
Code:
Construct recovery from boot
mkdir -p /home/nikita36078/cm13/out/target/product/s3ve3g/obj/PACKAGING/recovery_patch_intermediates/
PATH=/home/nikita36078/cm13/out/host/linux-x86/bin:$PATH /home/nikita36078/cm13/out/host/linux-x86/bin/imgdiff /home/nikita36078/cm13/out/target/product/s3ve3g/boot.img /home/nikita36078/cm13/out/target/product/s3ve3g/recovery.img /home/nikita36078/cm13/out/target/product/s3ve3g/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
Error: footer size 1841504261 != decompressed size 0
failed to break apart source image
make: *** [/home/nikita36078/cm13/out/target/product/s3ve3g/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Error 1
make: *** Waiting for unfinished jobs....
build/core/Makefile:1054: recipe for target '/home/nikita36078/cm13/out/target/product/s3ve3g/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p' failed
make: Leaving directory '/home/nikita36078/cm13'
#### make failed to build some targets (02:05 (mm:ss)) ####
Any suggestions?

Related

Error building on OSX 10.8.5

Hi,
I have a problem building the Android FS on OSX 10.8.5,
I made a case-sensitive FS, and brewed the required packages from the different tutorials,
The problem is more OS related:
Code:
target arm C++: libwebrtc_apm <= out/target/product/generic/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/test/unittest.pb.cc
Symlink: out/target/product/generic/system/vendor/lib/libbltsville_cpu.so -> ./libbltsville_ticpu.so
Symlink: out/target/product/generic/system/vendor/lib/libbltsville_ticpu.so -> ./libbltsville_ticpu.2.1.0.0.so
Install: out/host/darwin-x86/bin/minigzip
cp: the -R and -r options may not be specified together.
make: *** [out/target/product/generic/system/vendor/lib/libbltsville_ticpu.so] Error 1
make: *** Deleting file `out/target/product/generic/system/vendor/lib/libbltsville_ticpu.so'
make: *** Waiting for unfinished jobs....
28996-MBP:mydroid kbenshim$
Anyhelp?

[Q] problem with building kernel[solved]

Hi every one I have a problem with compiling zImage of a3000 kernel so i enter these coomands:
Code:
export TARGET_BUILD_VARIANT=eng TARGET_PRODUCT=a3000_prc_3gfull MTK_ROOT_CUSTOM=/mediatek/custom/ TARGET_KERNEL_VERSION=3.4.5 &&export PATH=arm-eabi-linaro-4.6.2/bin/:$PATH&&export CROSS_COMPILE=arm-eabi-&&export ARCH=arm
then for setup:
Code:
make menuconfigscripts/kconfig/mconf Kconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
I don't touch configurations.
problem is here
Code:
[B][SIZE="4"][U]make zImage[/U][/SIZE][/B]
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC arch/arm/kernel/asm-offsets.s
In file included from include/linux/timex.h:174:0,
from include/linux/sched.h:57,
from arch/arm/kernel/asm-offsets.c:13:
[B][U][SIZE="4"][COLOR="black"][COLOR="Red"]/media/***/****/kernel/arch/arm/include/asm/timex.h:15:24: fatal error: mach/timex.h: No such file or directory
compilation terminated.
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2[/COLOR][/COLOR][/SIZE][/U][/B]

Compile kernel

Is this guide enough for making kernel for android: http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276
Not really.
http://xda-university.com/as-a-developer/getting-started-building-a-kernel-from-source
Even this one you should look at as a advertisement for a good book that is free.
You need to read that book along side with going truth complete source on your git to get to know infrastructure & only after that you can go ahead with device specific not to get stuck to much & truly knowing what are you doing. When you do those two you are ready for costimizing & porting naturally counting on that you have a basic coding knowledge all redy. No shortcuts there.
I have problem.I am using linaro-arm-eabi-4.9.When I execute command -j3 it says:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CC scripts/mod/empty.o
/opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:510: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
CC kernel/bounds.s
/opt/toolchains/arm-eabi-4.6/bin/arm-eabi-gcc: No such file or directory
Is your PATH set correctly?
/media/sf_gti9301i/GT-I9301I_KK_Opensource/Kernel/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 2
Makefile:990: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
@Pavlex4
You need to set the correct path to the tool chain in the makefile
Best Regards

MIUI Porting error Huawei P9 Please help!

Hello all! Last day i trying to port miui for Huawei P9 Stock 6.0 base,but it fails... Anyone help me please?
W/ResourceType(26253): ResTable_typeSpec entry count inconsistent: given 248, previously 1
/home/nexti/MIUI/tools/apktool --quiet if -p out/apktool out/framework-ext-res.apk
<<< build out/framework-ext-res.apk completed!
Copy: out/framework-ext-res.apk to out/ZIP/system/framework/framework-ext-res/framework-ext-res.apk
/home/nexti/MIUI/tools/apktool --quiet d -f /home/nexti/MIUI/miui/system/framework/framework.jar -o out/framework_miui
>>> build out/framework.jar...
cp: stat 'framework.jar.out/' sikertelen: Nincs ilyen fájl vagy könyvtár
/home/nexti/MIUI/build/porting.mk:179: recipe for target 'out/framework.jar' failed
make[1]: *** [out/framework.jar] Error 1
make[1]: Leaving directory '/home/nexti/MIUI/eva'
Makefile:8: recipe for target 'otapackage' failed
make: *** [otapackage] Error 2
[email protected]:~/MIUI$ make otapackage
make -C /home/nexti/MIUI/eva otapackage
make[1]: Entering directory '/home/nexti/MIUI/eva'
To add prebuilt files
mv: stat 'out/ZIP/system/bin/app_process64_miui' sikertelen: Nincs ilyen fájl vagy könyvtár
/home/nexti/MIUI/build/prebuilt.mk:6: recipe for target 'add-prebuilt-files' failed
make[1]: [add-prebuilt-files] Error 1 (ignored)
To add preintall files
Add miui prebuilt completed!
>>> build out/framework.jar...
cp: stat 'framework.jar.out/' sikertelen: Nincs ilyen fájl vagy könyvtár
/home/nexti/MIUI/build/porting.mk:179: recipe for target 'out/framework.jar' failed
make[1]: *** [out/framework.jar] Error 1
make[1]: Leaving directory '/home/nexti/MIUI/eva'
Makefile:8: recipe for target 'otapackage' failed
make: *** [otapackage] Error 2

Exec format error when building Google Kernel for Nexus 7 2012

Hi,
I am trying to build kernel for Nexus 7 (2012) but it is giving my exec format error. The commands and the errors are shown below:
Code:
LIFEBOOK-S761:~/Desktop$ git clone https://android.googlesource.com/kernel/tegra.git
Cloning into 'tegra'...
remote: Sending approximately 758.70 MiB ...
remote: Counting objects: 102, done
remote: Finding sources: 100% (8/8)
remote: Total 4341886 (delta 3657743), reused 4341880 (delta 3657743)
Receiving objects: 100% (4341886/4341886), 758.70 MiB | 10.87 MiB/s, done.
Resolving deltas: 100% (3657743/3657743), done.
LIFEBOOK-S761:~/Desktop$ cd tegra/
LIFEBOOK-S761:~/Desktop/tegra$ git checkout android-tegra3-grouper-3.1-kitkat-mr2
Checking out files: 100% (38132/38132), done.
Branch 'android-tegra3-grouper-3.1-kitkat-mr2' set up to track remote branch 'android-tegra3-grouper-3.1-kitkat-mr2' from 'origin'.
Switched to a new branch 'android-tegra3-grouper-3.1-kitkat-mr2'
LIFEBOOK-S761:~/Desktop/tegra$ export ARCH=arm
LIFEBOOK-S761:~/Desktop/tegra$ export SUBARCH=arm
LIFEBOOK-S761:~/Desktop/tegra$ export CROSS_COMPILE=/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-
LIFEBOOK-S761:~/Desktop/tegra$ make tegra3_android_defconfig
#
# configuration written to .config
#
LIFEBOOK-S761:~/Desktop/tegra$ make -j4
/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
/home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/kallsyms
CC scripts/mod/empty.o
/bin/sh: 1: /home/user/Desktop/arm-eabi-4.6/bin/arm-eabi-gcc: Exec format error
scripts/Makefile.build:305: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 2
scripts/Makefile.build:441: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
HOSTCC scripts/selinux/genheaders/genheaders
HOSTCC scripts/selinux/mdp/mdp
Makefile:506: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Can you please tell what I might be doing wrong or what could be the problem?

Categories

Resources