Cyanogenmod 10 libz error[HELP] - Android Software/Hacking General [Developers Only]

I have thought of every possible way. The last way is to delete the lines but i need ur help to fix it
the error is
Code:
target arm C: libz <= external/zlib/adler32.c
In file included from external/zlib/zlib.h:34:0,
from external/zlib/zutil.h:24,
from external/zlib/adler32.c:9:
external/zlib/zconf.h:395:22: fatal error: limits.h: No such file or directory
compilation terminated.
make: *** [/home/yajnavalkya/cm10/out/target/product/beni/obj/SHARED_LIBRARIES/libz_intermediates/adler32.o] Error 1

Related

[Q] Noob Trying to Build AOKP but fail

trying to build aokp but having trouble, can anyone help? plz
*
build/core/tasks/kernel.mk:47: ***************************************************************
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt (out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
Cannot create temporary file in ./: Read-only file system
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
Cannot create temporary file in ./: Read-only file system
prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-ar: out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a: Read-only file system
prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/bin/x86_64-linux-ar: out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a: Read-only file system
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a] Error 1
prebuilts/tools/gcc-sdk/gcc: line 40: 12720 Aborted (core dumped) $MY_TOOL "[email protected]"
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 134
prebuilts/tools/gcc-sdk/gcc: line 40: 12744 Aborted (core dumped) $MY_TOOL "[email protected]"
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 13

[Q][KERNEL] Source build problems.

When trying to run the scripts build_kernel.sh i get an error saying that i need to clean up the directory by using "make mrproper". However when i do i get the following error.
Code:
[email protected]:~/androidsource/kernel$ make mrproper
/home/wes/androidsource/kernel/drivers/gpu/gpu_sysfs/Kbuild:29: **** Make sure target file is defined. Check the TARGET and GPU configs in Makefile and Kernel Config. Module won't work without target file. ****
scripts/Makefile.clean:17: /home/wes/androidsource/kernel/drivers/media/isdbt/fc8150/Makefile: No such file or directory
make[4]: *** No rule to make target `/home/wes/androidsource/kernel/drivers/media/isdbt/fc8150/Makefile'. Stop.
make[3]: *** [drivers/media/isdbt/fc8150] Error 2
make[2]: *** [drivers/media/isdbt] Error 2
make[1]: *** [drivers/media] Error 2
make: *** [_clean_drivers] Error 2
What is missing? When i open the specified makefiles i do not see what is not specified as the target file. Also, drivers/media/isdbt/fc8150/makefile does not exist. Why is that? Is there something that i need to do in order to produce/unpack additional files from the whole source in order to compile the kernel for SM-N915J?
Have you ever fixed the problem? Running into the exact same error.
Thanks!

Error when compile resurection remix 5.8.4

Hello guys here
I try to build rr 5.8.4 rom and when i type brunch grandppltedx i got this error:
Checking build tools versions...
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/home/lol/RR/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
cp: cannot stat '/home/lol/RR/ota_conf': No such file or directory
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/NexusLauncher/NexusLauncher.apk:system/app/NexusLauncher/NexusLauncher.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/Wallpaper/Wallpaper.apk:system/app/Wallpaper/Wallpaper.apk, use BUILD_PREBUILT instead!
Prebuilt apk found in PRODUCT_COPY_FILES: vendor/cm/prebuilt/DeskClock/DeskClock.apk:system/app/DeskClock/DeskClock.apk, use BUILD_PREBUILT instead!
build/core/java.mk:334: warning: overriding commands for target `/home/lol/RR/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/lol/RR/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/home/lol/RR/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/home/lol/RR/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:320: warning: overriding commands for target `/home/lol/RR/out/target/product/grandppltedx/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:320: warning: ignoring old commands for target `/home/lol/RR/out/target/product/grandppltedx/root/res/images/charger/battery_fail.png'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/lol/RR/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/R.stamp', needed by '/home/lol/RR/out/target/common/obj/APPS/BasicDreams_intermediates/src/R.stamp', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/lol/RR'
#### make failed to build some targets (03:19 (mm:ss)) ####
No Jack server running. Try 'jack-admin start-server'
-Now I have no idea how to solve the build error please help me

I am getting this error while trying to port LineageOS

"ebtables is disabled on this build"
/bin/bash: prebuilts/python/linux-x86/2.7.5//bin/python: No such file or directory
build/core/base_rules.mk:559: warning: overriding recipe for target '/root/android/system/out/target/product/manta/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/root/android/system/out/target/product/manta/root/res/images/charger/battery_fail.png'
find: ‘dummy’: No such file or directory
PRODUCT_COPY_FILES device/samsung/manta/audio_effects.conf:system/etc/audio_effects.conf ignored.
No private recovery resources for TARGET_DEVICE manta
build/core/tasks/kernel.mk:358: warning: overriding recipe for target '/root/android/system/out/target/product/manta/kernel'
build/core/Makefile:46: warning: ignoring old recipe for target '/root/android/system/out/target/product/manta/kernel'
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: libcompiler_rt-extras <= external/compiler-rt/lib/builtins/mulodi4.c
host C++: libc++_static <= external/libcxx/src/algorithm.cpp
host C++: libc++_static <= external/libcxx/src/bind.cpp
prebuilts/clang/linux-x86/host/3.6/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:825: /root/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 127
make: *** Waiting for unfinished jobs....
prebuilts/clang/linux-x86/host/3.6/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:825: /root/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/lib/builtins/mulodi4.o] Error 127
prebuilts/clang/linux-x86/host/3.6/bin/clang++prebuilts/clang/linux-x86/host/3.6/bin/clang++: : error while loading shared librarieserror while loading shared libraries: : libncurses.so.5libncurses.so.5: : cannot open shared object filecannot open shared object file: : No such file or directoryNo such file or directory
make: *** [build/core/binary.mk:730: /root/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/algorithm.o] Error 127
make: *** [build/core/binary.mk:730: /root/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/bind.o] Error 127
make: Leaving directory '/root/android/system'
#### make failed to build some targets (38 seconds) ####
I have no idea what to do, I'm on Arch Linux.

Build Android problem with androideabi

Hello everyone!
I am trying to build CyanogenMod 12 for Motorola Milestone 2. I have downloaded CM12 and built a tree of device. When I run build I get error:
Bash:
target thumb C++: libvold <= system/vold/VoldCommand.cpp
arm-linux-androideabi-g++: error: ": No such file or directory
target thumb C++: libvold <= system/vold/NetlinkManager.cpp
make: *** [build/core/binary.mk:616: /home/bars/e/working_directory/out/target/product/milestone2/obj/STATIC_LIBRARIES/libvold_intermediates/VoldCommand.o] Ошибка 1
make: *** Ожидание завершения заданий…
arm-linux-androideabi-g++: error: ": No such file or directory
make: *** [build/core/binary.mk:616: /home/bars/e/working_directory/out/target/product/milestone2/obj/STATIC_LIBRARIES/libvold_intermediates/NetlinkManager.o] Ошибка 1
target thumb C++: libvold <= system/vold/NetlinkHandler.cpp
arm-linux-androideabi-g++: error: ": No such file or directory
make: *** [build/core/binary.mk:616: /home/bars/e/working_directory/out/target/product/milestone2/obj/STATIC_LIBRARIES/libvold_intermediates/NetlinkHandler.o] Ошибка 1
#### make failed to build some targets (03:04 (mm:ss)) ####
Help me please! I can't understand what I need do. Sorry for my English.
I'm not 100% sure about CyanogenMod, but on AOSP builds you have to set CROSS_COMPILE.
Try setting CROSS_COMPILE to the full path to the the gcc prebuilt from AOSP. Or your distro may have one that's compatable. You can try installing gcc/g++ from you package manager and then setting CROSS_COMPILE to that.

Categories

Resources