[Q] Error while compile CWM from source - General Questions and Answers

I tried to compile CyanogenMod 11 for my device [Coolpad 8085 (lc1810_8190)].
There is a problem when I run this command.
Code:
. build/tools/device/makerecoveries.sh cm_lc1810_8190-eng
Code:
cm_lc1810_8190-eng
1 Products
Recovery Version: 6.0.4.8
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140511-UNOFFICIAL-lc1810_8190
TARGET_PRODUCT=cm_lc1810_8190
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-60-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=CyanogenMod/out
============================================
CyanogenMod/out/target/product/lc1810_8190/obj/APPS/SignatureTest_intermediates
find: 'src': No such file or directory
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE lc1810_8190
build/core/tasks/kernel.mk:91: **********************************************************
build/core/tasks/kernel.mk:92: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:93: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:94: * BoardConfig.mk file *
build/core/tasks/kernel.mk:95: **********************************************************
build/core/tasks/kernel.mk:198: warning: overriding commands for target 'CyanogenMod/out/target/product/lc1810_8190/kernel'
build/core/Makefile:44: warning: ignoring old commands for target 'CyanogenMod/out/target/product/lc1810_8190/kernel'
Install: CyanogenMod/out/target/product/lc1810_8190/recovery/root/sbin/nandroid-md5.sh
Install: CyanogenMod/out/target/product/lc1810_8190/recovery/root/sbin/killrecovery.sh
Install: CyanogenMod/out/target/product/lc1810_8190/recovery/root/sbin/parted
Install: CyanogenMod/out/target/product/lc1810_8190/recovery/root/sbin/sdparted
Install: CyanogenMod/out/target/product/lc1810_8190/recovery/root/sbin/install-su.sh
target StaticExecutable: su.recovery (CyanogenMod/out/target/product/lc1810_8190/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/LINKED/su.recovery)
Install: CyanogenMod/out/target/product/lc1810_8190/recovery/root/sbin/run-su-daemon.sh
target StaticExecutable: recovery_e2fsck (CyanogenMod/out/target/product/lc1810_8190/obj/RECOVERY_EXECUTABLES/recovery_e2fsck_intermediates/LINKED/e2fsck)
CyanogenMod/out/target/product/lc1810_8190/obj/lib/crtbegin_static.o:crtbrand.c:function _start: error: undefined reference to '__libc_init'
..............................many errors like this..........................
......
......
collect2: error: ld returned 1 exit status
make: *** [CyanogenMod/out/target/product/lc1810_8190/obj/RECOVERY_EXECUTABLES/su.recovery_intermediates/LINKED/su.recovery] Error 1
make: *** Waiting for unfinished jobs....
....
collect2: error: ld returned 1 exit status
make: *** [CyanogenMod/out/target/product/lc1810_8190/obj/RECOVERY_EXECUTABLES/recovery_e2fsck_intermediates/LINKED/e2fsck] Error 1
build error!
At first I guess if something was lost, then I download bionic/libc/private, but the problem doesn't gone.
I want to build a Cyanogenmod 11 for my device because the offical rom is too ugly and too old.
Thanks a lot.

Related

[Q] Having issues building from source

I've been trying to compile jt's ICS rom, but I've been running into a number of different issues. I'm new to this whole thing, but I would really like to learn as much as possible and hopefully be able to start modding roms. I've done a ton of reading and trial/error all week (I started a few days before jt dropped ICS on the Infuse), but I seem to have hit a brick wall. Instead of bashing my head (and probably screwing things up more), I decided to stop and ask for help. Here is what I've done so far (I'm on OS X 10.7.3 btw):
I read the full "Getting Started" section of http://source.google.com (probably twice by now), and followed their instructions for initializing the build environment in OS X (i.e. getting all necessary software, creating a case-sensitive dev environment, initializing and syncing repo, etc)
I did the OS X 10.7 "hacks" from the CM wiki's SGS II compile guide.
Cloned the following repos from jt:
android_device_samsung_infuse4g
android_device_samsung_aries-common
android_vendor_cm
android_kernel_samsung_dempsey
(I'm switching to the terminal commands + output in code boxes now)
[email protected]:/Volumes/android/ROM_DIR$ . build/envsetup.sh
Code:
including device/samsung/maguro/vendorsetup.sh
including device/samsung/tuna/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:/Volumes/android/ROM_DIR$ lunch full_infuse4g-eng
Code:
build/core/product_config.mk:193: *** _nic.PRODUCTS.[[device/samsung/infuse4g/full_infuse4g.mk]]: "vendor/samsung/aries-common/aries-vendor-blobs.mk" does not exist. Stop.
** Don't have a product spec for: 'full_infuse4g'
** Do you have the right repo manifest?
I noticed that jt's extract-files.sh is saving some blobs as 'infuse-vendor-blobs.mk' so I cp'd them to the name/location above:
[email protected]:/Volumes/android/ROM_DIR$ sudo cp vendor/samsung/infuse4g/infuse4g-vendor-blobs.mk vendor/samsung/aries-common/aries-vendor-blobs.mk
I re-read CM's build wiki and saw that they cp the device's buildspec.mk to system/buildspec.mk
[email protected]:/Volumes/android/ROM_DIR$ sudo cp device/samsung/infuse4g/infuse4g.mk system/buildspec.mk
[email protected]:/Volumes/android/ROM_DIR$ . build/envsetup.sh
Code:
including device/samsung/maguro/vendorsetup.sh
including device/samsung/tuna/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:/Volumes/android/ROM_DIR$ lunch full_infuse4g-eng
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full_infuse4g
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=darwin
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
[email protected]:/Volumes/android/ROM_DIR$ make -j4 otapackage
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full_infuse4g
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=darwin
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
Checking build tools versions...
Please install the 10.5 SDK on this machine at /Developer/SDKs/MacOSX10.5.sdk
external/qemu/Makefile.android:82: *** Aborting the build.. Stop.
Created a symlink for the OS X SDK in the location above:
[email protected]:/Volumes/android/ROM_DIR$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk /Developer/SDKs/MacOSX10.5.sdk
[email protected]:/Volumes/android/ROM_DIR$ make -j4 otapackage
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=full_infuse4g
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=darwin
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/Makefile:25: warning: overriding commands for target `out/target/product/infuse4g/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:25: warning: ignoring old commands for target `out/target/product/infuse4g/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/infuse4g/system/lib/egl/libGLES_android.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/infuse4g/system/lib/egl/libGLES_android.so'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/infuse4g/system/lib/libril.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/infuse4g/system/lib/libril.so'
build/core/Makefile:25: warning: overriding commands for target `out/target/product/infuse4g/system/bin/rild'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/infuse4g/system/bin/rild'
No private recovery resources for TARGET_DEVICE infuse4g
Header: out/host/darwin-x86/obj/include/libexpat/expat.h
Header: out/host/darwin-x86/obj/include/libexpat/expat_external.h
Header: out/target/product/infuse4g/obj/include/libexpat/expat.h
Header: out/target/product/infuse4g/obj/include/libexpat/expat_external.h
Header: out/host/darwin-x86/obj/include/libpng/png.h
Header: out/host/darwin-x86/obj/include/libpng/pngconf.h
Header: out/host/darwin-x86/obj/include/libpng/pngusr.h
Header: out/target/product/infuse4g/obj/include/libpng/png.h
Header: out/target/product/infuse4g/obj/include/libpng/pngconf.h
Header: out/target/product/infuse4g/obj/include/libpng/pngusr.h
Header: out/target/product/infuse4g/obj/include/libsonivox/eas.h
Header: out/target/product/infuse4g/obj/include/libsonivox/eas_types.h
Header: out/target/product/infuse4g/obj/include/libsonivox/jet.h
Header: out/target/product/infuse4g/obj/include/libsonivox/eas_reverb.h
Header: out/target/product/infuse4g/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: out/target/product/infuse4g/obj/include/libwpa_client/wpa_ctrl.h
Notice file: system/core/libmincrypt/NOTICE -- out/host/darwin-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Directory: out/target/product/infuse4g/root/sbin
Directory: out/target/product/infuse4g/root/dev
Directory: out/target/product/infuse4g/root/proc
Directory: out/target/product/infuse4g/root/system
Directory: out/target/product/infuse4g/root/sys
Directory: out/target/product/infuse4g/root/data
prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc -mthumb-interwork -Ibionic/libc/private -DCRT_LEGACY_WORKAROUND -Ibionic/libc/private -o out/target/product/infuse4g/obj/lib/crtbegin_static.o -c bionic/libc/arch-arm/bionic/crtbegin_static.S
prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc -mthumb-interwork -Ibionic/libc/private -DCRT_LEGACY_WORKAROUND -Ibionic/libc/private -o out/target/product/infuse4g/obj/lib/crtend_so.o -c bionic/libc/arch-arm/bionic/crtend_so.S
prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc -mthumb-interwork -Ibionic/libc/private -DCRT_LEGACY_WORKAROUND -Ibionic/libc/private -o out/target/product/infuse4g/obj/lib/crtbegin_so.o -c bionic/libc/arch-arm/bionic/crtbegin_so.S
prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc -mthumb-interwork -Ibionic/libc/private -DCRT_LEGACY_WORKAROUND -Ibionic/libc/private -o out/target/product/infuse4g/obj/lib/crtend_android.o -c bionic/libc/arch-arm/bionic/crtend.S
Notice file: system/core/init/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//root/init.txt
Notice file: system/core/liblog/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//system/lib/liblog.a.txt
Notice file: system/core/libcutils/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//system/lib/libcutils.a.txt
Notice file: bionic/libc/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//system/lib/libc.a.txt
Notice file: bionic/libc/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//system/lib/libc.so.txt
Notice file: bionic/libc/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//system/lib/libc_common.a.txt
Notice file: bionic/libdl/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//system/lib/libdl.so.txt
Notice file: bionic/libstdc++/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//system/lib/libstdc++.so.txt
make: *** No rule to make target `device/samsung/aries-common/lpm.rc', needed by `out/target/product/infuse4g/root/lpm.rc'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: bionic/libm/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//system/lib/libm.so.txt
Notice file: system/core/adb/NOTICE -- out/target/product/infuse4g/obj/NOTICE_FILES/src//root/sbin/adbd.txt
A couple notices and warnings in the output above, but this is the error that stopped it:
make: *** No rule to make target `device/samsung/aries-common/lpm.rc', needed by `out/target/product/infuse4g/root/lpm.rc'. Stop.
How do I fix that? Also, were my assumptions earlier about cp'ing the blobs and the buildspec correct, or did I just mess things up?
Any help would be greatly appreciated, even if it is a link to a step that I might have missed in the compile process. Thanks in advance!
(Mods: I couldn't decide if this belongs in development or Q&A...if it's in the wrong section, let me know and I'll remove & repost in the right place)

[Q] Building RootBox help

Hello everyone I am on Linux Mint and I am working on compiling android source and i have been having a lot of trouble. When I try to build for my phone I enter the command " . build_rootbox.sh mako nosync 4 " and this is what i get.
Starting RootBox build for mako
including vendor/rootbox/vendorsetup.sh
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=rootbox_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-17-generic-x86_64-with-LinuxMint-14-nadia
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=/home/rj/rootbox/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=rootbox_mako
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-17-generic-x86_64-with-LinuxMint-14-nadia
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=/home/rj/rootbox/out
============================================
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory
find: `src': No such file or directory
build/core/base_rules.mk:528: system/core/mkbootimg/Android.mk: Module "unpackbootimg" has useless module tags: eng. It will be installed anyway.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Effect_Tick.ogg:system/media/audio/ui/Effect_Tick.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/VideoRecord.ogg:system/media/audio/ui/VideoRecord.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/camera_click.ogg:system/media/audio/ui/camera_click.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/LowBattery.ogg:system/media/audio/ui/LowBattery.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Dock.ogg:system/media/audio/ui/Dock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Undock.ogg:system/media/audio/ui/Undock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Lock.ogg:system/media/audio/ui/Lock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/Unlock.ogg:system/media/audio/ui/Unlock.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressStandard_120.ogg:system/media/audio/ui/KeypressStandard.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressSpacebar_120.ogg:system/media/audio/ui/KeypressSpacebar.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressDelete_120.ogg:system/media/audio/ui/KeypressDelete.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/effects/ogg/KeypressReturn_120.ogg:system/media/audio/ui/KeypressReturn.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Argon.ogg:system/media/audio/alarms/Argon.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Carbon.ogg:system/media/audio/alarms/Carbon.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Helium.ogg:system/media/audio/alarms/Helium.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Krypton.ogg:system/media/audio/alarms/Krypton.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Neon.ogg:system/media/audio/alarms/Neon.ogg ignored.
PRODUCT_COPY_FILES frameworks/base/data/sounds/alarms/ogg/Oxygen.ogg:system/media/audio/alarms/Oxygen.ogg ignored.
build/core/Makefile:43: warning: overriding commands for target `/home/rj/rootbox/out/target/product/mako/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:505: warning: ignoring old commands for target `/home/rj/rootbox/out/target/product/mako/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES vendor/rootbox/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE mako
make -C kernel/lge/mako O=/home/rj/rootbox/out/target/product/mako/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/rj/rootbox/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-" mako_defconfig
make[1]: Entering directory `/home/rj/rootbox/kernel/lge/mako'
host C++: clang <= external/clang/tools/driver/cc1_main.cpp
host C++: clang <= external/clang/tools/driver/cc1as_main.cpp
host C++: clang <= external/clang/tools/driver/driver.cpp
HOSTCC scripts/kconfig/conf.o
/home/rj/rootbox/kernel/lge/mako/scripts/kconfig/conf.c:684:1: fatal error: opening dependency file scripts/kconfig/.conf.o.d: Permission denied
compilation terminated.
make[3]: *** [scripts/kconfig/conf.o] Error 1
make[2]: *** [mako_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/rj/rootbox/kernel/lge/mako'
make: *** [/home/rj/rootbox/out/target/product/mako/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
Total time elapsed: 2 minutes (139.057643694 seconds)
If anyone has any ideas please let me know. Also FYI this is RootBox for the nexus 4 (mako)
What are you doing exactly?

[HELP] Learning to use Linaro toolchain - build error

Ey !
Im currently trying to build Euphoria OS for Nexus 5 using arm-cortex_a15-linux-gnueabihf-linaro_4.9.3-2015.03 toolchain from here.
I edited /build/envsetup.sh file like it :
Code:
# The gcc toolchain does not exists for windows/cygwin. In this case, do not reference it.
export ANDROID_TOOLCHAIN=
export ANDROID_TOOLCHAIN_2ND_ARCH=
local ARCH=$(get_build_var TARGET_ARCH)
case $ARCH in
x86) toolchaindir=x86/x86_64-linux-android-$targetgccversion/bin
;;
x86_64) toolchaindir=x86/x86_64-linux-android-$targetgccversion/bin
;;
arm) toolchaindir=arm/arm-cortex_a15-linux-gnueabihf-$targetgccversion/bin
;;
arm64) toolchaindir=aarch64/aarch64-linux-android-$targetgccversion/bin;
toolchaindir2=arm/arm-linux-androideabi-$targetgccversion2/bin
;;
mips|mips64) toolchaindir=mips/mips64el-linux-android-$targetgccversion/bin
;;
*)
echo "Can't find toolchain for unknown architecture: $ARCH"
toolchaindir=xxxxxxxxx
;;
esac
if [ -d "$gccprebuiltdir/$toolchaindir" ]; then
export ANDROID_TOOLCHAIN=$gccprebuiltdir/$toolchaindir
fi
if [ -d "$gccprebuiltdir/$toolchaindir2" ]; then
export ANDROID_TOOLCHAIN_2ND_ARCH=$gccprebuiltdir/$toolchaindir2
fi
unset ANDROID_KERNEL_TOOLCHAIN_PATH
case $ARCH in
arm)
# Legacy toolchain configuration used for ARM kernel compilation
toolchaindir=arm/arm-cortex_a15-linux-gnueabihf-$targetgccversion/bin
if [ -d "$gccprebuiltdir/$toolchaindir" ]; then
export ARM_EABI_TOOLCHAIN="$gccprebuiltdir/$toolchaindir"
ANDROID_KERNEL_TOOLCHAIN_PATH="$ARM_EABI_TOOLCHAIN":
fi
;;
*)
# No need to set ARM_EABI_TOOLCHAIN for other ARCHs
;;
esac
LINE 136 TO 178
I edited too, /build/core/combo/TARGET_linux-arm.mk, like it :
Code:
# Decouple NDK library selection with platform compiler version
$(combo_2nd_arch_prefix)TARGET_NDK_GCC_VERSION := linaro_4.9.3-2015.03
ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),)
$(combo_2nd_arch_prefix)TARGET_GCC_VERSION := linaro_4.9.3-2015.03
LINE 37 TO 41
Then, i face this error :
Code:
[email protected]:~$ cd '/home/thomas/Bureau/Euphoria-OS'
[email protected]:~/Bureau/Euphoria-OS$ . build/envsetup.sh
including device/moto/shamu/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/deb/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/htc/flounder/vendorsetup.sh
including vendor/eos/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/Bureau/Euphoria-OS/$ brunch hammerhead
including vendor/eos/vendorsetup.sh
============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=5.1.1
ROM_VERSION=1.1-hammerhead-UNOFFICIAL-20150708
TARGET_PRODUCT=eos_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_GCC_VERSION=linaro_4.9.3-2015.03
TARGET_NDK_GCC_VERSION=linaro_4.9.3-2015.03
TARGET_KERNEL_TOOLCHAIN=linaro_4.9.3-2015.03
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LYZ28E
OUT_DIR=/home/thomas/Bureau/Euphoria-OS/out
============================================
============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=5.1.1
ROM_VERSION=1.1-hammerhead-UNOFFICIAL-20150708
TARGET_PRODUCT=eos_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_GCC_VERSION=linaro_4.9.3-2015.03
TARGET_NDK_GCC_VERSION=linaro_4.9.3-2015.03
TARGET_KERNEL_TOOLCHAIN=linaro_4.9.3-2015.03
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LYZ28E
OUT_DIR=/home/thomas/Bureau/Euphoria-OS/out
============================================
find: `dummy': No such file or directory
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libloc_eng.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libloc_eng.so'
PRODUCT_COPY_FILES vendor/eos/prebuilt/common/vendor/lib/drm/libdrmwvmplugin.so:system/vendor/lib/drm/libdrmwvmplugin.so ignored.
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
PRODUCT_COPY_FILES vendor/eos/prebuilt/common/vendor/lib/mediadrm/libwvdrmengine.so:system/vendor/lib/mediadrm/libwvdrmengine.so ignored.
No private recovery resources for TARGET_DEVICE hammerhead
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt_32 (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
make -C kernel/lge/hammerhead O=/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/thomas/Bureau/Euphoria-OS/prebuilts/gcc/linux-x86/arm/arm-cortex_a15-linux-gnueabihf-linaro_4.9.3-2015.03/bin/arm-eabi-" headers_install
host StaticLib: libhost_32 (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
make[1]: Entering directory `/home/thomas/Bureau/Euphoria-OS/kernel/lge/hammerhead'
host Executable: mkbootfs (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
host StaticLib: libsepol_32 (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
host StaticLib: libpcre_32 (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/libpcre.a)
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-linaro_4.9.3-2015.03/bin/arm-linux-androideabi-gcc: No such file or directory
make: *** [/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/obj/lib/crtbegin_static1.o] Error 127
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/thomas/Bureau/Euphoria-OS/kernel/lge/hammerhead'
#### make failed to build some targets (08:04 (mm:ss)) ####
real 8m4.067s
user 2m41.268s
sys 0m32.045s
[email protected]:~/Bureau/Euphoria-OS$
I cant get rid of this error.
Does somebody knows what files do i need to edit to correctly build Euphoria ?
Thanks !
I used this thread to switch the tool chain ... Try it.
shri_chanakya said:
I used this thread to switch the tool chain ... Try it.
Click to expand...
Click to collapse
Trying right now, thanks man !
EDIT : Some errors i sucessfully fixed. Running now my optimized build

CM14 Building (fail?!)

Hey Guys,
im trying to build CM14 for the galaxy S6 (g920f/i).
I 'm on Ubuntu 16.04 64bit with virtaulbox. I already done with the most steps like setting up git and syncing the repo. Now i have to repo sync device specific files, but it fails every time with a fetching error:
Code:
Fetching projects: 99% (581/586) error: Cannot fetch CyanogenMod/android_device_samsung_zerofltexx
Warn: --force-broken, continuing to sync
Fatal: couldn't find remote ref refs/heads/cm-14
error: cannot fetch bmc08gt/kernel_samsung_exynos7420
Warn: --force-broken, continuing to sync
Fetching projects: 100% (586/586)
Error: exited sync due to fetch errors
I tryed to sync like 10000000 times with commands like:
repo sync -j4
repo sync -j4 -f
repo sync -j4 -f --force-broken
Any ideas?
The "couldn't find remote ref refs/heads/cm-14" part shows the actual error.
There's no such branch "cm-14". Check your xml files.
OK, i got all thing together, but now i have a new problem
Code:
[email protected]:~/android/system$ source build/envsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
[email protected]:~/android/system$ brunch zerofltexx
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
CM_VERSION=14.0-20161220-UNOFFICIAL-zerofltexx
TARGET_PRODUCT=cm_zerofltexx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NBD90Z
OUT_DIR=/home/spongebob/android/system/out
============================================
make: Verzeichnis „/home/spongebob/android/system“ wird betreten
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
CM_VERSION=14.0-20161220-UNOFFICIAL-zerofltexx
TARGET_PRODUCT=cm_zerofltexx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NBD90Z
OUT_DIR=/home/spongebob/android/system/out
============================================
Running kati to generate build-cm_zerofltexx.ninja...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.0
CM_VERSION=14.0-20161220-UNOFFICIAL-zerofltexx
TARGET_PRODUCT=cm_zerofltexx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-31-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NBD90Z
OUT_DIR=/home/spongebob/android/system/out
============================================
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/binary.mk:1236: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1236: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1236: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1236: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: "/home/spongebob/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates": Datei oder Verzeichnis nicht gefunden
No private recovery resources for TARGET_DEVICE zerofltexx
vendor/cm/build/tasks/kernel.mk:160: ***************************************************************
vendor/cm/build/tasks/kernel.mk:161: * Using prebuilt kernel binary instead of source *
vendor/cm/build/tasks/kernel.mk:162: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
vendor/cm/build/tasks/kernel.mk:163: * Please configure your device to download the kernel *
vendor/cm/build/tasks/kernel.mk:164: * source repository to kernel/samsung/exynos7420
vendor/cm/build/tasks/kernel.mk:165: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
vendor/cm/build/tasks/kernel.mk:166: * for more information *
vendor/cm/build/tasks/kernel.mk:167: ***************************************************************
build/core/binary.mk:703: warning: overriding commands for target `/home/spongebob/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:703: warning: ignoring old commands for target `/home/spongebob/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.cc'
build/core/binary.mk:708: warning: overriding commands for target `/home/spongebob/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/binary.mk:708: warning: ignoring old commands for target `/home/spongebob/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto/frameworks/base/tools/aapt2/Format.pb.h'
build/core/base_rules.mk:316: warning: overriding commands for target `/home/spongebob/android/system/out/target/product/zerofltexx/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/home/spongebob/android/system/out/target/product/zerofltexx/root/res/images/charger/battery_fail.png'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/spongebob/android/system/out/target/product/zerofltexx/kernel', needed by '/home/spongebob/android/system/out/target/product/zerofltexx/boot.img', missing and no known rule to make it
build/core/ninja.mk:151: die Regel für Ziel „ninja_wrapper“ scheiterte
make: *** [ninja_wrapper] Fehler 1
make: Verzeichnis „/home/spongebob/android/system“ wird verlassen
#### make failed to build some targets (21:13 (mm:ss)) ####
[email protected]:~/android/system$
i think my laptop trolls like a boss.
Code:
vendor/cm/build/tasks/kernel.mk:160: ***************************************************************
vendor/cm/build/tasks/kernel.mk:161: * Using prebuilt kernel binary instead of source *
vendor/cm/build/tasks/kernel.mk:162: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
vendor/cm/build/tasks/kernel.mk:163: * Please configure your device to download the kernel *
vendor/cm/build/tasks/kernel.mk:164: * source repository to kernel/samsung/exynos7420
vendor/cm/build/tasks/kernel.mk:165: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
vendor/cm/build/tasks/kernel.mk:166: * for more information *
vendor/cm/build/tasks/kernel.mk:167: ***************************************************************
Console output says everything
Sry i'm so stupid? its my first try to build from source.
ItzTazzy said:
Sry i'm so stupid its my first try to build from source.
Click to expand...
Click to collapse
hey bro can you share when is done? thx
When its done i will share it ?
ItzTazzy said:
When its done i will share it
Click to expand...
Click to collapse
Yes. Please

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