[Q] /bin/sh: -c: line 0: syntax error near unexpected token `(' - Android Q&A, Help & Troubleshooting

Hey guys i'm so close to getting a complete build on a build but it fails to build the kernel :/. The error:
Code:
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `set -e; echo ' CC scripts/mod/empty.o'; /home/zohaib/android/kernel/htc/msm8660/scripts/gcc-wrapper.py /home/zohaib/android/prebuilts/misc/linux-x86/ccache/ccache /home/zohaib/android/prebuilt/linux-x86/toolchain/linaro-arm-cortex-a8/bin/arm-eabi-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem ccache: FATAL: /home/zohaib/android/prebuilt/linux-x86/toolchain/linaro-arm-cortex-a8/bin/arm-eabi-gcc: execv returned (No such file or directory) -I/home/zohaib/android/kernel/htc/msm8660/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/home/zohaib/android/kernel/htc/msm8660/include -include include/generated/autoconf.h -I/home/zohaib/android/kernel/htc/msm8660/scripts/mod -Iscripts/mod -D__KERNEL__ -mlittle-endian -I/home/zohaib/android/kernel/htc/msm8660/arch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Wno-unused-variable -O3 -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -march=armv7-a -mfpu=neon -ftree-vectorize -funswitch-loops -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -marm -march=armv7-a -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o /home/zohaib/android/kernel/htc/msm8660/scripts/mod/empty.c; scripts/basic/fixdep scripts/mod/.empty.o.d scripts/mod/empty.o '/home/zohaib/android/kernel/htc/msm8660/scripts/gcc-wrapper.py /home/zohaib/android/prebuilts/misc/linux-x86/ccache/ccache /home/zohaib/android/prebuilt/linux-x86/toolchain/linaro-arm-cortex-a8/bin/arm-eabi-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -isystem ccache: FATAL: /home/zohaib/android/prebuilt/linux-x86/toolchain/linaro-arm-cortex-a8/bin/arm-eabi-gcc: execv returned (No such file or directory) -I/home/zohaib/android/kernel/htc/msm8660/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/home/zohaib/android/kernel/htc/msm8660/include -include include/generated/autoconf.h -I/home/zohaib/android/kernel/htc/msm8660/scripts/mod -Iscripts/mod -D__KERNEL__ -mlittle-endian -I/home/zohaib/android/kernel/htc/msm8660/arch/arm/mach-msm/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Wno-unused-variable -O3 -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -march=armv7-a -mfpu=neon -ftree-vectorize -funswitch-loops -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -marm -march=armv7-a -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(empty)" -D"KBUILD_MODNAME=KBUILD_STR(empty)" -c -o scripts/mod/empty.o /home/zohaib/android/kernel/htc/msm8660/scripts/mod/empty.c' > scripts/mod/.empty.o.tmp; rm -f scripts/mod/.empty.o.d; mv -f scripts/mod/.empty.o.tmp scripts/mod/.empty.o.cmd'
make[4]: *** [scripts/mod/empty.o] Error 1
make[3]: *** [scripts/mod] Error 2
make[2]: *** [scripts] Error 2
make[2]: *** Waiting for unfinished jobs....
target thumb C++: libv8 <= external/v8/src/contexts.cc
target thumb C++: libv8 <= external/v8/src/conversions.cc
target thumb C++: libv8 <= external/v8/src/counters.cc
target thumb C++: libv8 <= external/v8/src/cpu-profiler.cc
target thumb C++: libv8 <= external/v8/src/data-flow.cc
target thumb C++: libv8 <= external/v8/src/date.cc
target thumb C++: libv8 <= external/v8/src/dateparser.cc
target thumb C++: libv8 <= external/v8/src/debug.cc
target thumb C++: libv8 <= external/v8/src/debug-agent.cc
target thumb C++: libv8 <= external/v8/src/deoptimizer.cc
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/zohaib/android/kernel/htc/msm8660'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
[email protected]:~/android#
Any help is greatly appreciated

Related

need help compiling

hey guys i really need some help, i am somewhat new too compiling a kernel from scratch and i keep running into some error's. any advice would be appreciated. btw i am compiling for a MIPS platform.
this is what im getting:
frameworks/base/tools/aidl/aidl_language_l.l:54: warning, rule cannot be matched
build/tools/merge-event-log-tags.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
touch out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.hpp
echo '#ifndef 'aidl_language_y_h > out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
Notice file: system/core/libzipfile/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libzipfile.a.txt
Notice file: external/tinyxml/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libtinyxml.a.txt
Notice file: external/zlib/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libunz.a.txt
echo '#define 'aidl_language_y_h >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
cat out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.hpp >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
echo '#endif' >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
rm -f out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.hpp
Notice file: system/core/adb/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/adb.txt
host Java: apkcheck (out/host/common/obj/JAVA_LIBRARIES/apkcheck_intermediates/classes)
Notice file: external/elfcopy/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libelfcopy.a.txt
Notice file: external/bzip2/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libbz.a.txt
host Java: cfassembler (out/host/common/obj/JAVA_LIBRARIES/cfassembler_intermediates/classes)
host Java: dexdeps (out/host/common/obj/JAVA_LIBRARIES/dexdeps_intermediates/classes)
target Generated: emulator <= external/qemu/qemu-options.hx
target Generated: emulator <= external/qemu/qemu-monitor.hx
target Generated: emulator <= external/qemu/gdb-xml/arm-core.xml
target Generated: emulator <= external/qemu/android/avd/hardware-properties.ini
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/emulator.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-memcheck.a.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-hw.a.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-mips.a.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-tcg.a.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-elff.a.txt
prebuilt/linux-x86/toolchain/mips-4.4.3/bin/mips-linux-gnu-gcc -fno-exceptions -Wno-multichar -Ulinux -U__unix -U__unix__ -fpic -ffunction-sections -funwind-tables -EL -march=mips32r2 -mtune=mips32r2 -mips32r2 -msoft-float -include system/core/include/arch/linux-mips/AndroidConfig.h -I system/core/include/arch/linux-mips/ -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing=2 -finline-functions -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -o out/target/product/generic/obj/lib/crtbegin_dynamic.o -c bionic/libc/arch-mips/bionic/crtbegin_dynamic.S
Notice file: bionic/libdl/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/lib/libdl.so.txt
prebuilt/linux-x86/toolchain/mips-4.4.3/bin/mips-linux-gnu-gcc -fno-exceptions -Wno-multichar -Ulinux -U__unix -U__unix__ -fpic -ffunction-sections -funwind-tables -EL -march=mips32r2 -mtune=mips32r2 -mips32r2 -msoft-float -include system/core/include/arch/linux-mips/AndroidConfig.h -I system/core/include/arch/linux-mips/ -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing=2 -finline-functions -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -o out/target/product/generic/obj/lib/crtend_android.o -c bionic/libc/arch-mips/bionic/crtend.S
/home/zacwhite15/cruzmips/prebuilt/linux-x86/toolchain/mips-4.4.3/bin/../libexec/gcc/mips-linux-gnu/4.4.3/cc1: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
/home/zacwhite15/cruzmips/prebuilt/linux-x86/toolchain/mips-4.4.3/bin/../libexec/gcc/mips-linux-gnu/4.4.3/cc1: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
make: *** [out/target/product/generic/obj/lib/crtend_android.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/generic/obj/lib/crtbegin_dynamic.o] Error 1
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

[GUIDE] How to build CM9/CM10/CM10.1 for Xperia P,U,Sola,Go and use Linaro toolchain

DISCLAMER
Although the procedures in this guide were tested on my pc/phone and produced a working build on the xperia U, I take no responsibility for any consequences derived from their use.
This guide applies to Ubuntu 13.04 Raring Ringtail 64 bit. Do not use 32 Bit.
If you want to use another ubuntu version, some things might be a little different. Just search on xda and you will find all the instructions that you need to complete the setup.
1) SET UP THE BUILD ENVIRONMENT
Remove openJDK and install Java 6 jdk. Open a terminal and type:
Code:
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
This will uninstall openJDK.
Code:
sudo add-apt-repository ppa:webupd8team/java
Adds a PPA to your system, needed to download java.
Code:
sudo apt-get update && sudo apt-get install oracle-java6-installer
Download and installs java!
To make sure the correct version of Java is activated, run the following at the Terminal prompt:
Code:
java -version
You should see something like that:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
Now type:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python lzop
This will install the needed packages.
When done, do this:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Now, install the repo binary:
Code:
mkdir ~/bin && curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo && chmod a+x ~/bin/repo
Edit .bashrc:
Code:
sudo nano ~/.bashrc
At the bottom of the file, add the following line:
Code:
export PATH=~/bin:$PATH
Save it (In nano type Ctrl-O and then Enter, then Ctrl-X to exit back to a prompt).
Restart bash:
Code:
source ~/.bashrc
From now the guide is for cm9/10 only, if you want to build cm10.1 look at 3rd post.
2) DOWNLOAD THE SOURCES:
Code:
mkdir ~/cyanogenmod
cd ~/cyanogenmod
This creates a folder named "cyanogenmod" and opens it.
Initialize the repo:
If you're building cm10 -
Code:
repo init -u git://github.com/CyanogenMod/android.git -b jellybean
Or for cm9 -
Code:
repo init -u git://github.com/CyanogenMod/android.git -b ics
Download time!
Code:
repo sync
It will download about 10gb of data, so be patient!
Download the prebuilts:
Code:
~/cyanogenmod/vendor/cm/get-prebuilts
Download device specific repos:
Code:
. build/envsetup.sh && breakfast name_of_device
Instead of "name_of_device" use "kumquat" for xperia U, "nypon" for xperia P, "pepper" for Sola and "lotus" for Go.
Download sony's prebuilts:
Open cyanogenmod folder, press ctrl+H to show hidden files, open .repo, open local_manifests and edit roomservice.xml:
Add this line:
for cm10 -
Code:
<project name="TheMuppets/proprietary_vendor_sony" path="vendor/sony" remote="github" revision="jellybean"/>
for cm9 -
Code:
<project name="TheMuppets/proprietary_vendor_sony" path="vendor/sony" remote="github" revision="ics"/>
At the end of the file, but BEFORE </manifest>. Save and exit. Then sync the repos again:
Code:
repo sync
3) BUILD THE ROM:
Code:
. build/envsetup.sh && brunch name_of_device
Where "name_of_device" is again "kumquat" for xperia U, "nypon" for xperia P, "pepper" for Sola and "lotus" for Go.
It will take some time (on my pc with 3GHz dual core and 4gb of ram about 2h30min)
If everything goes right the flashable zip of the rom will be in cyanogenmod/out/target/product/name_of_device/cm-10-XXXXXXXXX-UNOFFICIAL-name_of_device.zip
4) Install the rom on your phone!
-------------------------------------------------------------------------------------------------------------
Some other tips:
When you want to download latest fxp/cm changes open a new terminal and type:
Code:
cd cyanogenmod
repo sync
When you want to delete the build products (because something has gone wrong or you want to make a new build):
Code:
make clean
Then:
Code:
. build/envsetup.sh && brunch name_of_device
To start building again.
How to change toolchain to linaro
That part of guide is for JB only!
If you want to change the original toolchain to the one made by linaro, to improve performance of your source built rom, donwload the toolchain from here: http://releases.linaro.org/13.06/co...ndroid-toolchain-eabi-4.7-2013.06-x86.tar.bz2
Then extract it, you will have the toolchain in a folder called "android-toolchain-eabi".
Move that folder to cyanogenmod/prebuilts/gcc/linux-x86/arm/.
Now navigate to folder cyanogenmod/build and open with the text editor the file "envsetup.sh", go to line 151 and modify the line for arm toolchain as in this picture:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now you can start building your rom with linaro toolchain!
Build cm10.1
IF YOU WANT TO BUILD CM10.1 FOLLOW PART 1 FROM 1ST POST, THEN FOLLOW PART 2-3-4 HERE.
2) DOWNLOAD THE SOURCES:
Code:
mkdir ~/cyanogenmod
cd ~/cyanogenmod
This creates a folder named "cyanogenmod" and opens it.
Initialize the repo:
Code:
repo init -u git://github.com/STEricsson-Android/android.git -b cm-10.1-sony
This link is outdated, check here to get latest manifest for your rom: http://forum.xda-developers.com/showpost.php?p=46290810&postcount=71
Download time!
Code:
repo sync
It will download about 10gb of data, so be patient!
Download the prebuilts:
Code:
~/cyanogenmod/vendor/cm/get-prebuilts
3) BUILD THE ROM:
Code:
. build/envsetup.sh && brunch name_of_device
Where "name_of_device" is again "kumquat" for xperia U, "nypon" for xperia P, "pepper" for Sola and "lotus" for Go.
It will take some time (on my pc with 3GHz dual core and 4gb of ram about 2h30min)
If everything goes right the flashable zip of the rom will be in cyanogenmod/out/target/product/name_of_device/cm-10.1-XXXXXXXXX-UNOFFICIAL-name_of_device.zip
4) Install the rom on your phone!
-------------------------------------------------------------------------------------------------------------
Some other tips:
When you want to download latest fxp/cm changes open a new terminal and type:
Code:
cd cyanogenmod
repo sync
When you want to delete the build products (because something has gone wrong or you want to make a new build):
Code:
make clean
Then:
Code:
. build/envsetup.sh && brunch name_of_device
To start building again.
Great tutorial..maybe we will have more Rom now.can you also add how to build cwm tutorial.
I have questions:
how big will be download size of cm10 for single device and is possible to download only cwm essential and build it without downloading all?.thanks again.
etch04 said:
Great tutorial..maybe we will have more Rom now.can you also add how to build cwm tutorial.
I have questions:
how big will be download size of cm10 for single device and is possible to download only cwm essential and build it without downloading all?.thanks again.
Click to expand...
Click to collapse
I've never built only cwm, I'll see what I can do
Cm10 tree+device files are about 10-11 gb. There is also an official website that lets you to build cmw without downloading all sources: http://builder.clockworkmod.com/ (however I've never tried it).
Added the guide for switching to linaro toolchain in post #2!
elia222 said:
Added the guide for switching to linaro toolchain in post #2!
Click to expand...
Click to collapse
Thanks!
Hello,
First thanks for the tutorial, really neat !
Well I had a problem, after the last step, the brunch, I didn't had a cyanogenmod/out/target/product/name_of_device/cm-10-XXXXXXXXX-UNOFFICIAL-name_of_device.zip
I had the following error:
external/zlib/x86/adler32.c:747: error: ‘asm’ operand has impossible constraints
make: *** [/Users/lvcargnini/android/cyanogenmod/out/host/darwin-x86/obj/STATIC_LIBRARIES/libz_intermediates/adler32.o] Error 1
make: *** Waiting for unfinished jobs....
ld: warning: directory '/Users/lvcargnini/android/cyanogenmod/out/host/darwin-x86/obj/lib' following -L not found
true
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/unifdef
INSTALL include/trace (1 file)
INSTALL include/rdma (6 files)
INSTALL include/mtd (5 files)
INSTALL include/drm (13 files)
INSTALL include/sound (8 files)
INSTALL include/asm-generic (34 files)
INSTALL include/scsi/fc (4 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/video (4 files)
INSTALL include/scsi (3 files)
INSTALL include/linux/can (4 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/linux/hsi (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/xen (2 files)
INSTALL include (0 file)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter/xt_CONNMARK.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
make[5]: *** Waiting for unfinished jobs....
INSTALL include/linux/mfd (1 file)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter_arp (2 files)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv4/ipt_ECN.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv4/.install'. Stop.
make[4]: *** [netfilter_ipv4] Error 2
make[4]: *** Waiting for unfinished jobs....
INSTALL include/linux/netfilter_bridge (18 files)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv6/ip6t_HL.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv6/.install'. Stop.
make[4]: *** [netfilter_ipv6] Error 2
make[4]: *** [netfilter] Error 2
make[3]: *** [linux] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr] Error 2
-MacBook-Pro:cyanogenmod lvcargnini ☢
Any idea on what I forgot ? What should I fix ?
lvcargnini said:
Hello,
First thanks for the tutorial, really neat !
Well I had a problem, after the last step, the brunch, I didn't had a cyanogenmod/out/target/product/name_of_device/cm-10-XXXXXXXXX-UNOFFICIAL-name_of_device.zip
I had the following error:
external/zlib/x86/adler32.c:747: error: ‘asm’ operand has impossible constraints
make: *** [/Users/lvcargnini/android/cyanogenmod/out/host/darwin-x86/obj/STATIC_LIBRARIES/libz_intermediates/adler32.o] Error 1
make: *** Waiting for unfinished jobs....
ld: warning: directory '/Users/lvcargnini/android/cyanogenmod/out/host/darwin-x86/obj/lib' following -L not found
true
CHK include/linux/version.h
UPD include/linux/version.h
HOSTCC scripts/unifdef
INSTALL include/trace (1 file)
INSTALL include/rdma (6 files)
INSTALL include/mtd (5 files)
INSTALL include/drm (13 files)
INSTALL include/sound (8 files)
INSTALL include/asm-generic (34 files)
INSTALL include/scsi/fc (4 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/video (4 files)
INSTALL include/scsi (3 files)
INSTALL include/linux/can (4 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/linux/hsi (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/xen (2 files)
INSTALL include (0 file)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter/xt_CONNMARK.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
make[5]: *** Waiting for unfinished jobs....
INSTALL include/linux/mfd (1 file)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter_arp (2 files)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv4/ipt_ECN.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv4/.install'. Stop.
make[4]: *** [netfilter_ipv4] Error 2
make[4]: *** Waiting for unfinished jobs....
INSTALL include/linux/netfilter_bridge (18 files)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv6/ip6t_HL.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv6/.install'. Stop.
make[4]: *** [netfilter_ipv6] Error 2
make[4]: *** [netfilter] Error 2
make[3]: *** [linux] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr] Error 2
-MacBook-Pro:cyanogenmod lvcargnini ☢
Any idea on what I forgot ? What should I fix ?
Click to expand...
Click to collapse
On which computer are you building? which os?
elia222 said:
On which computer are you building? which os?
Click to expand...
Click to collapse
Hi, I'm using a Mac OSX 10.6.X
But I found on the internet, that this is a problem related to the compilers version, so I used macports to install a new LLVM and a the LLVM-gcc and set my system to link to LLVM as wide compiler.
T solve the problem related to the message:
ld: warning: directory '/Users/lvcargnini/android/cyanogenmod/out/host/darwin-x86/obj/lib' following -L not found
Click to expand...
Click to collapse
Result, this problem seems to have been solved, but a new one appeared:
external/e2fsprogs/e2fsck/rehash.c:406:16: note: 'rec_len' was declared here
target thumb C: libc <= bionic/libc/unistd/sysconf.c
target thumb C: libc <= bionic/libc/bionic/__errno.c
target thumb C: libc <= bionic/libc/bionic/dlmalloc.c
target thumb C: libc <= bionic/libc/bionic/malloc_debug_common.c
target thumb C: libc <= bionic/libc/bionic/pthread_debug.c
target thumb C: libc <= bionic/libc/bionic/libc_init_dynamic.c
target SharedLib: libdl (/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/_exit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/_exit_thread.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__fork.S
INSTALL include/asm-generic (34 files)
INSTALL include/drm (13 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__waitid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__sys_clone.S
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/mtd (5 files)
INSTALL include/linux/can (4 files)
INSTALL include/rdma (6 files)
INSTALL include/scsi/fc (4 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/execve.S
INSTALL include/linux/dvb (8 files)
INSTALL include/scsi (3 files)
INSTALL include/linux/hdlc (1 file)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setuid.S
INSTALL include/sound (8 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getgid.S
INSTALL include/linux/hsi (1 file)
INSTALL include/trace (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mfd (1 file)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/geteuid.S
INSTALL include/linux/mmc (1 file)
INSTALL include/video (4 files)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter/xt_CONNMARK.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
make[5]: *** Waiting for unfinished jobs....
INSTALL include/xen (2 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter/ipset (4 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getegid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getresuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getresgid.S
INSTALL include/linux/netfilter_bridge (18 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/gettid.S
INSTALL include (0 file)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv4/ipt_ECN.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv4/.install'. Stop.
make[4]: *** [netfilter_ipv4] Error 2
make[4]: *** Waiting for unfinished jobs....
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv6/ip6t_HL.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv6/.install'. Stop.
make[4]: *** [netfilter_ipv6] Error 2
target asm: libc_common <= bionic/libc/arch-arm/syscalls/readahead.S
make[4]: *** [netfilter] Error 2
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getgroups.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getpgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getppid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setsid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setreuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setresuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setresgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__brk.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__ptrace.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__getpriority.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setpriority.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setrlimit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getrlimit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getrusage.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setgroups.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setpgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/vfork.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setregid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/chroot.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/prctl.S
make[3]: *** [linux] Error 2
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs....
:cyanogenmod lvcargnini ☢
lvcargnini said:
Hi, I'm using a Mac OSX 10.6.X
But I found on the internet, that this is a problem related to the compilers version, so I used macports to install a new LLVM and a the LLVM-gcc and set my system to link to LLVM as wide compiler.
T solve the problem related to the message:
Result, this problem seems to have been solved, but a new one appeared:
external/e2fsprogs/e2fsck/rehash.c:406:16: note: 'rec_len' was declared here
target thumb C: libc <= bionic/libc/unistd/sysconf.c
target thumb C: libc <= bionic/libc/bionic/__errno.c
target thumb C: libc <= bionic/libc/bionic/dlmalloc.c
target thumb C: libc <= bionic/libc/bionic/malloc_debug_common.c
target thumb C: libc <= bionic/libc/bionic/pthread_debug.c
target thumb C: libc <= bionic/libc/bionic/libc_init_dynamic.c
target SharedLib: libdl (/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/_exit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/_exit_thread.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__fork.S
INSTALL include/asm-generic (34 files)
INSTALL include/drm (13 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__waitid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__sys_clone.S
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/mtd (5 files)
INSTALL include/linux/can (4 files)
INSTALL include/rdma (6 files)
INSTALL include/scsi/fc (4 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/execve.S
INSTALL include/linux/dvb (8 files)
INSTALL include/scsi (3 files)
INSTALL include/linux/hdlc (1 file)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setuid.S
INSTALL include/sound (8 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getgid.S
INSTALL include/linux/hsi (1 file)
INSTALL include/trace (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mfd (1 file)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/geteuid.S
INSTALL include/linux/mmc (1 file)
INSTALL include/video (4 files)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter/xt_CONNMARK.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
make[5]: *** Waiting for unfinished jobs....
INSTALL include/xen (2 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter/ipset (4 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getegid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getresuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getresgid.S
INSTALL include/linux/netfilter_bridge (18 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/gettid.S
INSTALL include (0 file)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv4/ipt_ECN.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv4/.install'. Stop.
make[4]: *** [netfilter_ipv4] Error 2
make[4]: *** Waiting for unfinished jobs....
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv6/ip6t_HL.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv6/.install'. Stop.
make[4]: *** [netfilter_ipv6] Error 2
target asm: libc_common <= bionic/libc/arch-arm/syscalls/readahead.S
make[4]: *** [netfilter] Error 2
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getgroups.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getpgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getppid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setsid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setreuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setresuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setresgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__brk.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__ptrace.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__getpriority.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setpriority.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setrlimit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getrlimit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getrusage.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setgroups.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setpgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/vfork.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setregid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/chroot.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/prctl.S
make[3]: *** [linux] Error 2
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs....
:cyanogenmod lvcargnini ☢
Click to expand...
Click to collapse
I've searched a bit and it seems that it can't find in the toolchain the needed file to build, it's an issue related to building on mac os x.
Search on google "no rule to make /include/linux/netfilter/xt_CONNMARK.h", maybe you'll find a solution.
A question. It says to use the 13.04, but I am always sticking to the LTS versions. Will this guide apply for 12.04 lts too?
DigitalDreamer said:
A question. It says to use the 13.04, but I am always sticking to the LTS versions. Will this guide apply for 12.04 lts too?
Click to expand...
Click to collapse
The guide is almost the same, but some packages may be different. I recommend to search on xda a guide for 12.04 for setting up the build environment.
lvcargnini said:
Hi, I'm using a Mac OSX 10.6.X
But I found on the internet, that this is a problem related to the compilers version, so I used macports to install a new LLVM and a the LLVM-gcc and set my system to link to LLVM as wide compiler.
T solve the problem related to the message:
Result, this problem seems to have been solved, but a new one appeared:
external/e2fsprogs/e2fsck/rehash.c:406:16: note: 'rec_len' was declared here
target thumb C: libc <= bionic/libc/unistd/sysconf.c
target thumb C: libc <= bionic/libc/bionic/__errno.c
target thumb C: libc <= bionic/libc/bionic/dlmalloc.c
target thumb C: libc <= bionic/libc/bionic/malloc_debug_common.c
target thumb C: libc <= bionic/libc/bionic/pthread_debug.c
target thumb C: libc <= bionic/libc/bionic/libc_init_dynamic.c
target SharedLib: libdl (/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/_exit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/_exit_thread.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__fork.S
INSTALL include/asm-generic (34 files)
INSTALL include/drm (13 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__waitid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__sys_clone.S
INSTALL include/linux/byteorder (2 files)
INSTALL include/linux/caif (2 files)
INSTALL include/mtd (5 files)
INSTALL include/linux/can (4 files)
INSTALL include/rdma (6 files)
INSTALL include/scsi/fc (4 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/execve.S
INSTALL include/linux/dvb (8 files)
INSTALL include/scsi (3 files)
INSTALL include/linux/hdlc (1 file)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setuid.S
INSTALL include/sound (8 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getgid.S
INSTALL include/linux/hsi (1 file)
INSTALL include/trace (1 file)
INSTALL include/linux/isdn (1 file)
INSTALL include/linux/mfd (1 file)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/geteuid.S
INSTALL include/linux/mmc (1 file)
INSTALL include/video (4 files)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter/xt_CONNMARK.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
make[5]: *** Waiting for unfinished jobs....
INSTALL include/xen (2 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter/ipset (4 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getegid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getresuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getresgid.S
INSTALL include/linux/netfilter_bridge (18 files)
target asm: libc_common <= bionic/libc/arch-arm/syscalls/gettid.S
INSTALL include (0 file)
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv4/ipt_ECN.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv4/.install'. Stop.
make[4]: *** [netfilter_ipv4] Error 2
make[4]: *** Waiting for unfinished jobs....
make[5]: *** No rule to make target `/Users/lvcargnini/android/cyanogenmod/kernel/sony/u8500/include/linux/netfilter_ipv6/ip6t_HL.h', needed by `/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr/include/linux/netfilter_ipv6/.install'. Stop.
make[4]: *** [netfilter_ipv6] Error 2
target asm: libc_common <= bionic/libc/arch-arm/syscalls/readahead.S
make[4]: *** [netfilter] Error 2
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getgroups.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getpgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getppid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setsid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setreuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__setresuid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setresgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__brk.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__ptrace.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/__getpriority.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setpriority.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setrlimit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getrlimit.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/getrusage.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setgroups.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setpgid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/vfork.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/setregid.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/chroot.S
target asm: libc_common <= bionic/libc/arch-arm/syscalls/prctl.S
make[3]: *** [linux] Error 2
make[2]: *** [headers_install] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Users/lvcargnini/android/cyanogenmod/out/target/product/kumquat/obj/KERNEL_OBJ/usr] Error 2
make: *** Waiting for unfinished jobs....
:cyanogenmod lvcargnini ☢
Click to expand...
Click to collapse
the file mentioned are not present or renamed to filename[1].bla bal (this issues happens when you download the source as a zip).
Just remove [1] from file name and build again
What will happen if i install it on 32bit?
DroidModderXtreme said:
What will happen if i install it on 32bit?
Click to expand...
Click to collapse
You will get errors while building. You can only build android versions older than gingerbread on 32 bit.
Someone build cm7!
Sent from my 4.2.2 Xperia S via Tapatalk
Ben36 said:
Someone build cm7!
Sent from my 4.2.2 Xperia S via Tapatalk
Click to expand...
Click to collapse
Someone already tried in the past, but they didn't manage to get it booting.
percy_g2 said:
the file mentioned are not present or renamed to filename[1].bla bal (this issues happens when you download the source as a zip).
Just remove [1] from file name and build again
Click to expand...
Click to collapse
Could you please, tell to which file are you referring ?
lvcargnini said:
Could you please, tell to which file are you referring ?
Click to expand...
Click to collapse
type [1] in search and remove [1] from every file you see this .

Kernel build issue: gen_initramfs_list.sh Cannot open destinasion

Hey
I am having a hickup regarding a kernel, upon building SlimBean Rom.
error:
Target boot image: out/target/product/p6800/boot.img
make -C kernel/samsung/smdk4210 O=/home/userx/Android/SLIM/out/target/product/p6800/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/userx/Android/SLIM/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" CONFIG_INITRAMFS_SOURCE=out/target/product/p6800/root zImage
----- Making recovery filesystem ------
mkdir -p out/target/product/p6800/recovery
mkdir -p out/target/product/p6800/recovery/root
mkdir -p out/target/product/p6800/recovery/root/etc
mkdir -p out/target/product/p6800/recovery/root/tmp
Copying baseline ramdisk...
cp -R out/target/product/p6800/root out/target/product/p6800/recovery
rm out/target/product/p6800/recovery/root/init*.rc
Modifying ramdisk contents...
cp -f device/samsung/smdk4210-tab/recovery.rc out/target/product/p6800/recovery/root/init.rc
make[1]: Entering directory `/home/userx/Android/SLIM/kernel/samsung/smdk4210'
cp -f out/target/product/p6800/obj/EXECUTABLES/recovery_intermediates/recovery out/target/product/p6800/recovery/root/sbin/
rm -f out/target/product/p6800/recovery/root/init.*.rc
mkdir -p out/target/product/p6800/recovery/root/system/bin
cp -rf bootable/recovery/res out/target/product/p6800/recovery/root/
cp -f device/samsung/p6800/recovery.fstab out/target/product/p6800/recovery/root/etc/recovery.fstab
cp out/target/product/p6800/obj/PACKAGING/ota_keys_intermediates/keys out/target/product/p6800/recovery/root/res/keys
cat out/target/product/p6800/root/default.prop out/target/product/p6800/system/build.prop \
> out/target/product/p6800/recovery/root/default.prop
Modifying default.prop
sed -i 's/ro.build.date.utc=.*/ro.build.date.utc=0/g' out/target/product/p6800/recovery/root/default.prop
----- Made recovery filesystem -------- out/target/product/p6800/recovery/root
target Dex: core-junit
Copying: out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/noproguard.classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/android-support-v13_intermediates/classes-jarjar.jar
target SharedLib: libcorkscrew (out/target/product/p6800/obj/SHARED_LIBRARIES/libcorkscrew_intermediates/LINKED/libcorkscrew.so)
target SharedLib: libhardware (out/target/product/p6800/obj/SHARED_LIBRARIES/libhardware_intermediates/LINKED/libhardware.so)
target SharedLib: libsecion (out/target/product/p6800/obj/SHARED_LIBRARIES/libsecion_intermediates/LINKED/libsecion.so)
target SharedLib: libwpa_client (out/target/product/p6800/obj/SHARED_LIBRARIES/libwpa_client_intermediates/LINKED/libwpa_client.so)
target SharedLib: libnetutils (out/target/product/p6800/obj/SHARED_LIBRARIES/libnetutils_intermediates/LINKED/libnetutils.so)
target SharedLib: libaudioutils (out/target/product/p6800/obj/SHARED_LIBRARIES/libaudioutils_intermediates/LINKED/libaudioutils.so)
target SharedLib: libstagefright_yuv (out/target/product/p6800/obj/SHARED_LIBRARIES/libstagefright_yuv_intermediates/LINKED/libstagefright_yuv.so)
Install: /home/userx/Android/SLIM/out/target/product/p6800/system/lib/libcutils.so
Install: /home/userx/Android/SLIM/out/target/product/p6800/system/lib/libicui18n.so
target Symbolic: libjpeg (out/target/product/p6800/symbols/system/lib/libjpeg.so)
target Symbolic: libusbhost (out/target/product/p6800/symbols/system/lib/libusbhost.so)
target Symbolic: libbluedroid (out/target/product/p6800/symbols/system/lib/libbluedroid.so)
target Symbolic: libdbus (out/target/product/p6800/symbols/system/lib/libdbus.so)
target Symbolic: applypatch (out/target/product/p6800/symbols/system/bin/applypatch)
target Symbolic: libbluetooth (out/target/product/p6800/symbols/system/lib/libbluetooth.so)
target Symbolic: bugreport (out/target/product/p6800/symbols/system/bin/bugreport)
target Symbolic: dnsmasq (out/target/product/p6800/symbols/system/bin/dnsmasq)
target Symbolic: dump_image (out/target/product/p6800/symbols/system/bin/dump_image)
target Symbolic: dumpstate (out/target/product/p6800/symbols/system/bin/dumpstate)
target Executable: e2fsck (out/target/product/p6800/obj/EXECUTABLES/e2fsck_intermediates/LINKED/e2fsck)
Install: /home/userx/Android/SLIM/out/target/product/p6800/system/lib/libext2fs.so
target Symbolic: erase_image (out/target/product/p6800/symbols/system/bin/erase_image)
target Symbolic: flash_image (out/target/product/p6800/symbols/system/bin/flash_image)
target Symbolic: installd (out/target/product/p6800/symbols/system/bin/installd)
target Symbolic: keystore_cli (out/target/product/p6800/symbols/system/bin/keystore_cli)
Install: /home/userx/Android/SLIM/out/target/product/p6800/system/bin/make_ext4fs
GEN /home/userx/Android/SLIM/out/target/product/p6800/obj/KERNEL_OBJ/Makefile
target Symbolic: mdnsd (out/target/product/p6800/symbols/system/bin/mdnsd)
target Symbolic: mke2fs (out/target/product/p6800/symbols/system/bin/mke2fs)
target Symbolic: mtpd (out/target/product/p6800/symbols/system/bin/mtpd)
target Symbolic: libeffects (out/target/product/p6800/symbols/system/lib/libeffects.so)
target Symbolic: ndc (out/target/product/p6800/symbols/system/bin/ndc)
target Symbolic: libsysutils (out/target/product/p6800/symbols/system/lib/libsysutils.so)
target Symbolic: libmdnssd (out/target/product/p6800/symbols/system/lib/libmdnssd.so)
CHK include/linux/version.h
target Symbolic: pppd (out/target/product/p6800/symbols/system/bin/pppd)
CHK include/generated/utsrelease.h
target Symbolic: qemu-props (out/target/product/p6800/symbols/system/bin/qemu-props)
target Symbolic: qemud (out/target/product/p6800/symbols/system/bin/qemud)
Using /home/userx/Android/SLIM/kernel/samsung/smdk4210 as source for kernel
target Symbolic: racoon (out/target/product/p6800/symbols/system/bin/racoon)
target Symbolic: radiooptions (out/target/product/p6800/symbols/system/bin/radiooptions)
target Symbolic: screenshot (out/target/product/p6800/symbols/system/bin/screenshot)
target Symbolic: sec_keyboard (out/target/product/p6800/symbols/system/bin/sec_keyboard)
make[3]: `include/generated/mach-types.h' is up to date.
target Symbolic: setup_fs (out/target/product/p6800/symbols/system/bin/setup_fs)
target Symbolic: tune2fs (out/target/product/p6800/symbols/system/bin/tune2fs)
CALL /home/userx/Android/SLIM/kernel/samsung/smdk4210/scripts/checksyscalls.sh
target Symbolic: vdc (out/target/product/p6800/symbols/system/bin/vdc)
CHK include/generated/compile.h
target Symbolic: libdiskconfig (out/target/product/p6800/symbols/system/lib/libdiskconfig.so)
/home/userx/Android/SLIM/kernel/samsung/smdk4210/scripts/gen_initramfs_list.sh: Cannot open 'out/target/product/p6800/root'
make[3]: *** [usr/initramfs_data.cpio] Error 1
make[2]: *** [usr] Error 2
make[2]: *** Waiting for unfinished jobs....
target Symbolic: wpa_cli (out/target/product/p6800/symbols/system/bin/wpa_cli)
target Symbolic: wpa_supplicant (out/target/product/p6800/symbols/system/bin/wpa_supplicant)
target Symbolic: ip-up-vpn (out/target/product/p6800/symbols/system/etc/ppp/ip-up-vpn)
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/userx/Android/SLIM/kernel/samsung/smdk4210'
make: *** [out/target/product/p6800/boot.img] Error 2
make: *** Waiting for unfinished jobs....
Elapsed: 31 min(s) 34 sec(s)
I checked the .config after make slim_p6800_defconfig and the CONFIG_INITRAMFS_SOURCE is set to empty. I can make the kernel fine, but when building rom it stops with above error.
What am I looking at here?

[Q] Error while compiling CM for DS

Hi, I am compiling CM for Desire S. When I use CM frameworks/av it end but when I use modified one's that were working till recently, I get:
Code:
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/fmtconvert_neon.S
external/stagefright-plugins/libstagefright/FFmpegExtractor/FFmpegExtractor.cpp: In member function 'android::sp<android::MetaData> android::FFmpegExtractor::setAudioFormat(AVStream*)':
external/stagefright-plugins/libstagefright/FFmpegExtractor/FFmpegExtractor.cpp:498:24: error: 'kKeySampleBits' was not declared in this scope
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/fmtconvert_vfp.S
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/fmtconvert_vfp_armv6.S
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/h264cmc_neon.S
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/h264dsp_armv6.S
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/h264dsp_neon.S
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/h264idct_neon.S
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/h264pred_neon.S
make: *** [/home/marlab/cm11/out/target/product/saga/obj/SHARED_LIBRARIES/libFFmpegExtractor_intermediates/FFmpegExtractor.o] Error 1
make: *** Waiting for unfinished jobs....
target asm: libavcodec <= external/ffmpeg/libavcodec/arm/h264qpel_neon.S
real 27m53.221s
user 192m26.982s
sys 14m17.400s
What is wrong and how do I fix it?

[Q] Kernel Compilation Error

Can anybody help me to deal with these errors? I don't really understand what's going on
Code:
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
arm-cortex_a8-linux-gnueabi-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc -isystem arm-cortex_a8-linux-gnueabi-gcc -print-file-name=include [Errno 8] Exec format error -I/home/caesar/Downloads/SebastianFM-kernel-master/arch/arm/include -Iarch/arm/include/generated -Iinclude -include /home/caesar/Downloads/SebastianFM-kernel-master/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Iarch/arm/mach-msm/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 -D__LINUX_ARM_ARCH__=7 -march=armv5t -Wa,-march=armv7-a -msoft-float -Uarm -fomit-frame-pointer -g -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(bounds) -DKBUILD_MODNAME=KBUILD_STR(bounds) -fverbose-asm -S -o kernel/bounds.s kernel/bounds.c [Errno 8] Exec format error
make[1]: *** [kernel/bounds.s] Error 8
make: *** [prepare0] Error 2

Categories

Resources