[CLOSED] Ninja error 1 - Android Software/Hacking General [Developers Only]

hello I creatin lineage os 19 but mka bacon error
HOSTCC scripts/basic/fixdep
GEN ./Makefile
ld.lld: error: cannot open crtbegin.o: No such file or directory
ld.lld: error: unable to find library -lgcc
ld.lld: error: unable to find library -lgcc_s
ld.lld: error: unable to find library -lgcc
ld.lld: error: unable to find library -lgcc_s
ld.lld: error: cannot open crtend.o: No such file or directory
clang-12: error: linker command failed with exit code 1 (use -v to see invocatio
n)
make[2]: *** [scripts/Makefile.host:91: scripts/basic/fixdep] Error 1
make[1]: *** [/home/kozlu14/Android/kernel/tinno/msm8937/Makefile:452: scripts_b
asic] Error 2
make[1]: Leaving directory '/home/kozlu14/Android/out/target/product/garlic/obj/
KERNEL_OBJ'
make: *** [Makefile:145: sub-make] Error 2
make: Leaving directory '/home/kozlu14/Android/kernel/tinno/msm8937'
20:24:29 ninja failed with: exit status 1
ı can a problem fix?

Note: Questions go in Q&A Forum
If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...
forum.xda-developers.com

Related

[Q] building cyanogenmod gingerbread

I am trying to build the kernel from source.
I followed the instructions from http://oldwiki.cyano...nel_from_source .
I did:
git clone git://github.com/CyanogenMod/cm-kernel.git
cd cm-kernel
git branch -a
git checkout supersonic-2.6.34
export PATH=$PATH:/home/zoi/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin
make ARCH=arm CROSS_COMPILE=/home/zoi/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- supersonic_defconfig
make -j4 ARCH=arm
and the zimage in the /arch/arm/boot folder is not created. The building process just stops :with error
2.c: In function 'msm_v4l2_video_dev_init':
drivers/media/video/msm/msm_v4l2.c:713: error: 'VID_TYPE_CAPTURE' undeclared (first use in this function)
drivers/media/video/msm/msm_v4l2.c:713: error: (Each undeclared identifier is reported only once
drivers/media/video/msm/msm_v4l2.c:713: error: for each function it appears in.)
make[4]: *** [drivers/media/video/msm/msm_v4l2.o] Error 1
make[3]: *** [drivers/media/video/msm] Error 2
make[2]: *** [drivers/media/video] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [drivers] Error 2
Am i doing something wrong?

[Completed] [Q] cm-11 os x build issue

Hello xda-assist,
I've been trying to build cm-11 for a while following their build instructions. I'm building on a mac os x 10.9.5 with Xcode
I've pulled the repo from official cm-11 and followed all the setup steps for building on mac. But I keep getting stuck with errors as follow:
Code:
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
host C: libmincrypt <= system/core/libmincrypt/p256.c
host C: libmincrypt <= system/core/libmincrypt/p256_ec.c
host C: libmincrypt <= system/core/libmincrypt/p256_ecdsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/p256_ec.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/dsa_sig.o] Error 1
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
cc1: error: unrecognized command line option "-arch"
cc1: error: unrecognized command line option "-Wno-nested-anon-types"
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/p256_ecdsa.o] Error 1
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/p256.o] Error 1
make: *** [/Volumes/android/build_output/system/host/darwin-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/rsa.o] Error 1
GEN include/applets.h
GEN include/usage.h
After some debugging it turns out it's running prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1, which does not support the -arch and the -Wno-nested-anon-types flags.
I've googled and search the forum for keywords but I have no been able to find any help.
I've checked my path and verifies that /opt/local/bin (using macport) is in the front of the default /usr/bin:
Code:
$ echo $PATH | sed 's/:/\'$'\n/g'
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
/Volumes/android/build_output/system/host/darwin-x86/bin
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/bin
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.7/bin
/Volumes/android/cm-11/system/development/emulator/qtools
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.7/bin
/Volumes/android/cm-11/system/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin
/Volumes/android/cm-11/system/development/scripts
/Volumes/android/cm-11/system/prebuilts/devtools/tools
/Users/pobetiger/bin
/opt/local/bin
/opt/local/sbin
/usr/local/bin
/Applications/eclipse
~/android-sdks/platform-tools
~/android-sdks/tools
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/opt/X11/bin
/usr/local/git/bin
/Applications/MacVim.app/Contents/MacOS
But this does not seem to be important...my build/core/combo/HOST_darwin-x86.mk contains this line (line 80):
Code:
HOST_TOOLCHAIN_ROOT := prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1
HOST_TOOLCHAIN_PREFIX := $(HOST_TOOLCHAIN_ROOT)/bin/i686-apple-darwin$(gcc_darwin_version)
# Don't do anything if the toolchain is not there
ifneq (,$(strip $(wildcard $(HOST_TOOLCHAIN_PREFIX)-gcc)))
HOST_CC := $(HOST_TOOLCHAIN_PREFIX)-gcc
HOST_CXX := $(HOST_TOOLCHAIN_PREFIX)-g++
ifeq ($(mac_sdk_version),10.9)
HOST_GLOBAL_CFLAGS += -I$(mac_sdk_root)/usr/include/c++/4.2.1 -arch i386 -Wno-nested-anon-types -Wno-unused-parameter
HOST_GLOBAL_LDFLAGS += -Wl,-arch,i386,-lstdc++
Which says it will always use the prebuilts/gcc/darwin-x86/host compiler.
So this is not a path setup issue. Not sure how to get around this. Any pointers to threads or right place to post the issue would be very helpful.
Hi,
You can review the tutorials and guides... Or ask for help.... Here,
> Chef Central > Android
Good luck!
Darth said:
Hi,
You can review the tutorials and guides... Or ask for help.... Here,
> Chef Central > Android
Good luck!
Click to expand...
Click to collapse
Thanks Darth, anyway to move this question over? Or do I just open another thread there?
Also, how do I mark this one closed?
Thanks,
pobetiger
Really, I'd do some reading before posting. Maybe you won't need to. But expectations in that section will be higher than other areas of xda. They expect posters there to be well informed and well read.
If you feel you have, then yes... Start a new thread there. ?
Thank you. Thread closed.

[Completed] [Q] Errors building samsung android kernel on ubuntu 14.04

I am following this tutorial
http://forum.xda-developers.com/showthread.php?t=2152819
I get the following when i execute
Code:
$make maker.defconfig
make: Nothing to be done for `maker.defconfig'.
Then i set the CROSS_COMPILER and echo it
Code:
$ echo $CROSS_COMPILE
/usr/bin/arm-none-eabi-
and when i execute
Code:
$make ARCH=arm
i get the following errors
///////////////////////////////////////
CHK include/linux/version.h
CHK include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
gcc: error: unrecognized argument in option ‘-mabi=apcs-gnu’
gcc: note: valid arguments to ‘-mabi=’ are: ms sysv
gcc: error: unrecognized command line option ‘-mlittle-endian’
gcc: error: unrecognized command line option ‘-mapcs’
gcc: error: unrecognized command line option ‘-mno-sched-prolog’
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
////////////////////////////////////////////////////
Any idea how to resolve these
I got the same errors using Android NDK toolchain.
Thanks
Hi,
You can browse through this section for other guides and tutorials that may help, there are many,
http://forum.xda-developers.com/chef-central/android
Or, you can ask for help in the tutorial thread you already linked here. Failing all that, you can start your own thread in the section above and ask for help.
Good luck!

[Q] rscpuintrinsics_neon_blur

hi to everyone. i had always this error when compiling for my n7000. i ve tried a lot of source
cyanogen, liquid, omni and same. is anyone have idea about below ?
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S: Assembler messages:
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S:1429: Error: unexpected end of file in irp or irpc
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
build/core/binary.mk:749: recipe for target '/home/*/omni/out/target/product/n7000/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o' failed
make: *** [/home/*/omni/out/target/product/n7000/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o] Error 1
make: *** Bitmemiş işler için bekliyor....
freedmm said:
hi to everyone. i had always this error when compiling for my n7000. i ve tried a lot of source
cyanogen, liquid, omni and same. is anyone have idea about below ?
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S: Assembler messages:
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S:1429: Error: unexpected end of file in irp or irpc
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
build/core/binary.mk:749: recipe for target '/home/*/omni/out/target/product/n7000/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o' failed
make: *** [/home/*/omni/out/target/product/n7000/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o] Error 1
make: *** Bitmemiş işler için bekliyor....
Click to expand...
Click to collapse
Switch system language to english.Then start clean build.

Samsung Galaxy Tab 2 - p5100 Cyanogenmod

Hello!
I am quite new to this comunity. I am trying to build my own Cyanogenmod 12.1 for the Samsung p5100.
I always get stuck with the following error:
Code:
target Executable: pvrsrvinit (/home/user/Development/Cyanogenmod/android/system/out/target/product/p5100/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit)
/home/user/Development/Cyanogenmod/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_init_SGX540_120
/home/user/Development/Cyanogenmod/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_um_SGX540_120
hardware/ti/omap4/pvrsrvinit/pvrsrvinit.c:8: error: undefined reference to 'SrvInit'
collect2: error: ld returned 1 exit status
make: *** [/home/user/Development/Cyanogenmod/android/system/out/target/product/p5100/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/user/Development/Cyanogenmod/android/system'
I would have liked to post this Question in the right forum but i am not allowed to unless i have 10 posts. So i am doing it here.
I have searched the forums already but i didnt find any answer that worked for me.
Any help would be greatly appreciated!
THX!
Are there any solutions?
I run into the same problem.
Code:
.../android/cm-12.1/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_init_SGX540_120
.../android/cm-12.1/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_um_SGX540_120
hardware/ti/omap4/pvrsrvinit/pvrsrvinit.c:8: error: undefined reference to 'SrvInit'
collect2: error: ld returned 1 exit status
make: *** [.../android/cm-12.1/out/target/product/p5100/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit] Fehler 1
jameson777 said:
Hello!
I am quite new to this comunity. I am trying to build my own Cyanogenmod 12.1 for the Samsung p5100.
I always get stuck with the following error:
Code:
target Executable: pvrsrvinit (/home/user/Development/Cyanogenmod/android/system/out/target/product/p5100/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit)
/home/user/Development/Cyanogenmod/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_init_SGX540_120
/home/user/Development/Cyanogenmod/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_um_SGX540_120
hardware/ti/omap4/pvrsrvinit/pvrsrvinit.c:8: error: undefined reference to 'SrvInit'
collect2: error: ld returned 1 exit status
make: *** [/home/user/Development/Cyanogenmod/android/system/out/target/product/p5100/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/user/Development/Cyanogenmod/android/system'
I would have liked to post this Question in the right forum but i am not allowed to unless i have 10 posts. So i am doing it here.
I have searched the forums already but i didnt find any answer that worked for me.
Any help would be greatly appreciated!
THX!
Click to expand...
Click to collapse
I found a solution.
add
Code:
<project name="CyanogenMod/android_device_samsung_omap4-common" path="device/samsung/omap4-common" remote="github" revision="refs/heads/cm-12.1" />
to
Code:
roomservice.xml
and then run
Code:
./extract-files.sh
with your device connected. The proprietary blobs will be downloaded and the error is gone.
OldSparky said:
I found a solution.
add
Code:
<project name="CyanogenMod/android_device_samsung_omap4-common" path="device/samsung/omap4-common" remote="github" revision="refs/heads/cm-12.1" />
to
Code:
roomservice.xml
and then run
Code:
./extract-files.sh
with your device connected. The proprietary blobs will be downloaded and the error is gone.
Click to expand...
Click to collapse
I'm trying to build a maguro 12.1 image and this didn't work. The build is still dying on:
Code:
target Strip: ping (/Cyanogenmod/out/target/product/maguro/obj/EXECUTABLES/ping_intermediates/ping)
target Executable: ping6 (/Cyanogenmod/out/target/product/maguro/obj/EXECUTABLES/ping6_intermediates/LINKED/ping6)
target Executable: pngtest (/Cyanogenmod/out/target/product/maguro/obj/EXECUTABLES/pngtest_intermediates/LINKED/pngtest)
target Executable: pvrsrvinit (/Cyanogenmod/out/target/product/maguro/obj/EXECUTABLES/pvrsrvinit_intermediates/LINKED/pvrsrvinit)
target Strip: librilutils (/Cyanogenmod/out/target/product/maguro/obj/lib/librilutils.so)
/Cyanogenmod/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_init_SGX540_120
/Cyanogenmod/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lsrv_um_SGX540_120
hardware/ti/omap4/pvrsrvinit/pvrsrvinit.c:8: error: undefined reference to 'SrvInit'
Im pretty late but have the same issue have any of you guys x0ra , jameson777, OldSparky be able to fix it?

Categories

Resources