Error Compiling CM13.0 - Android Q&A, Help & Troubleshooting

Hi, I’m trying to compile cm13.0 to an unsupported device but I got the following error
Code:
"ebtables is disabled on this build"
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
make: Entering directory `/home/jesus/android/system'
hardware/qcom/display/msm8226/libgralloc/../common.mk:62: *** missing `endif'. Stop.
make: Leaving directory `/home/jesus/android/system'
#### make failed to build some targets (57 seconds) ####
Anyone have any idea of what it is?

Try to go to hardware/qcom/display/msm8226/libgralloc/../common.mk and add endif

dani020110 said:
Try to go to hardware/qcom/display/msm8226/libgralloc/../common.mk and add endif
Click to expand...
Click to collapse
How I add endif?

jesusalfonsojg7 said:
How I add endif?
Click to expand...
Click to collapse
Just write it down. There is an if clause anywhere, that is not closed. Look for something like this:
Code:
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/lenovo/lifetab_s9512/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
and just add endif to make it look like this
Code:
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/lenovo/lifetab_s9512/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
[COLOR="Red"]endif[/COLOR]

MichaelSX said:
Just write it down. There is an if clause anywhere, that is not closed. Look for something like this:
Code:
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/lenovo/lifetab_s9512/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
and just add endif to make it look like this
Code:
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/lenovo/lifetab_s9512/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
[COLOR="Red"]endif[/COLOR]
Click to expand...
Click to collapse
I'm gonna try. Thanks!
Enviado desde mi ZTE Blade Apex2 mediante Tapatalk

The solution above already solve it! but i'm having the following errors which it's less instructive
logtags: /home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/src/src/java/com/android/internal/telephony/EventLogTags.java <= frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags
logtags: /home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/src/core/java/com/android/server/EventLogTags.java <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
logtags: /home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
logtags: /home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/am/EventLogTags.java <= frameworks/base/services/core/java/com/android/server/am/EventLogTags.logtags
make: *** No rule to make target `kernel/zte/msm8226/arch/arm/configs//kernel/zte/msm8226/arch/arm/configs/msm8226_P892E10_defconfig', needed by `/home/jesus/android/system/out/target/product/msm8226/obj/KERNEL_OBJ/.config'. Stop.
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
make: Leaving directory `/home/jesus/android/system'
#### make failed to build some targets (01:16 (mm:ss)) ####
Click to expand...
Click to collapse
Anyone knows what is this? (avoiding the "no rule to target kernel")

jesusalfonsojg7 said:
The solution above already solve it! but i'm having the following errors which it's less instructive
logtags: /home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/src/src/java/com/android/internal/telephony/EventLogTags.java <= frameworks/opt/telephony/src/java/com/android/internal/telephony/EventLogTags.logtags
logtags: /home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/src/core/java/com/android/server/EventLogTags.java <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
logtags: /home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/EventLogTags.java <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
logtags: /home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/java/com/android/server/am/EventLogTags.java <= frameworks/base/services/core/java/com/android/server/am/EventLogTags.logtags
make: *** No rule to make target `kernel/zte/msm8226/arch/arm/configs//kernel/zte/msm8226/arch/arm/configs/msm8226_P892E10_defconfig', needed by `/home/jesus/android/system/out/target/product/msm8226/obj/KERNEL_OBJ/.config'. Stop.
make: *** Waiting for unfinished jobs....
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
make: Leaving directory `/home/jesus/android/system'
#### make failed to build some targets (01:16 (mm:ss)) ####
Anyone knows what is this? (avoiding the "no rule to target kernel")
Click to expand...
Click to collapse
Answer these..
What is the value of TARGET_KERNEL_CONFIG ?
What defconfig do you use for your Kernel ? (You Should know this)

Arvind7352 said:
Answer these..
What is the value of TARGET_KERNEL_CONFIG ?
What defconfig do you use for your Kernel ? (You Should know this)
Click to expand...
Click to collapse
at the TARGET_KERNEL_CONFIG= /kernel/zte/msm8226/arch/arm/configs/msm8226_P892E10_defconfig but i created the folder "kernel/zte/msm8226" manually and put within my kernel

jesusalfonsojg7 said:
at the TARGET_KERNEL_CONFIG= /kernel/zte/msm8226/arch/arm/configs/msm8226_P892E10_defconfig but i created the folder "kernel/zte/msm8226" manually and put within my kernel
Click to expand...
Click to collapse
Can you share the Kernel source you're using?

Arvind7352 said:
Can you share the Kernel source you're using?
Click to expand...
Click to collapse
https://github.com/Algesat/BladeApex2 This one is the kernel used to build TWRP for my device (I didn't make the custom recovery)

jesusalfonsojg7 said:
https://github.com/Algesat/BladeApex2 This one is the kernel used to build TWRP for my device (I didn't make the custom recovery)
Click to expand...
Click to collapse
Change the Value of TARGET_KERNEL_CONFIG
From
Code:
TARGET_KERNEL_CONFIG= /kernel/zte/msm8226/arch/arm/configs/msm8226_P892E10_defconfig
To
Code:
TARGET_KERNEL_CONFIG := msm8226_P892E10_defconfig
You need to specify the name of the 'defconfig' and not its location.

Arvind7352 said:
Change the Value of TARGET_KERNEL_CONFIG from the previous one to
Code:
TARGET_KERNEL_CONFIG := msm8226_P892E10_defconfig
Click to expand...
Click to collapse
Yeah I already did it and seems like i make it compile, but at the beginning I’ve seen a lot of "warning" messages. It is still compiling but the warnings could affect the rom?

jesusalfonsojg7 said:
Yeah I already did it and seems like i make it compile, but at the beginning Iâ??ve seen a lot of "warning" messages. It is still compiling but the warnings could affect the rom?
Click to expand...
Click to collapse
Show those

Arvind7352 said:
Show those
Click to expand...
Click to collapse
Here is one, but they're a lot and still compiling
external/harfbuzz_ng/src/hb-ot-shape-complex-arabic-fallback.hh:208:65: warning: missing initializer for member 'arabic_fallback_plan_t::num_lookups' [-Wmissing-field-initializers]
static const arabic_fallback_plan_t arabic_fallback_plan_nil = {};
Click to expand...
Click to collapse

The job stop, it returns the following:
Notice file: external/boringssl/NOTICE -- /home/jesus/android/system/out/target/product/msm8226/obj/NOTICE_FILES/src//system/lib/libssl.so.txt
/bin/bash: mvn: command not found
make: *** [/home/jesus/android/system/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.5.2.aar] Error 127
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/jesus/android/system'
#### make failed to build some targets (18:13 (mm:ss)) ####
Click to expand...
Click to collapse

jesusalfonsojg7 said:
Here is one, but they're a lot and still compiling
external/harfbuzz_ng/src/hb-ot-shape-complex-arabic-fallback.hh:208:65: warning: missing initializer for member 'arabic_fallback_plan_t::num_lookups' [-Wmissing-field-initializers]
static const arabic_fallback_plan_t arabic_fallback_plan_nil = {};
Click to expand...
Click to collapse
These aren't KERNEL related, don't worry and let the compilation continue.

Arvind7352 said:
These aren't KERNEL related, don't worry and let the compilation continue.
Click to expand...
Click to collapse
seems like I got a code-related error which stops the building, there is a way to fix those errors without programming knowledge?

jesusalfonsojg7 said:
seems like I got a code-related error which stops the building, there is a way to fix those errors without programming knowledge?
Click to expand...
Click to collapse
Share that, and any kind of error on this thread
http://forum.xda-developers.com/chef-central/android/guide-android-rom-development-t2814763/
Me or any other Guy who has experienced this error can provide you a solution.

Related

Use Raspberry Pi to build Android Project (AOSP)

Hi all !
My current project is to use my Raspberry Pi as a Build Machine to build all Android sources (AOSP). In fact, I'll not build AOSP but the CyanogenMod (wich is mainly a fork from AOSP).
I know this may sound crazy, dumb or useless (according to Google, a 64-bit environment is required, and a lot (>> 4GB) of RAM if you're in a hurry), especially to use an ARM processor to build while all the Makefiles has been written to be used on x86...
But what I'm thinking about is a really cheap, silent, but working build machine, to sync the repo and build nightlies everyday. The first build will take some days but then, only the changes will be build so I think that only some hours per day will be required.
If I success, I'll create a big tutorial to explain what changes was required.
First of all, I had to add the Linux-armv61 arch as Host OS/ARCH :
Code:
[email protected] ~/buildspace/android/system/build $ git diff
diff --git a/core/envsetup.mk b/core/envsetup.mk
index 862b7f0..34eb31a 100644
--- a/core/envsetup.mk
+++ b/core/envsetup.mk
@@ -77,6 +77,10 @@ ifneq (,$(findstring Power,$(UNAME)))
HOST_ARCH := ppc
endif
[COLOR="SeaGreen"]+ifneq (,$(findstring arm,$(UNAME)))
+ HOST_ARCH := armv61
+endif
+[/COLOR]
BUILD_ARCH := $(HOST_ARCH)
ifeq ($(HOST_ARCH),)
then, I did this (because the raspbian ld doesn't support --icf) :
AdamOutler said:
so I did a
Code:
[email protected] ~/adb $ grep -r 'icf=safe' ./*
./build/core/combo/TARGET_linux-arm.mk: -Wl,--icf=safe \
and I removed that icf parameter.
Click to expand...
Click to collapse
-->
Code:
[email protected] ~/buildspace/android/system/build $ git diff
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk
index b36111f..24e0d99 100644
--- a/core/combo/TARGET_linux-arm.mk
+++ b/core/combo/TARGET_linux-arm.mk
@@ -146,7 +146,6 @@ TARGET_GLOBAL_LDFLAGS += \
-Wl,-z,relro \
-Wl,-z,now \
-Wl,--warn-shared-textrel \
[COLOR="Red"]- -Wl,--icf=safe \[/COLOR]
$(arch_variant_ldflags)
# We only need thumb interworking in cases where thumb support
but now I am stuck with this error :
Code:
make -C kernel/samsung/smdk4210 O=/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" headers_install
make[1]: Entering directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: 1: /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
make[1]: Leaving directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/bin/bash: r: command not found
make: [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/lib/crtbegin_static.o] Error 127 (ignored)
[COLOR="SeaGreen"]target SharedLib[/COLOR]: libdl (/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
/usr/bin/ld: error: /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so uses VFP register arguments, /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o does not
/usr/bin/ld: failed to merge target specific data of file /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object.
collect2: ld returned 1 exit status
make: *** [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so] Error 1
I don't really know what I have to do and if it is because the HOST is an arm arch...
It have been a long time since I didn't put my hands in this kind of things and I need help to solve this problems... Thanks in advance !
cmoatoto said:
Hi all !
My current project is to use my Raspberry Pi as a Build Machine to build all Android sources (AOSP). In fact, I'll not build AOSP but the CyanogenMod (wich is mainly a fork from AOSP).
I know this may sound crazy, dumb or useless (according to Google, a 64-bit environment is required, and a lot (>> 4GB) of RAM if you're in a hurry), especially to use an ARM processor to build while all the Makefiles has been written to be used on x86...
But what I'm thinking about is a really cheap, silent, but working build machine, to sync the repo and build nightlies everyday. The first build will take some days but then, only the changes will be build so I think that only some hours per day will be required.
If I success, I'll create a big tutorial to explain what changes was required.
First of all, I had to add the Linux-armv61 arch as Host OS/ARCH :
Code:
[email protected] ~/buildspace/android/system/build $ git diff
diff --git a/core/envsetup.mk b/core/envsetup.mk
index 862b7f0..34eb31a 100644
--- a/core/envsetup.mk
+++ b/core/envsetup.mk
@@ -77,6 +77,10 @@ ifneq (,$(findstring Power,$(UNAME)))
HOST_ARCH := ppc
endif
[COLOR="SeaGreen"]+ifneq (,$(findstring arm,$(UNAME)))
+ HOST_ARCH := armv61
+endif
+[/COLOR]
BUILD_ARCH := $(HOST_ARCH)
ifeq ($(HOST_ARCH),)
then, I did this (because the raspbian ld doesn't support --icf) :
-->
Code:
[email protected] ~/buildspace/android/system/build $ git diff
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk
index b36111f..24e0d99 100644
--- a/core/combo/TARGET_linux-arm.mk
+++ b/core/combo/TARGET_linux-arm.mk
@@ -146,7 +146,6 @@ TARGET_GLOBAL_LDFLAGS += \
-Wl,-z,relro \
-Wl,-z,now \
-Wl,--warn-shared-textrel \
[COLOR="Red"]- -Wl,--icf=safe \[/COLOR]
$(arch_variant_ldflags)
# We only need thumb interworking in cases where thumb support
but now I am stuck with this error :
Code:
make -C kernel/samsung/smdk4210 O=/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" headers_install
make[1]: Entering directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: 1: /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
make[1]: Leaving directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/bin/bash: r: command not found
make: [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/lib/crtbegin_static.o] Error 127 (ignored)
[COLOR="SeaGreen"]target SharedLib[/COLOR]: libdl (/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
/usr/bin/ld: error: /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so uses VFP /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o does not
/usr/bin/ld: failed to merge target specific data of file /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object.
collect2: ld returned 1 exit status
make: *** [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so] Error 1
I don't really know what I have to do and if it is because the HOST is an arm arch...
It have been a long time since I didn't put my hands in this kind of things and I need help to solve this problems... Thanks in advance !
Click to expand...
Click to collapse
Hi There,
First lets roll it back a bit....... I would ditch the kernel building to begin with.... and just see if you can build the OS.
I'd also probably sanity check the toolchains by doing "BUILD_TINY_ANDROID=true make -j<whatever> " This build the very basics of the system and will probably highlight any issues
Looking at it however .... Are you building this on the PI? becuase your kernel build looks like it is still using the x86 tool-chain
Code:
ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt[B]/linux-x86/[/B]toolchain/arm-eabi-4.4.3/bin/arm-eabi-"
One more thing the HOST_ARCH can be just set to arm and not armv61 , I was going to submit the change to AOSP , JBQ has at least said it's a viable . I just haven't be chewing on PI too much! If you end up with a working patch set then feel free to add the AOSP change yourself, they only want the host file and probably the envsetup.mk
Good Luck
trevd said:
Hi There,
First lets roll it back a bit....... I would ditch the kernel building to begin with.... and just see if you can build the OS.
I'd also probably sanity check the toolchains by doing "BUILD_TINY_ANDROID=true make -j<whatever> " This build the very basics of the system and will probably highlight any issues
Looking at it however .... Are you building this on the PI? becuase your kernel build looks like it is still using the x86 tool-chain
Code:
ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt[B]/linux-x86/[/B]toolchain/arm-eabi-4.4.3/bin/arm-eabi-"
One more thing the HOST_ARCH can be just set to arm and not armv61 , I was going to submit the change to AOSP , JBQ has at least said it's a viable. I just haven't be chewing on PI too much! If you end up with a working patch set then feel free to add the AOSP change yourself, they only want the host file and probably the envsetup.mk
Good Luck
Click to expand...
Click to collapse
I launched a
Code:
BUILD_TINY_ANDROID=true make -j1
and I'll tell you what comes out.
Are you building this on the PI? becuase your kernel build looks like it is still using the x86 tool-chain
Code:
ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt[B]/linux-x86/[/B]toolchain/arm-eabi-4.4.3/bin/arm-eabi-"
Click to expand...
Click to collapse
I know that but I had difficulty to fix it.
First of all, I forgot to tell I added this host file :
Code:
[email protected] ~/buildspace/android/system/build $ cat core/combo/HOST_linux-armv61.mk
# Configuration for builds hosted on linux-armv6l.
# $(1): The file to check
define get-file-size
stat --format "%s" "$(1)" | tr -d '\n'
endef
HOST_SDK_TOOLCHAIN_PREFIX :=
ifneq (,$(strip $(wildcard $(HOST_SDK_TOOLCHAIN_PREFIX)/gcc)))
HOST_CC := $(HOST_SDK_TOOLCHAIN_PREFIX)/gcc
HOST_CXX := $(HOST_SDK_TOOLCHAIN_PREFIX)/g++
HOST_AR := $(HOST_SDK_TOOLCHAIN_PREFIX)/ar
endif # $(HOST_SDK_TOOLCHAIN_PREFIX)/gcc exists
HOST_GLOBAL_CFLAGS += -fPIC
HOST_GLOBAL_CFLAGS += -include $(call select-android-config-h,linux-armv61)
HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
HOST_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined
Then, here is the result of "lunch" command (I build for n7000) :
Code:
[email protected] ~/buildspace/android/system $ lunch cm_n7000-userdebug
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.1
TARGET_PRODUCT=cm_n7000
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=armv61
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.27+-armv6l-with-debian-7.0
HOST_BUILD_TYPE=release
BUILD_ID=JOP40D
OUT_DIR=/media/totoext4part/cyanogenmod/system/out
============================================
About the "linux-x86" problem, I searched a lot and I think I have some change to do in tools/releasetools/common.py but I'll wait to understand well toolchains before doing useless bad things.
Here is the "BUILD_TINY_ANDROID=true make -j1" command result.
Code:
make -C kernel/samsung/smdk4210 O=/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" headers_install
make[1]: Entering directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: 1: /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
make[1]: Leaving directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
host C: mkbootfs <= system/core/cpio/mkbootfs.c
cc1: fatal error: build/core/combo/include/arch/linux-armv61/AndroidConfig.h: No such file or directory
compilation terminated.
make: *** [/media/totoext4part/cyanogenmod/system/out/host/linux-armv61/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs.o] Error 1
Ok I have to create some more host files...
Ok, I changed HOST_ARCH from armv61 to arm in build/core/envsetup.mk,
build/core/combo/HOST_linux-armv61.mk became build/core/combo/HOST_linux-arm.mk and in this file, I changed
Code:
HOST_GLOBAL_CFLAGS += -include $(call select-android-config-h,linux-armv61)
to
HOST_GLOBAL_CFLAGS += -include $(call select-android-config-h,linux-arm)
Here is what I got now (with "BUILD_TINY_ANDROID=true make -j1")
Code:
[COLOR="SeaGreen"][email protected][/COLOR] [COLOR="RoyalBlue"]~/buildspace/android/system $[/COLOR] BUILD_TINY_ANDROID=true make -j1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.1
TARGET_PRODUCT=cm_n7000
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=arm
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.27+-armv6l-with-debian-7.0
HOST_BUILD_TYPE=release
BUILD_ID=JOP40D
OUT_DIR=/media/totoext4part/cyanogenmod/system/out
============================================
build/core/Makefile:44: warning: overriding commands for target `/media/totoext4part/cyanogenmod/system/out/target/product/n7000/system/etc/mkshrc'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/media/totoext4part/cyanogenmod/system/out/target/product/n7000/system/etc/mkshrc'
PRODUCT_COPY_FILES system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keychars/qwerty.kcm:system/usr/keychars/qwerty.kcm ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keychars/qwerty2.kcm:system/usr/keychars/qwerty2.kcm ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/idc/qwerty.idc:system/usr/idc/qwerty.idc ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/idc/qwerty2.idc:system/usr/idc/qwerty2.idc ignored.
PRODUCT_COPY_FILES vendor/samsung/n7000/proprietary/system/etc/gps.xml:system/etc/gps.xml ignored.
build/core/tasks/kernel.mk:161: warning: overriding commands for target `TARGET_KERNEL_BINARIES'
device/samsung/galaxys2-common/shbootimg.mk:26: warning: ignoring old commands for target `TARGET_KERNEL_BINARIES'
[COLOR="Olive"]host C[/COLOR]: acp <= build/tools/acp/acp.c
[COLOR="MediumTurquoise"]Import includes file[/COLOR]: /media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/STATIC_LIBRARIES/libhost_intermediates/import_includes
[COLOR="Olive"]host C++[/COLOR]: libhost <= build/libs/host/pseudolocalize.cpp
[COLOR="olive"]host C[/COLOR]: libhost <= build/libs/host/CopyFile.c
[COLOR="olive"]host StaticLib[/COLOR]: libhost (/media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
[COLOR="MediumTurquoise"]Export includes file[/COLOR]: build/tools/acp/Android.mk -- /media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/acp_intermediates/export_includes
[COLOR="Olive"]host Executable[/COLOR]: acp (/media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/acp_intermediates/acp)
[COLOR="MediumTurquoise"]Install: /media/totoext4part/cyanogenmod/system/out/host/linux-arm/bin/acp[/COLOR]
make -C kernel/samsung/smdk4210 O=/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" headers_install
make[1]: Entering directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: 1: /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
make[1]: Leaving directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
[COLOR="MediumTurquoise"]Import includes file[/COLOR]: /media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/mkbootfs_intermediates/import_includes
[COLOR="Olive"]host C[/COLOR]: mkbootfs <= system/core/cpio/mkbootfs.c
[COLOR="MediumTurquoise"]Export includes file[/COLOR]: system/core/cpio/Android.mk -- /media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/mkbootfs_intermediates/export_includes
[COLOR="olive"]host Executable[/COLOR]: mkbootfs (/media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
[COLOR="MediumTurquoise"]Install: /media/totoext4part/cyanogenmod/system/out/host/linux-arm/bin/mkbootfs[/COLOR]
/bin/bash: r: command not found
make: [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/lib/crtbegin_static.o] Error 127 (ignored)
[COLOR="MediumTurquoise"]Import includes file[/COLOR]: /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/EXECUTABLES/init_intermediates/import_includes
[COLOR="rgb(46, 139, 87)"]target thumb C[/COLOR]: init <= system/core/init/builtins.c
system/core/init/builtins.c: In function ‘do_exec’:
system/core/init/builtins.c:283:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/init.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/devices.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/property_service.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/util.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/parser.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/logo.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/keychords.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/signal_handler.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/init_parser.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/ueventd.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/ueventd_parser.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/watchdogd.c
[COLOR="SeaGreen"]target SharedLib[/COLOR]: libdl (/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
/usr/bin/ld: error: /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so uses VFP register arguments, /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o does not
/usr/bin/ld: failed to merge target specific data of file /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object.
collect2: ld returned 1 exit status
make: *** [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so] Error 1
So I'm stuck with almost my initial problem, a kind of two different libdl. But which one do I have to change and where can I find them?
cmoatoto said:
Ok, I changed HOST_ARCH from armv61 to arm in build/core/envsetup.mk,
build/core/combo/HOST_linux-armv61.mk became build/core/combo/HOST_linux-arm.mk and in this file, I changed
Code:
HOST_GLOBAL_CFLAGS += -include $(call select-android-config-h,linux-armv61)
to
HOST_GLOBAL_CFLAGS += -include $(call select-android-config-h,linux-arm)
Here is what I got now (with "BUILD_TINY_ANDROID=true make -j1")
Code:
[COLOR="SeaGreen"][email protected][/COLOR] [COLOR="RoyalBlue"]~/buildspace/android/system $[/COLOR] BUILD_TINY_ANDROID=true make -j1
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.1
TARGET_PRODUCT=cm_n7000
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=arm
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.27+-armv6l-with-debian-7.0
HOST_BUILD_TYPE=release
BUILD_ID=JOP40D
OUT_DIR=/media/totoext4part/cyanogenmod/system/out
============================================
build/core/Makefile:44: warning: overriding commands for target `/media/totoext4part/cyanogenmod/system/out/target/product/n7000/system/etc/mkshrc'
build/core/base_rules.mk:502: warning: ignoring old commands for target `/media/totoext4part/cyanogenmod/system/out/target/product/n7000/system/etc/mkshrc'
PRODUCT_COPY_FILES system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keychars/qwerty.kcm:system/usr/keychars/qwerty.kcm ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keychars/qwerty2.kcm:system/usr/keychars/qwerty2.kcm ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/idc/qwerty.idc:system/usr/idc/qwerty.idc ignored.
PRODUCT_COPY_FILES device/samsung/n7000/usr/idc/qwerty2.idc:system/usr/idc/qwerty2.idc ignored.
PRODUCT_COPY_FILES vendor/samsung/n7000/proprietary/system/etc/gps.xml:system/etc/gps.xml ignored.
build/core/tasks/kernel.mk:161: warning: overriding commands for target `TARGET_KERNEL_BINARIES'
device/samsung/galaxys2-common/shbootimg.mk:26: warning: ignoring old commands for target `TARGET_KERNEL_BINARIES'
[COLOR="Olive"]host C[/COLOR]: acp <= build/tools/acp/acp.c
[COLOR="MediumTurquoise"]Import includes file[/COLOR]: /media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/STATIC_LIBRARIES/libhost_intermediates/import_includes
[COLOR="Olive"]host C++[/COLOR]: libhost <= build/libs/host/pseudolocalize.cpp
[COLOR="olive"]host C[/COLOR]: libhost <= build/libs/host/CopyFile.c
[COLOR="olive"]host StaticLib[/COLOR]: libhost (/media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
[COLOR="MediumTurquoise"]Export includes file[/COLOR]: build/tools/acp/Android.mk -- /media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/acp_intermediates/export_includes
[COLOR="Olive"]host Executable[/COLOR]: acp (/media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/acp_intermediates/acp)
[COLOR="MediumTurquoise"]Install: /media/totoext4part/cyanogenmod/system/out/host/linux-arm/bin/acp[/COLOR]
make -C kernel/samsung/smdk4210 O=/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" headers_install
make[1]: Entering directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: 1: /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
make[1]: Leaving directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
[COLOR="MediumTurquoise"]Import includes file[/COLOR]: /media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/mkbootfs_intermediates/import_includes
[COLOR="Olive"]host C[/COLOR]: mkbootfs <= system/core/cpio/mkbootfs.c
[COLOR="MediumTurquoise"]Export includes file[/COLOR]: system/core/cpio/Android.mk -- /media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/mkbootfs_intermediates/export_includes
[COLOR="olive"]host Executable[/COLOR]: mkbootfs (/media/totoext4part/cyanogenmod/system/out/host/linux-arm/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
[COLOR="MediumTurquoise"]Install: /media/totoext4part/cyanogenmod/system/out/host/linux-arm/bin/mkbootfs[/COLOR]
/bin/bash: r: command not found
make: [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/lib/crtbegin_static.o] Error 127 (ignored)
[COLOR="MediumTurquoise"]Import includes file[/COLOR]: /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/EXECUTABLES/init_intermediates/import_includes
[COLOR="rgb(46, 139, 87)"]target thumb C[/COLOR]: init <= system/core/init/builtins.c
system/core/init/builtins.c: In function ‘do_exec’:
system/core/init/builtins.c:283:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/init.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/devices.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/property_service.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/util.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/parser.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/logo.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/keychords.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/signal_handler.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/init_parser.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/ueventd.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/ueventd_parser.c
[COLOR="SeaGreen"]target thumb C[/COLOR]: init <= system/core/init/watchdogd.c
[COLOR="SeaGreen"]target SharedLib[/COLOR]: libdl (/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
/usr/bin/ld: error: /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so uses VFP register arguments, /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o does not
/usr/bin/ld: failed to merge target specific data of file /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object.
collect2: ld returned 1 exit status
make: *** [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so] Error 1
So I'm stuck with almost my initial problem, a kind of two different libdl. But which one do I have to change and where can I find them?
Click to expand...
Click to collapse
libdl is in the bionic directory, Did you clear your out ( rm -rf out ) directory before rebuilding?
You all of these are intermediate files ( i.e halfway done) what I suspect has happen is the obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o object file has been recompiled by the x86 toolchain and it's trying the link that in with some arm stuff.... That's all speculation however and I could be full of s**t! ,
EDIT: To find stuff type godir <word>
this indexes the source first time round the "cd's" to the chosen one ( might take a while to index on the pi )
also "hmm" is the help command which lists the majority of commands available to you.
trevd said:
libdl is in the bionic directory, Did you clear your out ( rm -rf out ) directory before rebuilding?
You all of these are intermediate files ( i.e halfway done) what I suspect has happen is the obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o object file has been recompiled by the x86 toolchain and it's trying the link that in with some arm stuff.... That's all speculation however and I could be full of s**t! ,
EDIT: To find stuff type godir <word>
this indexes the source first time round the "cd's" to the chosen one ( might take a while to index on the pi )
also "hmm" is the help command which lists the majority of commands available to you.
Click to expand...
Click to collapse
Thanks for the tip !
I'll do "rm -rf out" but I'll cry a bit, because it took some days to build some stuff (framework.jar, javadoc etc...). But as I said in the first post, I'm not in a hurry. I'll follow your idea.
About the toolchain problem, I think so (a x86 libdl compared to an arm one, one something like that). Now I have to find out how to force the x86 libdl to be build with arm.
I'll tell you when the rm -rf and the make will end.
cmoatoto said:
Thanks for the tip !
I'll do "rm -rf out" but I'll cry a bit, because it took some days to build some stuff (framework.jar, javadoc etc...). But as I said in the first post, I'm not in a hurry. I'll follow your idea.
About the toolchain problem, I think so (a x86 libdl compared to an arm one, one something like that). Now I have to find out how to force the x86 libdl to be build with arm.
I'll tell you when the rm -rf and the make will end.
Click to expand...
Click to collapse
What you need is an native armv6l androideabi toolchain thats capable of outputting armv7 and armv7-neon that supports the androideabi but run... probably something your going to have to build yourself.... also the cm toolchain are a little old now and they are probably not you best reference.
I would highly recommend talking to Linaro, They know a trick or two about the android toolchain and maintain an android repo which builds against the latest gcc! Although they don't directly build the arm for arm android toolchain ( I don't think ) they will probably be able to offer some guidance if you ask them nicely!!
Like I said earlier... Good Luck!
Some useful links:
http://www.linaro.org/
https://wiki.linaro.org/Platform/Android/FollowTheToolchainCycle
https://wiki.linaro.org/Platform/Android/AndroidOnPanda
This is something that took me crazy :thumbsup: good work.. will try soon! Btw android cannot run on Raspberry Pi due to the crap gpu in it
cmoatoto said:
Thanks for the tip !
I'll do "rm -rf out" but I'll cry a bit, because it took some days to build some stuff (framework.jar, javadoc etc...). But as I said in the first post, I'm not in a hurry. I'll follow your idea.
About the toolchain problem, I think so (a x86 libdl compared to an arm one, one something like that). Now I have to find out how to force the x86 libdl to be build with arm.
I'll tell you when the rm -rf and the make will end.
Click to expand...
Click to collapse
Did you ever get this working all the way? It would be awesome to be able to build some ROMs for my phone using the rpi!
Sent from my SPH-D710 using xda app-developers app
Won't building CM10 on a raspberrypi take ages? I know it easily takes 2-3 hours on my laptop to build it from scratch.
Yes and no.
The gnomes that lurk on Raspberry Pi Forums have gotten a working Gingerbread on the Pi, but it's not hardware accelerated due to Broadcom playing fast and loose with the GPU specs. A test build of ICS with said specs had been made seen, but it's not in the wild due to it being volunteer based, and with super secret sauce to boot.
lol @ gnomes
svenvv said:
Won't building CM10 on a raspberrypi take ages? I know it easily takes 2-3 hours on my laptop to build it from scratch.
Click to expand...
Click to collapse
Yes and no, but not for the reason moocow1452 said : The goal is not to RUN Android (or CM) on Raspberry, but to BUILD it on a Raspberry.
So, to answer the question, yes, it takes ages (days actually as far as I could go). Especially the Java builds are a pain in the a** (I had to swipe up to 2Go on a usb disk and reduce via scripts (to catch and log all java, javac and javadoc calls) the java heap size).
But once this builds have been done, they will not be run again until someone change the code associated. So if you pull the source everyday then build the code (= nightly builds), it will not take that long (maybe a couple of hour when it should take some minutes on a real computer)
Pyro96 said:
Did you ever get this working all the way? It would be awesome to be able to build some ROMs for my phone using the rpi!
Click to expand...
Click to collapse
No I didn't. They're is a looot of work to prepare the native armv6l androideabi toolchain and I don't really have time now. I keep this project in my mind but I will need some help with that (I might get it in some days/week if I'm lucky)
Hey guys. Great thread (subscribed) so far, many thanks.
One thing I normally use is distcc, but the android build system doesn't want to play. It would be nice if we could use that extra power.
...
cmoatoto said:
Hi all !
My current project is to use my Raspberry Pi as a Build Machine to build all Android sources (AOSP). In fact, I'll not build AOSP but the CyanogenMod (wich is mainly a fork from AOSP).
I know this may sound crazy, dumb or useless (according to Google, a 64-bit environment is required, and a lot (>> 4GB) of RAM if you're in a hurry), especially to use an ARM processor to build while all the Makefiles has been written to be used on x86...
But what I'm thinking about is a really cheap, silent, but working build machine, to sync the repo and build nightlies everyday. The first build will take some days but then, only the changes will be build so I think that only some hours per day will be required.
If I success, I'll create a big tutorial to explain what changes was required.
First of all, I had to add the Linux-armv61 arch as Host OS/ARCH :
Code:
[email protected] ~/buildspace/android/system/build $ git diff
diff --git a/core/envsetup.mk b/core/envsetup.mk
index 862b7f0..34eb31a 100644
--- a/core/envsetup.mk
+++ b/core/envsetup.mk
@@ -77,6 +77,10 @@ ifneq (,$(findstring Power,$(UNAME)))
HOST_ARCH := ppc
endif
[COLOR="SeaGreen"]+ifneq (,$(findstring arm,$(UNAME)))
+ HOST_ARCH := armv61
+endif
+[/COLOR]
BUILD_ARCH := $(HOST_ARCH)
ifeq ($(HOST_ARCH),)
then, I did this (because the raspbian ld doesn't support --icf) :
-->
Code:
[email protected] ~/buildspace/android/system/build $ git diff
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk
index b36111f..24e0d99 100644
--- a/core/combo/TARGET_linux-arm.mk
+++ b/core/combo/TARGET_linux-arm.mk
@@ -146,7 +146,6 @@ TARGET_GLOBAL_LDFLAGS += \
-Wl,-z,relro \
-Wl,-z,now \
-Wl,--warn-shared-textrel \
[COLOR="Red"]- -Wl,--icf=safe \[/COLOR]
$(arch_variant_ldflags)
# We only need thumb interworking in cases where thumb support
but now I am stuck with this error :
Code:
make -C kernel/samsung/smdk4210 O=/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" headers_install
make[1]: Entering directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: 1: /media/totoext4part/cyanogenmod/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: Syntax error: "(" unexpected
CHK include/linux/version.h
make[1]: Leaving directory `/media/totoext4part/cyanogenmod/system/kernel/samsung/smdk4210'
/bin/bash: r: command not found
make: [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/lib/crtbegin_static.o] Error 127 (ignored)
[COLOR="SeaGreen"]target SharedLib[/COLOR]: libdl (/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
/usr/bin/ld: error: /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so uses VFP register arguments, /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o does not
/usr/bin/ld: failed to merge target specific data of file /media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/libdl.o
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object.
collect2: ld returned 1 exit status
make: *** [/media/totoext4part/cyanogenmod/system/out/target/product/n7000/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so] Error 1
I don't really know what I have to do and if it is because the HOST is an arm arch...
It have been a long time since I didn't put my hands in this kind of things and I need help to solve this problems... Thanks in advance !
Click to expand...
Click to collapse
This was interesting. I may try to build a CM10 on a raspberry pi.
Did you guys actually manage to get it running?
I don't really want to dual boot my sp4 so a raspberry pi would be ideal. The 3 even has wi-fi, so it's easy to stay away somewhere. Would be ideal to build weeklys or bi-weeklys. I already have a spare 1TB external hard drive with power supply laying around.
Was thinking of getting one anyways as a htpc. Ordering 2 means less shipping xD.
The last post before yours is 3 years old, this thread is dead...
What a shame. I wanted to put my pi to a better use.
chrisvrose said:
What a shame. I wanted to put my pi to a better use.
Click to expand...
Click to collapse
Take a look here instead, might be more up to date: https://groups.google.com/forum/#!forum/android-rpi

[Q] Compiling error

I am trying to compile a rom for Samsung Hercules. It syncd fine but when I try to compile I get this error..
scripts/kconfig/zconf.tab.c:2505:0: fatal error: opening dependency file scripts/kconfig/.zconf.tab.o.d: Permission denied
^
compilation terminated.
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/TransformActions.cpp
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/Transforms.cpp
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/TransGCAttrs.cpp
make[3]: *** [scripts/kconfig/zconf.tab.o] Error 1
make[2]: *** [cyanogenmod_hercules_defconfig] Error 2
make[1]: *** [sub-make] Error 2
Does anyone know how to fix this?
jackching said:
I am trying to compile a rom for Samsung Hercules. It syncd fine but when I try to compile I get this error..
scripts/kconfig/zconf.tab.c:2505:0: fatal error: opening dependency file scripts/kconfig/.zconf.tab.o.d: Permission denied
^
compilation terminated.
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/TransformActions.cpp
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/Transforms.cpp
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/TransGCAttrs.cpp
make[3]: *** [scripts/kconfig/zconf.tab.o] Error 1
make[2]: *** [cyanogenmod_hercules_defconfig] Error 2
make[1]: *** [sub-make] Error 2
Does anyone know how to fix this?
Click to expand...
Click to collapse
chmod a+x scripts/kconfig/.zconf.tab.o.d
Sent from my Moto G
MasterAwesome said:
chmod a+x scripts/kconfig/.zconf.tab.o.d
Sent from my Moto G
Click to expand...
Click to collapse
Didnt work. Said no such file or directory. Heres the full copy of when it starts erroring.
HOSTCC scripts/kconfig/conf.o
/home/nevol/kernel/samsung/msm8660-common/scripts/kconfig/conf.c:654:1: fatal error: opening dependency file scripts/kconfig/.conf.o.d: Permission denied
}
^
compilation terminated.
HOSTCC scripts/kconfig/zconf.tab.o
make[3]: *** [scripts/kconfig/conf.o] Error 1
make[3]: *** Waiting for unfinished jobs....
scripts/kconfig/zconf.tab.c:2505:0: fatal error: opening dependency file scripts/kconfig/.zconf.tab.o.d: Permission denied
^
compilation terminated.
make[3]: *** [scripts/kconfig/zconf.tab.o] Error 1
make[2]: *** [cyanogenmod_hercules_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/nevol/kernel/samsung/msm8660-common'
make: *** [/home/nevol/out/target/product/hercules/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
host C++: libclangSerialization <= external/clang/lib/Serialization/ASTReaderDecl.cpp
Total time elapsed: 6 minutes (417.299101601 seconds)
jackching said:
I am trying to compile a rom for Samsung Hercules. It syncd fine but when I try to compile I get this error..
scripts/kconfig/zconf.tab.c:2505:0: fatal error: opening dependency file scripts/kconfig/.zconf.tab.o.d: Permission denied
^
compilation terminated.
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/TransformActions.cpp
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/Transforms.cpp
host C++: libclangARCMigrate <= external/clang/lib/ARCMigrate/TransGCAttrs.cpp
make[3]: *** [scripts/kconfig/zconf.tab.o] Error 1
make[2]: *** [cyanogenmod_hercules_defconfig] Error 2
make[1]: *** [sub-make] Error 2
Does anyone know how to fix this?
Click to expand...
Click to collapse
The whole log file must be in your output directory... Attach it here..!
zeetherocker said:
The whole log file must be in your output directory... Attach it here..!
Click to expand...
Click to collapse
There is no log in my out folder and i couldnt find the log in any folder! I ran the script again as root and heres what i get now.
hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp: In member function 'int omx_vdec::set_turbo_mode(bool)':
hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp:10566:43: error: 'VDEC_IOCTL_SET_PERF_CLK' was not declared in this scope
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/omx_vdec.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/omx_video_base.o] Error 1
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/omx_video_encoder.o] Error 1
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o] Error 1
Total time elapsed: 120 minutes (7250.017928821 seconds)
jackching said:
There is no log in my out folder and i couldnt find the log in any folder! I ran the script again as root and heres what i get now.
hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp: In member function 'int omx_vdec::set_turbo_mode(bool)':
hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp:10566:43: error: 'VDEC_IOCTL_SET_PERF_CLK' was not declared in this scope
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/omx_vdec.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/omx_video_base.o] Error 1
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/omx_video_encoder.o] Error 1
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o] Error 1
Total time elapsed: 120 minutes (7250.017928821 seconds)
Click to expand...
Click to collapse
What toolchain are you using?
MasterAwesome said:
What toolchain are you using?
Click to expand...
Click to collapse
I used this command from a compiling guide on xda.
sudo apt-get install openjdk-6-jdk python git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
jackching said:
I used this command from a compiling guide on xda.
sudo apt-get install openjdk-6-jdk python git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
Click to expand...
Click to collapse
Not that, toolchains are those gcc binary files used to cross compile. they are usually named like "arm-eabi-(gccversion)"/arm-linux-androideabi-(gccversion) its found in your cm11/prebuilts/gcc/linux-x86/arm/.. what version are you using to compile?
MasterAwesome said:
Not that, toolchains are those gcc binary files used to cross compile. they are usually named like "arm-eabi-(gccversion)"/arm-linux-androideabi-(gccversion) its found in your cm11/prebuilts/gcc/linux-x86/arm/.. what version are you using to compile?
Click to expand...
Click to collapse
theres 4.6 4.7 and 4.1 showing up in that folder lol
jackching said:
theres 4.6 4.7 and 4.1 showing up in that folder lol
Click to expand...
Click to collapse
try building with 4.6 it has more legacy support . go to /build/core/combo/TARGET_linux-arm.mk and change gccversion from 4.7 to 4.6. if that doesnt work try 4.1(Very old toolchain).
Regards
MasterAwesome
MasterAwesome said:
try building with 4.6 it has more legacy support . go to /build/core/combo/TARGET_linux-arm.mk and change gccversion from 4.7 to 4.6. if that doesnt work try 4.1(Very old toolchain).
Regards
MasterAwesome
Click to expand...
Click to collapse
ok i opened the linux-arm.mk file and changed ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),)
TARGET_GCC_VERSION := 4.6
That was set to 4.7. Is that all i have to change?
jackching said:
ok i opened the linux-arm.mk file and changed ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),)
TARGET_GCC_VERSION := 4.6
That was set to 4.7. Is that all i have to change?
Click to expand...
Click to collapse
yup.. im assuming you're having both arm-eabi and arm-linux-androideabi of version 4.6
MasterAwesome said:
yup.. im assuming you're having both arm-eabi and arm-linux-androideabi of version 4.6
Click to expand...
Click to collapse
yes i do but this is as far as i get now with 4.6.
Install: /home/nevol/out/target/product/hercules/root/sepolicy
GEN /home/nevol/out/target/product/hercules/obj/KERNEL_OBJ/Makefile
Error: Could not open file: /home/nevol/out/target/product/hercules/obj/ETC/seapp_contexts_intermediates/seapp_contexts error: Permission denied
acp: unable to remove '/home/nevol/out/target/product/hercules/root/property_contexts': No such file or directory
acp: unable to remove '/home/nevol/out/target/product/hercules/root/file_contexts': No such file or directory
make: *** [/home/nevol/out/target/product/hercules/root/file_contexts] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/nevol/out/target/product/hercules/obj/ETC/seapp_contexts_intermediates/seapp_contexts] Error 1
make: *** [/home/nevol/out/target/product/hercules/root/property_contexts] Error 1
acp: unable to remove '/home/nevol/out/target/product/hercules/root/sepolicy': No such file or directory
make: *** [/home/nevol/out/target/product/hercules/root/sepolicy] Error 1
drivers/cpufreq/Kconfig:797:warning: type of 'CPU_FREQ_GOV_SCARY' redefined from 'tristate' to 'boolean'
drivers/video/Kconfig:2335:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:624:error: recursive dependency detected!
drivers/cpufreq/Kconfig:624: symbol CPU_FREQ_GOV_SCARY is selected by CPU_FREQ_GOV_SCARY
arch/arm/configs/cyanogenmod_hercules_defconfig:201:warning: override: reassigning to symbol DEFAULT_ROW
arch/arm/configs/cyanogenmod_hercules_defconfig:712:warning: override: reassigning to symbol CPU_FREQ_DEFAULT_GOV_LAZY
arch/arm/configs/cyanogenmod_hercules_defconfig:716:warning: override: reassigning to symbol CPU_FREQ_DEFAULT_GOV_SUPERBAD
arch/arm/configs/cyanogenmod_hercules_defconfig:737:warning: override: reassigning to symbol CPU_FREQ_GOV_POWERSAVE
arch/arm/configs/cyanogenmod_hercules_defconfig:738:warning: override: reassigning to symbol CPU_FREQ_GOV_USERSPACE
arch/arm/configs/cyanogenmod_hercules_defconfig:758:warning: override: reassigning to symbol CPU_FREQ_GOV_ONDEMAND
arch/arm/configs/cyanogenmod_hercules_defconfig:771:warning: override: reassigning to symbol SEC_DVFS
#
# configuration written to .config
#
make[1]: Leaving directory `/home/nevol/kernel/samsung/msm8660-common'
Total time elapsed: 3 minutes (230.083030111 seconds)
jackching said:
yes i do but this is as far as i get now with 4.6.
Install: /home/nevol/out/target/product/hercules/root/sepolicy
GEN /home/nevol/out/target/product/hercules/obj/KERNEL_OBJ/Makefile
Error: Could not open file: /home/nevol/out/target/product/hercules/obj/ETC/seapp_contexts_intermediates/seapp_contexts error: Permission denied
acp: unable to remove '/home/nevol/out/target/product/hercules/root/property_contexts': No such file or directory
acp: unable to remove '/home/nevol/out/target/product/hercules/root/file_contexts': No such file or directory
make: *** [/home/nevol/out/target/product/hercules/root/file_contexts] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/home/nevol/out/target/product/hercules/obj/ETC/seapp_contexts_intermediates/seapp_contexts] Error 1
make: *** [/home/nevol/out/target/product/hercules/root/property_contexts] Error 1
acp: unable to remove '/home/nevol/out/target/product/hercules/root/sepolicy': No such file or directory
make: *** [/home/nevol/out/target/product/hercules/root/sepolicy] Error 1
drivers/cpufreq/Kconfig:797:warning: type of 'CPU_FREQ_GOV_SCARY' redefined from 'tristate' to 'boolean'
drivers/video/Kconfig:2335:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:624:error: recursive dependency detected!
drivers/cpufreq/Kconfig:624: symbol CPU_FREQ_GOV_SCARY is selected by CPU_FREQ_GOV_SCARY
arch/arm/configs/cyanogenmod_hercules_defconfig:201:warning: override: reassigning to symbol DEFAULT_ROW
arch/arm/configs/cyanogenmod_hercules_defconfig:712:warning: override: reassigning to symbol CPU_FREQ_DEFAULT_GOV_LAZY
arch/arm/configs/cyanogenmod_hercules_defconfig:716:warning: override: reassigning to symbol CPU_FREQ_DEFAULT_GOV_SUPERBAD
arch/arm/configs/cyanogenmod_hercules_defconfig:737:warning: override: reassigning to symbol CPU_FREQ_GOV_POWERSAVE
arch/arm/configs/cyanogenmod_hercules_defconfig:738:warning: override: reassigning to symbol CPU_FREQ_GOV_USERSPACE
arch/arm/configs/cyanogenmod_hercules_defconfig:758:warning: override: reassigning to symbol CPU_FREQ_GOV_ONDEMAND
arch/arm/configs/cyanogenmod_hercules_defconfig:771:warning: override: reassigning to symbol SEC_DVFS
#
# configuration written to .config
#
make[1]: Leaving directory `/home/nevol/kernel/samsung/msm8660-common'
Total time elapsed: 3 minutes (230.083030111 seconds)
Click to expand...
Click to collapse
clean your build directory
Code:
make clean&&make installclean&& make clobber
start build again
Regards
MasterAwesome
MasterAwesome said:
clean your build directory
Code:
make clean&&make installclean&& make clobber
start build again
Regards
MasterAwesome
Click to expand...
Click to collapse
did that and heres what i got
4 has type 'int' [-Wformat]
hardware/qcom/media-caf/mm-video/vidc/venc/src/video_encoder_device.cpp:3274:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o] Error 1
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/omx_vdec.o] Error 1
Total time elapsed: 12 minutes (725.278207107 seconds)
jackching said:
did that and heres what i got
4 has type 'int' [-Wformat]
hardware/qcom/media-caf/mm-video/vidc/venc/src/video_encoder_device.cpp:3274:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o] Error 1
make: *** [/home/nevol/out/target/product/hercules/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/omx_vdec.o] Error 1
Total time elapsed: 12 minutes (725.278207107 seconds)
Click to expand...
Click to collapse
I caught something right off the start. It flashed saying I have have a different version of java or something. Said I had 1.6.0_32 and I need 1.6 or 1.7. How do I uninstall mine and install the right one?
jackching said:
I caught something right off the start. It flashed saying I have have a different version of java or something. Said I had 1.6.0_32 and I need 1.6 or 1.7. How do I uninstall mine and install the right one?
Click to expand...
Click to collapse
Thats just Java this is c object files.. To fix that you need Oracle jdk 1.6. Suppress those errors in build/core/combo/TARGET_linux_arm.mk example - Wno-sign-compare
Sent from my Moto G
MasterAwesome said:
Thats just Java this is c object files.. To fix that you need Oracle jdk 1.6. Suppress those errors in build/core/combo/TARGET_linux_arm.mk example - Wno-sign-compare
Sent from my Moto G
Click to expand...
Click to collapse
i need that in english bud. remember im a new linux user
jackching said:
i need that in english bud. remember im a new linux user
Click to expand...
Click to collapse
Nope didnt work. I even started from scratch and reinstalled linuxmint x64 and im still erroring out.Heres the one im trying to make https://github.com/Cl3Kener/BlueLightning I'm trying to make it for the samsung hercules
jackching said:
Nope didnt work. I even started from scratch and reinstalled linuxmint x64 and im still erroring out.Heres the one im trying to make https://github.com/Cl3Kener/BlueLightning I'm trying to make it for the samsung hercules
Click to expand...
Click to collapse
:/ why would you reinstall the whole Linux is? Nevermind, what I meant in the last post is that you've got to install jdk 1.6 and only that. For those errors add the -w flag to KBUILD_FLAGS present in the build/core/combo/TARGET_Linux_arm.mk and the kernel source/makefile..
Warning: this will suppress all the errors and is not suggested but you'll get the z image to compile.
Sent from my Moto G

Compiling cyanogenmod?

Hello all. First I must apologize to the moderators if theres a better place for this question. I looked but couldn't find a place for code compiling.
I'm trying to compile cyanogenmod 12 from source. I had to copy a copy of default.xml to a different location to get the compilation to start.
I got no fatal errors till an hour and a half in where I get this...
Code:
target arm C: zip <= external/zip/src/trees.c
make: *** No rule to make target 'vendor/lge/e980/proprietary/lib/hw/camera.msm8960.so', needed by '/root/android/system/out/target/product/e980/system/lib/hw/camera.msm8960.so'. Stop.
make: *** Waiting for unfinished jobs....
target arm C: zip <= external/zip/src/unix/unix.c
external/zip/src/unix/unix.c: In function 'filetime':
external/zip/src/unix/unix.c:436:3: warning: pointer targets in passing argument 1 of 'unix2dostime' differ in signedness [-Wpointer-sign]
return unix2dostime(&s.st_mtime);
^
In file included from external/zip/src/unix/unix.c:14:0:
external/zip/src/unix/../zip.h:695:8: note: expected 'time_t *' but argument is of type 'long unsigned int *'
ulg unix2dostime OF((time_t *));
^
make: Leaving directory '/root/android/system'
#### make failed to build some targets (01:27:25 (hh:mm:ss)) ####
Can anyone please tell me whats wrong?
I'm 3 days into this and i feel like I'm getting real close.
Please let me know if theres any info I can provide.
Thanx in advance....

Help Build Lineageos for Xiaomi Redmi Pro

Can someone please help me?
I'm having trouble while to compile my build.
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/system.prop', needed by '/home/neverson/android/system/out/target/product/omega/obj/ETC/system_build_prop_intermediates/build.prop', 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/neverson/android/system'
What this error means and how can I fix it? Just for the context I have system.prop file. And I also tried disable ninja using export USE_NINJA=false. but the error remains.
You device tree?
thinhx2 said:
You device tree?
Click to expand...
Click to collapse
Here is my device tree
https://drive.google.com/open?id=0B0M07vEulBG8eGE3c2hUaUVhcTA
Dersaun said:
Here is my device tree
https://drive.google.com/open?id=0B0M07vEulBG8eGE3c2hUaUVhcTA
Click to expand...
Click to collapse
You can upload to github.
Hi,
Here is my device tree in github
https://github.com/Dersaun/android_device_Xiaomi_omega
your device tree is not complete
Dersaun said:
Can someone please help me?
I'm having trouble while to compile my build.
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/system.prop', needed by '/home/neverson/android/system/out/target/product/omega/obj/ETC/system_build_prop_intermediates/build.prop', 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/neverson/android/system'
What this error means and how can I fix it? Just for the context I have system.prop file. And I also tried disable ninja using export USE_NINJA=false. but the error remains.
Click to expand...
Click to collapse
Hi sir did u fix this error can u tell me how u fixed this error

Please Someone Help Finish my LineageOs Build

Can someone please help me to finish my LineageOs build, I did make my own device and vendor tree I'm using prebuilt kernel.
I dont what is this error or how to fix.
system/netd/server/SoftapController.cpp:156:17: error: unused parameter 'ifname' [-Werror,-Wunused-parameter]
const char *ifname) {
^
1 error generated.
build/core/binary.mk:986: recipe for target '/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o' failed
make: *** [/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o] Error 1
make: Leaving directory '/home/neverson/android/system'
#### make failed to build some targets (01:08:21 (hh:mm:ss)) ####
Dersaun said:
Can someone please help me to finish my LineageOs build, I did make my own device and vendor tree I'm using prebuilt kernel.
I dont what is this error or how to fix.
system/netd/server/SoftapController.cpp:156:17: error: unused parameter 'ifname' [-Werror,-Wunused-parameter]
const char *ifname) {
^
1 error generated.
build/core/binary.mk:986: recipe for target '/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o' failed
make: *** [/home/neverson/android/system/out/target/product/omega/obj/EXECUTABLES/netd_intermediates/SoftapController.o] Error 1
make: Leaving directory '/home/neverson/android/system'
#### make failed to build some targets (01:08:21 (hh:mm:ss)) ####
Click to expand...
Click to collapse
Hi,
This error is generally due to not having LIBWPA_CLIENT_EXISTS flag enabled
either you can try
$ export LIBWPA_CLIENT_EXISTS=true
if this not solves your issue then check Android.mk of the project
system/netd/server/Android.mk
Here it is showing that LIBWPA_CLIENT_EXISTS depends on WPA_SUPPLICANT_VERSION
ifdef WPA_SUPPLICANT_VERSION
LOCAL_CFLAGS += -DLIBWPA_CLIENT_EXISTS
LOCAL_SHARED_LIBRARIES += libwpa_client
LOCAL_C_INCLUDES += external/wpa_supplicant_8/src/common
endif
You can find this flag WPA_SUPPLICANT_VERSION somewhere inside vendor/chipset/proprietary/common
Hope this helps.
Thanks
Girish
dja
I have checked all these files, alright, but the problem does not resolve

Categories

Resources