[HELP] Error building aospa - Android Q&A, Help & Troubleshooting

I've never faced these issues before.
They happen at kernel compiling and at the end when it creates the otapackage, can you help me please? I'm stuck with this...
KERNEL (This log is from another pc but it is as the same as mine):
Code:
make[1]: se sale del directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
make -C kernel/samsung/u8500 O=/home/t4n017/android/PA/out/target/product/janice/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/t4n017/android/PA/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" dtbs
make[1]: se ingresa al directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
make[3]: No se hace nada para «arch/arm/boot/dtbs».
make[1]: se sale del directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
make -C kernel/samsung/u8500 O=/home/t4n017/android/PA/out/target/product/janice/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/t4n017/android/PA/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" modules
make[1]: se ingresa al directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
GEN /home/t4n017/android/PA/out/target/product/janice/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/t4n017/android/PA/kernel/samsung/u8500 as source for kernel
CHK include/generated/utsrelease.h
make[3]: «include/generated/mach-types.h» está actualizado.
CALL /home/t4n017/android/PA/kernel/samsung/u8500/scripts/checksyscalls.sh
.config:7359:warning: symbol value 'm' invalid for KVM
make[6]: *** [silentoldconfig] Error 1
make[5]: *** [silentoldconfig] Error 2
Usage: /home/t4n017/android/PA/kernel/samsung/u8500/scripts/setlocalversion [--save-scmversion] [-s srctree] [-t ref_tag]
Building modules, stage 2.
MODPOST 7 modules
make[1]: se sale del directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
make -C kernel/samsung/u8500 O=/home/t4n017/android/PA/out/target/product/janice/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE=" /home/t4n017/android/PA/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" modules_install
make[1]: se ingresa al directorio «/home/t4n017/android/PA/kernel/samsung/u8500»
OTAPACKAGE:
Code:
using device-specific extensions in device/samsung/u8500-common
using custom bootimage makefile device/samsung/u8500-common/shbootimg.mk...
using prebuilt recovery.img...
using custom bootimage makefile device/samsung/u8500-common/shbootimg.mk...
using prebuilt boot.img...
Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 1117, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 1085, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 538, in WriteFullOTAPackage
Item.Get("system").SetPermissions(script)
File "./build/tools/releasetools/ota_from_target_files", line 315, in SetPermissions
recurse(self, (-1, -1, -1, -1, None, None))
File "./build/tools/releasetools/ota_from_target_files", line 307, in recurse
recurse(i, current)
File "./build/tools/releasetools/ota_from_target_files", line 307, in recurse
recurse(i, current)
File "./build/tools/releasetools/ota_from_target_files", line 313, in recurse
item.mode, item.selabel, item.capabilities)
File "/home/mauro/aospa/build/tools/releasetools/edify_generator.py", line 284, in SetPermissions
'"capabilities", %s' % (fn, uid, gid, mode, capabilities)
TypeError: %d format: a number is required, not NoneType
make: *** [/home/mauro/aospa/out/target/product/janice/pa_janice-ota-eng.mauro-ota-eng.mauro.zip] Errore 1

Related

[Q] Compiling CM kernel error

Im trying to compile a CM kernel for my device using this guide:
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
I run into this error:
[email protected]:~/android/kernel/cm-kernel$ make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC scripts/mod/empty.o
cc1: error: unrecognized command line option ‘-mlittle-endian’
cc1: error: unrecognized command line option ‘-mapcs’
cc1: error: unrecognized command line option ‘-mno-sched-prolog’
scripts/mod/empty.c:1:0: error: unknown ABI (apcs-gnu) for -mabi= switch
scripts/mod/empty.c:1:0: error: bad value (armv4t) for -march= switch
scripts/mod/empty.c:1:0: error: bad value (arm9tdmi) for -mtune= switch
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android/kernel/cm-kernel$
I did have a look in the scripts/mod/empty.c file. Only line of txt in there is:
/* empty file to figure out endianness / word size */
my config file: http://www.mediafire.com/?5kq9m6vecl22rzx
Someone a idee how to fix this problem?

Fuse-linker fail?

Hi everyone, i know this is android "development" thing, but this is not appropriate imho for its section, i prefer to write here because this is problem releated to android platform and not to real development.
i'm going to compile kernel for my device ( its useless but anyway its i9003 GalaxySL ICS ), i read and follow here:
source.android.com/source/initializing.html
but when i'm going to compile i get this error
Code:
make: *** [scripts] Errore 2
make: *** Attesa per i processi non terminati....
arm-eabi-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
make[1]: *** [kernel/bounds.s] Errore 1
make: *** [prepare0] Errore 2
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/bin2c
HOSTCC scripts/conmakehash
CC scripts/mod/empty.o
arm-eabi-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
make[2]: *** [scripts/mod/empty.o] Errore 1
make[1]: *** [scripts/mod] Errore 2
make[1]: *** Attesa per i processi non terminati....
make: *** [scripts] Errore 2
cp: impossibile eseguire stat di "arch/arm/boot/zImage": File o directory non esistente
CLEAN /home/scfboy/Project/android_kernel_samsung_latona
CLEAN .tmp_versions
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN scripts
CLEAN include/config include/generated
CLEAN .config include/linux/version.h
Fuse-linker is a option of Gcc that require LLM ( right? )
anyway know how solve this? i'm on virtualbox under Ubuntu 10.04x64
PS: I'm using this toolchain, linaro downloaded here : github.com/DooMLoRD/android_prebuilt_toolchains
thanks
did you ever solve this problem?

compiling dirty unicorn error

need help in compiling dirty unicorn from source. curruntly have the build error below....any help as to what i am doing wrong?
Code:
Gyp action: third_party_WebKit_Source_core_core_derived_sources_gyp_make_core_derived_sources_target_MakeTokenMatcherForViewport (/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink/HTMLMetaElement.cpp)
Gyp action: third_party_WebKit_Source_core_core_derived_sources_gyp_make_core_derived_sources_target_HTMLElementLookupTrie (/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink/HTMLElementLookupTrie.cpp)
mkdir -p /home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink; cd external/chromium_org/third_party/WebKit/Source/core; python ../build/scripts/rule_bison.py css/CSSGrammar.y "/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink" bison
mkdir -p /home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink; cd external/chromium_org/third_party/WebKit/Source/core; python ../build/scripts/rule_bison.py xml/XPathGrammar.y "/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink" bison
Gyp timestamp: /home/edwin270/du/out/target/product/i777/obj/GYP/third_party_icu_icui18n_gyp_intermediates/icui18n.stamp
Gyp timestamp: /home/edwin270/du/out/target/product/i777/obj/GYP/third_party_icu_icuuc_gyp_intermediates/icuuc.stamp
Traceback (most recent call last):
Traceback (most recent call last):
File "../build/scripts/rule_bison.py", line 75, in <module>
File "../build/scripts/rule_bison.py", line 75, in <module>
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
returnCode = subprocess.call([bisonExe, '-d', '-p', prefix, inputFile, '-o', outputCpp])
File "/usr/lib/python2.7/subprocess.py", line 522, in call
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
raise child_exception
OSErrorOSError: : [Errno 2] No such file or directory[Errno 2] No such file or directory
make: *** [/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink/CSSGrammar.cpp] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/edwin270/du/out/target/product/i777/obj/GYP/shared_intermediates/blink/XPathGrammar.cpp] Error 1
target StaticLib: third_party_WebKit_Source_heap_blink_heap_gyp (/home/edwin270/du/out/target/product/i777/obj/STATIC_LIBRARIES/third_party_WebKit_Source_heap_blink_heap_gyp_intermediates/third_party_WebKit_Source_heap_blink_heap_gyp.a)
target StaticLib: third_party_libwebp_libwebp_dec_gyp (/home/edwin270/du/out/target/product/i777/obj/STATIC_LIBRARIES/third_party_libwebp_libwebp_dec_gyp_intermediates/third_party_libwebp_libwebp_dec_gyp.a)

[Q] Syntax error: "(" unexpected scripts/kconfig/conf --silentoldconfig Kconfig

[Q] Syntax error: "(" unexpected scripts/kconfig/conf --silentoldconfig Kconfig
Trying to compile kernel for my tab but gettings this error
Tried make clean
Tried mrproper
Also checked toolchain path 100 times
Code:
[email protected](none) ~/kernel $ make willow_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
#
# configuration written to .config
#
[email protected](none) ~/kernel $ export CROSS_COMPILE=/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
[email protected](none) ~/kernel $ export ARCH=arm
[email protected](none) ~/kernel $ make -j4
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
ALPS IF Driver build option : -DACC_10BIT -DMAG_15BIT
CC scripts/mod/empty.o
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
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
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Any?
blttalas said:
Trying to compile kernel for my tab but gettings this error
Tried make clean
Tried mrproper
Also checked toolchain path 100 times
Code:
[email protected](none) ~/kernel $ make willow_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
#
# configuration written to .config
#
[email protected](none) ~/kernel $ export CROSS_COMPILE=/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-
[email protected](none) ~/kernel $ export ARCH=arm
[email protected](none) ~/kernel $ make -j4
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/media/video/samsung/mali/Kconfig:18:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:22:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:26:warning: choice value used outside its choice group
drivers/media/video/samsung/mali/Kconfig:30:warning: choice value used outside its choice group
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
ALPS IF Driver build option : -DACC_10BIT -DMAG_15BIT
CC scripts/mod/empty.o
/home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: 1: /home/pi/toolchains/arm-eabi-linaro-4.6.2/bin/arm-eabi-gcc: Syntax error: "(" unexpected
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
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Try to use another versions of toolchain.

Trying to build a kernel

I am trying to build a kernel for moto g 2014 based on cm source.
Code:
[email protected]:~/kernelmoto$ export ARCH=arm
[email protected]:~/kernelmoto$ export CROSS_COMPILER=~/android/arm-cortex_a7-linux/arm-cortex_a7-linux-gnueabihf-
[email protected]:~/kernelmoto$ make titan_defconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
#
# configuration written to .config
#
[email protected]:~/kernelmoto$ make -j6
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
CHK include/linux/version.h
CC scripts/mod/empty.o
gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mno-thumb-interwork’
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:515: recipe for target 'scripts' failed
make: *** [scripts] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/kernelmoto$
what am I missing, I am using the linaro toolchain. How do I fix these errors?

Categories

Resources