[Q] [Rom Building] How to deal with this error - Android Q&A, Help & Troubleshooting

heyyo, build question here.
1. i hope i dont bother someone, because this is carbon building and not in their threat, but i'm not sure if this error is really related to there git?
2. OS info: i'm currently running on antergos, an arch based linux distro, therefor i'm using the arch wiki for setting up the building enviroment, more here:
https://wiki.archlinux.org/index.php/android#Building_Android
3. the lower part is taken from the official carbon githubt, more here:
https://github.com/CarbonDev/android
the terminal input
mkdir ~/bin
export PATH=~/bin:$PATH
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
mkdir carbon
cd carbon
virtualenv2 venv # Creates a directory, venv/, containing the Virtualenv
source venv/bin/activate
repo init -u https://github.com/CarbonDev/android.git -b kk && repo sync -f
. build/envsetup.sh
lunch 23
make carbon -j5
then i get this error output (after about 1:20h):
Gyp action: third_party_WebKit_Source_core_core_derived_sources_gyp_make_derived_sources_target_CSSValueKeywords (/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSValueKeywords.cpp)
Traceback (most recent call last):
File "scripts/make_css_property_names.py", line 238, in <module>
in_generator.Maker(CSSPropertiesWriter).main(sys.argv)
File "/home/nik/carbon/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 119, in main
writer.write_files(options.output_dir)
File "/home/nik/carbon/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 77, in write_files
self._write_file(output_dir, generator(), file_name)
File "scripts/make_css_property_names.py", line 233, in generate_implementation
gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
external/chromium_org/third_party/WebKit/Source/core/make_derived_sources.target.linux-arm.mk:74: recipe for target '/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSPropertyNames.cpp' failed
make: *** [/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSPropertyNames.cpp] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "scripts/make_css_value_keywords.py", line 177, in <module>
in_generator.Maker(CSSValueKeywordsWriter).main(sys.argv)
File "/home/nik/carbon/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 119, in main
writer.write_files(options.output_dir)
File "/home/nik/carbon/external/chromium_org/third_party/WebKit/Source/core/scripts/in_generator.py", line 77, in write_files
self._write_file(output_dir, generator(), file_name)
File "scripts/make_css_value_keywords.py", line 172, in generate_implementation
gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
external/chromium_org/third_party/WebKit/Source/core/make_derived_sources.target.linux-arm.mk:108: recipe for target '/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSValueKeywords.cpp' failed
make: *** [/home/nik/carbon/out/target/product/exhilarate/obj/GYP/shared_intermediates/blink/CSSValueKeywords.cpp] Error 1
any idea? Thanks in advance

Related

[Q] CM10.1 Won't suddenly won't build (No rule to make target...)

This isn't the first time I've tried to build Cyanogenmod for my i9100 on Ubuntu 12.10; I've done it successfully a few times before. However recently, it has just refused to build.
Code:
lunch cm_i9100-userdebug && mka
gave a bunch of errors: http://pastebin.com/Mn3YLZDY.
Code:
brunch cm_i9100-userdebug
gives different errors: http://pastebin.com/xiv4ettD. Teamhacksung's build script also gives the exact same errors. I tried starting in a new directory from scratch, but I still get the same errors.
The parts that look suspicious to me are
Code:
/bin/bash: line 0: cd: external/apache-harmony//home/ari/android/system/external/apache-harmony: No such file or directory
/bin/bash: line 0: cd: external/apache-harmony//home/ari/android/system/external/apache-harmony: No such file or directory
/bin/bash: line 0: cd: external/apache-harmony//home/ari/android/system/external/apache-harmony: No such file or directory
/bin/bash: line 0: cd: external/apache-harmony//home/ari/android/system/external/apache-harmony: No such file or directory
(/home/ari/android/system/external/apache-harmony does exist) and
Code:
/bin/bash: line 0: cd: libcore//home/ari/android/system/libcore: No such file or directory
/bin/bash: line 0: cd: libcore//home/ari/android/system/libcore: No such file or directory
/bin/bash: line 0: cd: libcore//home/ari/android/system/libcore: No such file or directory
/bin/bash: line 0: cd: libcore//home/ari/android/system/libcore: No such file or directory
find: `src': No such file or directory
I think this could be related to a repo sync problem I had/have where it couldn't download anything properly with lots of
Code:
Connection reset by peer
errors, although I think it has now synced (df -h shows 15GB). I also ran
Code:
repo forall -c "git fsck && git gc"
which "repairs" each repository, and that didn't give any errors.
Can anyone help with getting this to build?
EDIT: I found a post on the Android Building mailing list that was similar, and the suggestion to run
Code:
export CDPATH=""
(previously, $CDPATH=".")
got CM to build much further than before. No idea how this works, but it does.
However there are now more errors later during the build, e.g.
Code:
make: *** No rule to make target `/media/build/android/out/system/target/product/i9100/obj/lib/libTVOut.so', needed by `/media/build/android/out/system/target/product/i9100/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver'. Stop.
It seems to have built a .zip flashable file now:
Code:
Package complete: /media/build/android/out/system/target/product/i9100/cm-10.1-20130121-UNOFFICIAL-i9100.zip
md5: f9fe076a6f0dfe140329e94ce6aa1867
Creating kernel zip...
Bootimage found...
No instructions to create out/target/product/i9100/kernel-cm-10.1-20130121-i9100-signed.zip... skipping.
Elapsed: 47 min(s) 20 sec(s)
but it says it can't create a kernel zip?

[Q] Building CM from source problem (lunch not found)

I'm trying to port CM10 to my Pipo M8 RK3066 tablet.
I have followed alot of guides but I need some help: (I will edit the thread with all the problem I encounter).
Kubuntu 12.10 x64 running on VM
Here is what I did so far:
Android-SDK is installed in /opt/...
Code:
$ mkdir -p ~/bin
$ mkdir -p ~/android/system
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
export PATH=${PATH}:~/bin
$ cd ~/android/system/
$ repo init -u git://github.com/CyanogenMod/android.git -b jellybean
$ repo sync -j4
$ cd ~/android/system/vendor/cm
$ ./get-prebuilts
$ make -j4 otatools
+Extract boot.img from running device with dump_image
$ build/tools/device/mkvendor.sh pipo m8 /your/path/to/my/boot.img
lunch was not found, fixed with:
Code:
$ . build/envsetup.sh
New problem:
Code:
Construct recovery from boot
mkdir -p /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/
target Jar: bouncycastle (/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar)
PATH=/home/mexus/android/system/out/host/linux-x86/bin:$PATH /home/mexus/android/system/out/host/linux-x86/bin/imgdiff /home/mexus/android/system/out/target/product/m8/boot.img /home/mexus/android/system/out/target/product/m8/recovery.img /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
target SharedLib: libutils (/home/mexus/android/system/out/target/product/m8/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so)
[COLOR="Red"]Error: footer size 2130427508 != decompressed size 71179
failed to break apart source image[/COLOR]
make: *** [/home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Error 1
make: *** Waiting for unfinished jobs....
'/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.dex' as 'classes.dex'...
[email protected]:~/android/system$
If it is asking you to install python then I would do so because python is one of the required packages for building Android. Make sure you use python version 2.6.x-2.7.x not python version 3 because it is not compatible with the current build system. Also can you post a log of the error message your getting?
Sent from my SCH-I535 using xda premium
shimp208 said:
If it is asking you to install python then I would do so because python is one of the required packages for building Android. Make sure you use python version 2.6.x-2.7.x not python version 3 because it is not compatible with the current build system. Also can you post a log of the error message your getting?
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
python is installed. I'm talking about python-lunch (it's nowhere mentioned in the guides)
mexusbg said:
python is installed. I'm talking about python-lunch (it's nowhere mentioned in the guides)
Click to expand...
Click to collapse
You should install it anyway.
Sent with my Sonic Screwdriver
Wolf Pup said:
You should install it anyway.
Sent with my Sonic Screwdriver
Click to expand...
Click to collapse
After python-lunch is installed:
Code:
mexu[email protected]:~/android/system$ build/tools/device/mkvendor.sh pipo m8 /home/mexus/boot.img
Arguments: pipo m8 /home/mexus/boot.img
Output will be in /home/mexus/android/system/device/pipo/m8
7908 blocks
Done!
Use the following command to set up your build environment:
lunch full_m8-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh full_m8-eng
[U][COLOR="Red"][email protected]:~/android/system$ lunch full_m8-eng
No such file: full_m8-eng[/COLOR][/U]
[email protected]:~/android/system$
lunch was not found, fixed with:
Code:
$ . build/envsetup.sh
New problem:
Code:
Construct recovery from boot
mkdir -p /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/
target Jar: bouncycastle (/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar)
PATH=/home/mexus/android/system/out/host/linux-x86/bin:$PATH /home/mexus/android/system/out/host/linux-x86/bin/imgdiff /home/mexus/android/system/out/target/product/m8/boot.img /home/mexus/android/system/out/target/product/m8/recovery.img /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
target SharedLib: libutils (/home/mexus/android/system/out/target/product/m8/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so)
[COLOR="Red"]Error: footer size 2130427508 != decompressed size 71179
failed to break apart source image[/COLOR]
make: *** [/home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Error 1
make: *** Waiting for unfinished jobs....
'/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.dex' as 'classes.dex'...
[email protected]:~/android/system$
mexusbg said:
lunch was not found, fixed with:
Code:
$ . build/envsetup.sh
New problem:
Code:
Construct recovery from boot
mkdir -p /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/
target Jar: bouncycastle (/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/javalib.jar)
PATH=/home/mexus/android/system/out/host/linux-x86/bin:$PATH /home/mexus/android/system/out/host/linux-x86/bin/imgdiff /home/mexus/android/system/out/target/product/m8/boot.img /home/mexus/android/system/out/target/product/m8/recovery.img /home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
target SharedLib: libutils (/home/mexus/android/system/out/target/product/m8/obj/SHARED_LIBRARIES/libutils_intermediates/LINKED/libutils.so)
[COLOR="Red"]Error: footer size 2130427508 != decompressed size 71179
failed to break apart source image[/COLOR]
make: *** [/home/mexus/android/system/out/target/product/m8/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p] Error 1
make: *** Waiting for unfinished jobs....
'/home/mexus/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.dex' as 'classes.dex'...
[email protected]:~/android/system$
Click to expand...
Click to collapse
hi
could you resolve above error
if yes then how

Help with zImage kernel compilation

This is my first time trying to compile my own kernel, i am dealing some problems and need help
i get these messages when executing the commang "make"
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC kernel/bounds.s
CC scripts/mod/empty.o
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
arm-linux-gnueabi-gcc: error trying to exec 'cc1make[1]: *** [kernel/bounds.s] Error 1
': execvp: make: *** [prepare0] Error 2
make: No such file or directory
*** Waiting for unfinished jobs....make[2]:
*** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
i red quite many webpages and i follow this guides
http://lanrat.com/how-to-compile-a-linux-kernel-for-android/
http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/
i am running ubuntu 14.04 lts 64 bit. i am trying to compile kernel 2.6.32 for s3c6410. old chipset but even if brick it i do not care much
any help ?
spkraul said:
This is my first time trying to compile my own kernel, i am dealing some problems and need help
i get these messages when executing the commang "make"
CHK include/linux/version.h
SYMLINK include/asm -> include/asm-arm
make[1]: `include/asm-arm/mach-types.h' is up to date.
CHK include/linux/utsrelease.h
CC kernel/bounds.s
CC scripts/mod/empty.o
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
arm-linux-gnueabi-gcc: error trying to exec 'cc1make[1]: *** [kernel/bounds.s] Error 1
': execvp: make: *** [prepare0] Error 2
make: No such file or directory
*** Waiting for unfinished jobs....make[2]:
*** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
i red quite many webpages and i follow this guides
http://lanrat.com/how-to-compile-a-linux-kernel-for-android/
http://hertaville.com/2012/09/28/development-environment-raspberry-pi-cross-compiler/
i am running ubuntu 14.04 lts 64 bit. i am trying to compile kernel 2.6.32 for s3c6410. old chipset but even if brick it i do not care much
any help ?
Click to expand...
Click to collapse
Which toolchain and version of the toolchain are you using? I would recommend checking out this information on someone who ran into the same problem as you and how they fixed it. Let me know if you still have questions.
i execute <<cd linux>>, <<make mrproper>>, <<make V=1 all>> and i get the following messages
[email protected]:~$ cd linux
bash: cd: linux: No such file or directory
[email protected]:~$ make mrproper
make: *** No rule to make target `mrproper'. Stop.
[email protected]:~$ cd /home/alex/o2droid/kern_2.6.32
[email protected]:~/o2droid/kern_2.6.32$ make prproper
make: *** No rule to make target `prproper'. Stop.
[email protected]:~/o2droid/kern_2.6.32$ make V=1 all
set -e; : ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE 132640; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))' < /home/alex/o2droid/kern_2.6.32/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else : ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi
make -f scripts/Makefile.build obj=arch/arm/tools include/asm-arm/mach-types.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
rm -f include/config/kernel.release
echo 2.6.32.9-00163-g4c4becf-dirty > include/config/kernel.release
set -e; : ' CHK include/linux/utsrelease.h'; mkdir -p include/linux/; if [ `echo -n "2.6.32.9-00163-g4c4becf-dirty" | wc -c ` -gt 64 ]; then echo '"2.6.32.9-00163-g4c4becf-dirty" exceeds 64 characters' >&2; exit 1; fi; (echo \#define UTS_RELEASE \"2.6.32.9-00163-g4c4becf-dirty\" < include/config/kernel.release > include/linux/utsrelease.h.tmp; if [ -r include/linux/utsrelease.h ] && cmp -s include/linux/utsrelease.h include/linux/utsrelease.h.tmp; then rm -f include/linux/utsrelease.h.tmp; else : ' UPD include/linux/utsrelease.h'; mv -f include/linux/utsrelease.h.tmp include/linux/utsrelease.h; fi
set -e; if [ -L include/asm ]; then asmlink=`readlink include/asm | cut -d '-' -f 2`; if [ "$asmlink" != "arm" ]; then echo "ERROR: the symlink include/asm points to asm-$asmlink but asm-arm was expected"; echo " set ARCH or save .config and run 'make mrproper' to fix it"; exit 1; fi; test -e $asmlink || rm include/asm; elif [ -d include/asm ]; then echo "ERROR: include/asm is a directory but a symlink was expected"; exit 1; fi
if [ ! -L include/asm ]; then : ' SYMLINK include/asm -> include/asm-arm'; if [ ! -d include/asm-arm ]; then mkdir -p include/asm-arm; fi; ln -fsn asm-arm include/asm; fi
mkdir -p .tmp_versions ; rm -f .tmp_versions/*
make -f scripts/Makefile.build obj=scripts/basic
(cat /dev/null; ) > scripts/basic/modules.order
make -f scripts/Makefile.build obj=.
(cat /dev/null; ) > modules.order
mkdir -p kernel/
/opt/cross/bin/arm-linux-gnueabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem include -Iinclude -I/home/alex/o2droid/kern_2.6.32/arch/arm/include -include include/linux/autoconf.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-s3c6400/include -Iarch/arm/mach-s3c6410/include -Iarch/arm/plat-s3c64xx/include -Iarch/arm/plat-s3c/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -msoft-float -Uarm -fomit-frame-pointer -g -O3 -marm -march=armv6zk -mfpu=vfp -mtune=arm1176jzf-s -mtune=arm1136j-s -mfloat-abi=softfp -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(bounds)" -D"KBUILD_MODNAME=KBUILD_STR(bounds)" -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
i am using toolchain arm-eabi 4.6
i red the documentation
i have nothing like <<cc1>> under usr/bin
I don't have a /usr/local/libexec directory
i installed anything about cc1 from package manager and still nothing changed.
i did something wrong with <<make menuconfig>> or else ?
i also follow this guide https://github.com/argentinos/o2droid/tree/i8000/kern_2.6.32
i use the wrong toolchain ?
spkraul said:
i am using toolchain arm-eabi 4.6
i red the documentation
i have nothing like <<cc1>> under usr/bin
I don't have a /usr/local/libexec directory
i installed anything about cc1 from package manager and still nothing changed.
i did something wrong with <<make menuconfig>> or else ?
i also follow this guide https://github.com/argentinos/o2droid/tree/i8000/kern_2.6.32
i use the wrong toolchain ?
Click to expand...
Click to collapse
If you follow the guide in the repository that is meant for a pure Linux kernel, what def config under arch/arm/configs did you use?
Try using a procedure similar to the following:
Code:
export TOP= [where you installed the toolchain or top of android AOSP code base]
export PATH=$TOP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH (use corresponding arm-eabi bin path)
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
make NAMEOFDEVICE_defconfig
make -jx (Where x is the number of jobs you want -j4 is a safe option)
i followed your commands and no result yet. same problems
i checked this guide http://ubuntuforums.org/showthread.php?t=2213325
and got the following
[email protected]:~$ arm-none-linux-gnueabi-gcc -print-prog-name=cc1
arm-none-linux-gnueabi-gcc: command not found
[email protected]:~$ arm-linux-gnueabi-gcc -print-prog-name=cc1
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/cc1
[email protected]:~$ arm-linux-gnueabihf-gcc -print-prog-name=cc1
The program 'arm-linux-gnueabihf-gcc' is currently not installed. You can install it by typing:
sudo apt-get install gcc-arm-linux-gnueabihf
[email protected]:~$ dpkg -l | grep '\<gcc'
ii gcc 4:4.8.2-1ubuntu6 amd64 GNU C compiler
ii gcc-4.6 4.6.4-6ubuntu2 amd64 GNU C compiler
ii gcc-4.6-base:amd64 4.6.4-6ubuntu2 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.6-base:i386 4.6.4-6ubuntu2 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-4.6-multilib 4.6.4-6ubuntu2 amd64 GNU C compiler (multilib files)
ii gcc-4.7-arm-linux-gnueabi 4.7.3-12ubuntu1cross1.85 amd64 GNU C compiler
ii gcc-4.7-arm-linux-gnueabi-base 4.7.3-12ubuntu1cross1.85 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8 4.8.2-19ubuntu1 amd64 GNU C compiler
ii gcc-4.8-arm-linux-gnueabihf-base 4.8.2-16ubuntu4cross0.11 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8-base:amd64 4.8.2-19ubuntu1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8-base:i386 4.8.2-19ubuntu1 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-4.8-multilib 4.8.2-19ubuntu1 amd64 GNU C compiler (multilib files)
ii gcc-4.9-base:amd64 4.9-20140406-0ubuntu1 amd64 GCC, the GNU Compiler Collection (base package)
ii gcc-4.9-base:i386 4.9-20140406-0ubuntu1 i386 GCC, the GNU Compiler Collection (base package)
ii gcc-arm-linux-gnueabi 4:4.7.2-1 amd64 The GNU C compiler for armel architecture
ii gcc-multilib 4:4.8.2-1ubuntu6 amd64 GNU C compiler (multilib files)
i am using omniaII_defconfig
upd... i am searching and testing possible solutions, but nothing is working. i stuck on this mistake. cc1 exists on my pc and is executable. i also tried another toolchain 4.4.3 which is considered more compatible, but stuck on the same error again. really driving me crazy. i have too much job to do on the kernel improvement, but if i will never be able to compile it it doasn't worth trying. i appreciate your help. any ideas ?
spkraul said:
upd... i am searching and testing possible solutions, but nothing is working. i stuck on this mistake. cc1 exists on my pc and is executable. i also tried another toolchain 4.4.3 which is considered more compatible, but stuck on the same error again. really driving me crazy. i have too much job to do on the kernel improvement, but if i will never be able to compile it it doasn't worth trying. i appreciate your help. any ideas ?
Click to expand...
Click to collapse
After looking more into it I noticed there is a script included in the files for building the kernel called make_kernel, you should be able to build the kernel running the script, "./make_kernel -k" with the -k option being defined by the script to make the kernel. You may have to tweak the script to suite your build environment.
thanks a lot. i did run the script many times, with many ways. i see some compilation being done, but i always after a few minutes i end with the message "Error ... kernel not compiled!"
i guess some code errors cause it, but how to locate them and fix them under millions of programming lines ?
i red that before being able to compile a kernel and before this kernle is funtional you must fix many errors and deal many problems, but i am not sure how difficult this is going to be in my case.
i always get messages of this type " warning: variable ‘*’ set but not used [-Wunused-but-set-variable]
"
you follow any specific procedure to deal with these errors ?
spkraul said:
thanks a lot. i did run the script many times, with many ways. i see some compilation being done, but i always after a few minutes i end with the message "Error ... kernel not compiled!"
i guess some code errors cause it, but how to locate them and fix them under millions of programming lines ?
i red that before being able to compile a kernel and before this kernle is funtional you must fix many errors and deal many problems, but i am not sure how difficult this is going to be in my case.
i always get messages of this type " warning: variable ‘*’ set but not used [-Wunused-but-set-variable]
"
you follow any specific procedure to deal with these errors ?
Click to expand...
Click to collapse
In the error messages you will see what file the error is in and which line the error occurs going to that file and line(s) the error occurred at is the best place to start. Instead of using the script take the commands in the script and do them manually in the order the script would execute them in, until you get an error you can troubleshoot or it compiles successfully.

[Q] ANDROID BUILD ERROR while building ota zip

Hello everyone so i'm a developer and i'm STUCK. I have spent countless hours trying to figure out what is causing this.. I'm at my end. If someone knows how to fix this error PLEASE let me know...If you even just have a idea or something for me to try PLEASE post it. :fingers-crossed:
thank you in advance
I posted a pic of the error but here is another look at the error
Package OTA: //out/target/product/vs980/giggle_vs980-ota-eng.gigglekat.zip
MKBOOTIMG=device/lge/g2-common/releasetools/mkbootimg.mk \
./build/tools/releasetools/ota_from_target_files -v \
-p /home/gigglekat/jenkins/giggle/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=vs980,g2,galbi \
\
\
//out/target/product/vs980/obj/PACKAGING/target_files_intermediates/giggle_vs980-target_files-eng.gigglekat.zip /home/gigglekat/jenkins/giggle/out/target/product/vs980/giggle_vs980-ota-eng.gigglekat.zip
unzipping target target-files...
running: unzip -o -q /out/target/product/vs980/obj/PACKAGING/target_files_intermediates/giggle_vs980-target_files-eng.gigglekat.zip -d /tmp/targetfiles-_hgXek
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1172, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1115, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "//build/tools/releasetools/common.py", line 156, in LoadInfoDict
d["build.prop"] = LoadBuildProp(zip)
File "/build/tools/releasetools/common.py", line 170, in LoadBuildProp
name, value = line.split("=", 1)
ValueError: need more than 1 value to unpack

How to enable sparse image in android

Hello All ,
When I build android lollipop 5.0.0.1 , at the end system_sparse.img is not converted to system.img ,
following error is show
if [ true = true ]; then \
simg2img out/target/product/evk_6sl/system_sparse.img out/target/product/evk_6sl/system.img; \
fi
/bin/bash: line 1: simg2img: command not found
make: *** [out/target/product/evk_6sl/system_sparse.img] Error 127
make: *** Deleting file `out/target/product/evk_6sl/system_sparse.img'
simg2img is found in the path /out/host/linux-x86/bin/simg2img
AND /out/host/linux-x86/bin/ is export to PATH environment variable.
Still simg2img command is not found ....?
Please help me sort out this issue.
Regards,
Kishore P

Categories

Resources