Please Someone Help Finish my LineageOs Build - Android Q&A, Help & Troubleshooting

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

Related

[Q] Building error aosp

guys im getting this error when building any help here cause im a complete newbie.
from this guide
http://developer.sonymobile.com/kno...ld-aosp-lollipop-for-unlocked-xperia-devices/
Code:
PRODUCT_COPY_FILES device/sony/sirius/rootdir/system/etc/libnfc-nxp.conf:system/etc/libnfc-nxp.conf ignored.
No private recovery resources for TARGET_DEVICE sirius
No recovery.fstab for TARGET_DEVICE sirius
make: *** No rule to make target `–j'. Stop.
#### make failed to build some targets (38 seconds) ####
Now when i repo sync it gives me this error:
error: hardware/libhardware/: platform/hardware/libhardware checkout 628ce4aedaa03d989ac403df533448cd78e701f7
EDIT:i searched online and somehow got past the error but now im getiing this error
Code:
In file included from external/libnfc-nci/src/hal/include/nfc_hal_api.h:27:0,
from external/libnfc-nci/src/nfc/include/nfc_api.h:32,
from external/libnfc-nci/src/nfa/include/nfa_api.h:32,
from packages/apps/Nfc/nci/jni/NativeLlcpConnectionlessSocket.cpp:26:
hardware/libhardware/include/hardware/nfc.h:56:1: error: expected unqualified-id before '<<' token
<<<<<<< HEAD
^
hardware/libhardware/include/hardware/nfc.h:94:3: error: 'nfc_nci_module_t' does not name a type
} nfc_nci_module_t;
^
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libnfc_nci_jni_intermediates/NativeLlcpConnectionlessSocket.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/libnfc-nci/src/hal/include/nfc_hal_api.h:27:0,
from external/libnfc-nci/src/include/NfcAdaptation.h:24,
from packages/apps/Nfc/nci/jni/NativeLlcpServiceSocket.cpp:19:
hardware/libhardware/include/hardware/nfc.h:56:1: error: expected unqualified-id before '<<' token
<<<<<<< HEAD
^
hardware/libhardware/include/hardware/nfc.h:94:3: error: 'nfc_nci_module_t' does not name a type
} nfc_nci_module_t;
^
make: *** [out/target/product/sirius/obj/SHARED_LIBRARIES/libnfc_nci_jni_intermediates/NativeLlcpServiceSocket.o] Error 1
external/sqlite/dist/sqlite3.c: In function 'fts3SnippetFunc':
external/sqlite/dist/sqlite3.c:143651:11: warning: 'iS' may be used uninitialized in this function [-Wmaybe-uninitialized]
if( iS>iBestScore ){
^
external/sqlite/dist/sqlite3.c:143643:13: note: 'iS' was declared here
int iS;
^
#### make failed to build some targets (03:21 (mm:ss)) ####
never mind i some how got it to work and i built aosp and flashed it and it BOOTS !!.
have you concidered PMming Pabx or Krabappel2548
these two xda users may know where i do not
@Farooq95
Any news about the error?
I got the same.
Greatz WuChEn
Der-WU said:
@Farooq95
Any news about the error?
I got the same.
Greatz WuChEn
Click to expand...
Click to collapse
try in the terminal
Code:
git commit -a
if it doent work then
Code:
repo forall -vc "git reset --hard"
Doesn't work for me
Farooq95 said:
try in the terminal
Code:
git commit -a
if it doent work then
Code:
repo forall -vc "git reset --hard"
Click to expand...
Click to collapse
Hi
I am stuck at the same point. Didn't get it working even after running repo forall -vc....
Please help

Im trying to build cm 13 but i got this error pls help

build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/motorola/condor/cm.mk]]: "vendor/motorola/msm8610-common/msm8610-common-vendor.mk" does not exist. Stop.
** Don't have a product spec for: 'cm_condor'
** Do you have the right repo manifest?
try this repo https://github.com/Moto8610/proprietary_vendor_motorola
Thnx i will try it.
Do i need to remove the entire cm repo folder or i can remove the devices synced repo and sync again.
GNVM said:
Do i need to remove the entire cm repo folder or i can remove the devices synced repo and sync again.
Click to expand...
Click to collapse
Are you building from your own device tree? Or ashwin007's device tree?
From ashwins tree
That issue is solved now i get these errors
Code:
external/zip/src/zip.c:1287:9: warning: unused parameter 'unzippath' [-Wunused-parameter]
char *unzippath;
^
external/zip/src/zip.c:1434:11: warning: explicitly assigning value of variable of type 'char *' to itself [-Wself-assign]
zippath = zippath;
~~~~~~~ ^ ~~~~~~~
external/zip/src/zip.c:1799:9: warning: explicitly assigning value of variable of type 'const char *' to itself [-Wself-assign]
zfn = zfn;
~~~ ^ ~~~
external/zip/src/zip.c:1850:9: warning: unused parameter 'out_path' [-Wunused-parameter]
char *out_path;
^
external/zip/src/zip.c:698:12: warning: unused function 'help_extended' [-Wunused-function]
local void help_extended()
^
5 warnings generated.
target arm C: zip <= external/zip/src/unix/unix.c
make: *** No rule to make target `vendor/motorola/msm8610-common/proprietary/vendor/lib/libmm-hdcpmgr.so', needed by `/home/gnvm-dev/bin/cm13.0/out/target/product/condor/system/vendor/lib/libmm-hdcpmgr.so'. Stop.
make: *** Waiting for unfinished jobs....
external/zip/src/unix/unix.c:571:12: warning: unused parameter 'z_utim' [-Wunused-parameter]
iztimes *z_utim;
^
1 warning generated.
make: Leaving directory `/home/gnvm-dev/bin/cm13.0'
#### make failed to build some targets (09:21 (mm:ss)) ####
I have found the solution but i got a new error.
Code:
target SharedLib: memtrack.msm8610 (/home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/LINKED/memtrack.msm8610.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/memtrack_msm.o: file is empty
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin/ld: error: /home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/kgsl.o: file is empty
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/gnvm-dev/bin/cm13.0/out/target/product/condor/obj/SHARED_LIBRARIES/memtrack.msm8610_intermediates/LINKED/memtrack.msm8610.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/gnvm-dev/bin/cm13.0'
#### make failed to build some targets (01:25:33 (hh:mm:ss)) ####

Error Compiling CM13.0

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.

cm-13.0 building error

I can;t build my rom from sources of cm-13.
art/runtime/base/time_utils.h:77:9: error: 'CLOCK_REALTIME' macro redefined [-Werror,-Wmacro-redefined]
#define CLOCK_REALTIME 0xebadf00d
^
/usr/include/time.h:154:9: note: previous definition is here
#define CLOCK_REALTIME _CLOCK_REALTIME
...
*** [/Volumes/android/cm/out/host/darwin-x86/obj/EXECUTABLES/patchoat_intermediates/patchoat.o] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:18:07 (hh:mm:ss)) ####
Whats the problem and how to fix this?
OS: macOS Sierra
Target device: WileyFox Spark+(porridge)

CM 12.0 Build Failed with Error 127

I'm trying to build CM 12.0 for Nexus 9.
I followed instructions from here :
https://wiki.lineageos.org/devices/flounder/build#start-the-build
Only thing I changed is replacing CM-14.1 with CM-13.0 in the following command:
Code:
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
I am getting Error 127. These are the details:
Code:
vendor/cm/build/core/maven_artifact.mk:42: recipe for target '/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar' failed
make: *** [/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar] Error 127
make: *** Waiting for unfinished jobs....
Notice file: packages/providers/DataUsageProvider/NOTICE -- /home/attila/android/cm13/out/target/product/flounder/obj/NOTICE_FILES/src//system/priv-app/DataUsageProvider/DataUsageProvider.apk.txt
make: Leaving directory '/home/attila/android/cm13'
#### make failed to build some targets (20:33 (mm:ss)) ####
Not sure What I'm doing wrong. Any help will be greatly appreciated.
pikudroid said:
I'm trying to build CM 12.0 for Nexus 9.
I followed instructions from here :
https://wiki.lineageos.org/devices/flounder/build#start-the-build
Only thing I changed is replacing CM-14.1 with CM-13.0 in the following command:
Code:
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
I am getting Error 127. These are the details:
Code:
vendor/cm/build/core/maven_artifact.mk:42: recipe for target '/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar' failed
make: *** [/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar] Error 127
make: *** Waiting for unfinished jobs....
Notice file: packages/providers/DataUsageProvider/NOTICE -- /home/attila/android/cm13/out/target/product/flounder/obj/NOTICE_FILES/src//system/priv-app/DataUsageProvider/DataUsageProvider.apk.txt
make: Leaving directory '/home/attila/android/cm13'
#### make failed to build some targets (20:33 (mm:ss)) ####
Not sure What I'm doing wrong. Any help will be greatly appreciated.
Click to expand...
Click to collapse
In case someone faces the same problem in future, the error was there because I was missing maven.
Just do
Code:
sudo apt-get install maven

Categories

Resources