CM14 Building (fail?!) - Galaxy S6 Q&A, Help & Troubleshooting

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

Related

building from cyanogen git

Hi all.
Im trying to build firmwre from git
repo init -u git://github.com/CyanogenMod/android.git -b froyo
cd ~/android/system/vendor/cyanogen/
./get-rommanager
Code:
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.2.1
TARGET_PRODUCT=cyanogen_dream_sapphire
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=FRG83
And in failing at
make -j10 bacon
Code:
Install: out/host/linux-x86/bin/dx
Copying: out/target/common/obj/JAVA_LIBRARIES/android-common_intermediates/classes-full-debug.jar
Install: out/host/linux-x86/lib/libneo_cgi.so
Install: out/host/linux-x86/framework/droiddoc.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/jsr305_intermediates/classes-full-names.jar
target asm: libicudata-large
<= out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libicudata-large_intermediates/icu_data_large.S
make: *** No rule to make target `out/target/product/dream_sapphire/obj/lib/libskiagl.so',
needed by `out/target/product/dream_sapphire/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so'. Stop.
No rule to make target `out/target/product/dream_sapphire/obj/lib/libskiagl.so'
Whats that mean?
Google does not tell me something usefull.
Halp!
bump for thread

[Q] Having issues compiling my first CM kernel build.

Hello all!
I have recently started to get my system ready for some android software and kernel programming. I am following the guide from the cyanogenmod website. I am unable to post an exact link due to my low post count, apologies. If you really need to see which guide I am using, message me and ill get it to you.
I am stuck on the last step of "Configure the Build."
When I send "make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig" to terminal, the following is my output.
Code:
[email protected]:~/android/system# make ARCH=arm CROSS_COMPILE=$CCOMPILER oldconfig
/bin/bash: bison: command not found
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.1.2
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-19-generic-x86_64-with-Ubuntu-13.04-raring
HOST_BUILD_TYPE=release
BUILD_ID=JZO54K
OUT_DIR=/root/android/system/out
============================================
grep: build/target/board/generic/recovery.fstab: No such file or directory
find: `src': No such file or directory
build/core/tasks/kernel.mk:82: **********************************************************
build/core/tasks/kernel.mk:83: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:84: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:85: * BoardConfig.mk file *
build/core/tasks/kernel.mk:86: **********************************************************
make: *** No rule to make target `oldconfig'. Stop.
[email protected]:~/android/system#
I am unable to locate BoardConfig.mk for an unknown reason. Also, I dont know why the GREP returned no such file or directory, and why src wasnt found either.
Please help, I am almost completely set up to start helping the community!
Thanks,
Azraelpwnz

[Q] How to build Android Source for Moto G?

I want to know how to build android source code
using Motorola-provided sources at sourceforge.net/projects/motog.motorola/files
I tried following works:
Download pure Android Sources from google
Replace some files with Motorola-provided sources
Follow README file instructions
----------------------------- My terminal output messages ------------------------------------
[email protected]:~/android1$ source build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/android1$ lunch generic-user
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=out
============================================
[email protected]:~/android1$ make BOARD_HAVE_BLUETOOTH=true TARGET_BOARD_PLATFORM=msm8226 out/target/product/generic/system/bin/bluetoothd
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.8.0-29-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=out
============================================
Checking build tools versions...
motorola/security/moto_crypto/Android.mk:15: build/dlkm/AndroidKernelModule.mk: No such file or directory
make: *** No rule to make target `build/dlkm/AndroidKernelModule.mk'. Stop.
Shouldn't you have a device/motorola/falcon or something similar included upon running lunch? (At least if you're trying to build en entire ROM vs just a kernel.)
You might be missing a dependency, check out line 15 in that Android.mk file for possible clues.
Thanks for reply
I think I need some more files to succeed in building but there are no more files at Motorola Opensource Site
I've already suceeded in building for GS3 in the same way.
bump

[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

module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'

module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'
Os-Ubuntu 18.10
android os-lineage os 16
download the lineage os 16 code using git
cd lineage_16
repo sync
make clobber
output
----------
15:09:36 Entire build directory removed.
source build/envsetup.sh
o/p
------------
including device/generic/car/vendorsetup.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 device/generic/uml/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including vendor/lineage/vendorsetup.sh
including sdk/bash_completion/adb.bash
lunch
o/p
-------
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. aosp_car_arm-userdebug
8. aosp_car_arm64-userdebug
9. aosp_car_x86-userdebug
10. aosp_car_x86_64-userdebug
11. mini_emulator_arm64-userdebug
12. m_e_arm-userdebug
13. mini_emulator_x86_64-userdebug
14. mini_emulator_x86-userdebug
15. uml-userdebug
16. aosp_angler-userdebug
Which would you like? [aosp_arm-eng] :11
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=mini_emulator_arm64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
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-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out
============================================
$make -j4
o/p
--------------
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=mini_emulator_arm64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
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-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out
============================================
[1/1] /home/taqi/Documents/android-lineage-16.0/out/soong/.mi...cuments/android-lineage-16.0/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[80/80] /home/taqi/Documents/android-lineage-16.0/out/soong/....ome/taqi/Documents/android-lineage-16.0/out/soong/build.ninja
FAILED: /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja
/home/taqi/Documents/android-lineage-16.0/out/soong/.bootstrap/bin/soong_build -t -l /home/taqi/Documents/android-lineage-16.0/out/.module_paths/Android.bp.list -b /home/taqi/Documents/android-lineage-16.0/out/soong -n /home/taqi/Documents/android-lineage-16.0/out -d /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja.d -o /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja Android.bp
error: vendor/lineage/build/soong/Android.bp:31:8: module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'
ninja: build stopped: subcommand failed.
15:49:16 soong bootstrap failed with: exit status 1
#### failed to build some targets (03:03 (mm:ss)) ####
Please conduct "repo sync" again. This issue will solve.
I've got the same issue. Unfortunately repo sync did not fix it. What is the patch/commit that fixes this?
SaburoSiro said:
Please conduct "repo sync" again. This issue will solve.
Click to expand...
Click to collapse
Could you please link the commit?
[email protected] said:
Os-Ubuntu 18.10
android os-lineage os 16
download the lineage os 16 code using git
cd lineage_16
repo sync
make clobber
output
----------
15:09:36 Entire build directory removed.
source build/envsetup.sh
o/p
------------
including device/generic/car/vendorsetup.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 device/generic/uml/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including vendor/lineage/vendorsetup.sh
including sdk/bash_completion/adb.bash
lunch
o/p
-------
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. aosp_car_arm-userdebug
8. aosp_car_arm64-userdebug
9. aosp_car_x86-userdebug
10. aosp_car_x86_64-userdebug
11. mini_emulator_arm64-userdebug
12. m_e_arm-userdebug
13. mini_emulator_x86_64-userdebug
14. mini_emulator_x86-userdebug
15. uml-userdebug
16. aosp_angler-userdebug
Which would you like? [aosp_arm-eng] :11
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=mini_emulator_arm64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
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-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out
============================================
$make -j4
o/p
--------------
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=mini_emulator_arm64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
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-a15
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.18.0-10-generic-x86_64-Ubuntu-18.10
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR2.181005.003
OUT_DIR=/home/taqi/Documents/android-lineage-16.0/out
============================================
[1/1] /home/taqi/Documents/android-lineage-16.0/out/soong/.mi...cuments/android-lineage-16.0/out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[80/80] /home/taqi/Documents/android-lineage-16.0/out/soong/....ome/taqi/Documents/android-lineage-16.0/out/soong/build.ninja
FAILED: /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja
/home/taqi/Documents/android-lineage-16.0/out/soong/.bootstrap/bin/soong_build -t -l /home/taqi/Documents/android-lineage-16.0/out/.module_paths/Android.bp.list -b /home/taqi/Documents/android-lineage-16.0/out/soong -n /home/taqi/Documents/android-lineage-16.0/out -d /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja.d -o /home/taqi/Documents/android-lineage-16.0/out/soong/build.ninja Android.bp
error: vendor/lineage/build/soong/Android.bp:31:8: module "generated_kernel_includes": cmd: unknown variable '$(KERNEL_MAKE_FLAGS)'
ninja: build stopped: subcommand failed.
15:49:16 soong bootstrap failed with: exit status 1
Click to expand...
Click to collapse
[email protected] said:
#### failed to build some targets (03:03 (mm:ss)) ####
Click to expand...
Click to collapse
your command make -j4 is wrong. Just use 'mka bacon -j4' if you are building a rom.
Im having the same issue building for flounder.
Hi. A am having the same issue.
Dut found solution, may be.
This link can be helpful.
This is a device tree adaptation problem. You just need to do a "breakfast <device_code>", and the error that it throws will automatically tell you what filename that your aosp_device.mk should have...
In my case, I had the same problem, when I'm trying with xpe_sunny.mk, but the actual string I should have was xperience_sunny.mk
After adapting my device tree (Android.mk, common lunch choices, rom.dependencies, etc,) then PRODUCT_SOONG_NAMESPACES successfully took all the directories that it needed.

Categories

Resources