[Q] [Q&A]problems when build android-5.1.1_r2 - General Questions and Answers

Hello, everyone,
I'm using Ubuntu14.0.4 virtualbox virtual machine, the memory size is set as 2G. I set two more virtual disks(/disk_2nd for source code download, /disk_3rd for build output and the directory is android_out).
Java version is openjdk7 as required by android official website.
Git was rebuilt for openssl because of gnutls_handshake error during downloading source code.
I had met the problem caused by small swap so that I already set a new 8G swap partion(not swapfile).
Now I meet two problems during build the android-5.1.1_r2. I searched from web but can't find answer(looks someone met same problem but no answer). If someone can help, it will be very great. Thank you very much.
--------------------------------------------------------------------------------------------------------
1.
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: /disk_3rd/android_out/androidsource/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2.
target Strip: libwebviewchromium (/disk_3rd/android_out/androidsource/target/product/generic/obj/lib/libwebviewchromium.so)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-strip:/disk_3rd/android_out/androidsource/target/product/generic/symbols/system/lib/libwebviewchromium.so: File format not recognized
make: *** [/disk_3rd/android_out/androidsource/target/product/generic/obj/lib/libwebviewchromium.so] error 1
make: *** Waiting for unfinished work .....( It could be not exact the same words because I translate it from Chinese)

Related

[Q] N1(Passion) building CM7 Invalid or corrupt jarfile

Hi,
I'm building CM7 for N1 and I am following: http://forum.xda-developers.com/showthread.php?t=775505
My OS is Ubuntu 11.04 VB.
when I run the following command . build/envsetup.sh && brunch passion, I get the following error:
Install: out/host/linux-x86/framework/dumpkey.jar
DumpPublicKey: out/target/product/passion/obj/PACKAGING/ota_keys_intermediates/keys <= build/target/product/security/testkey.x509.pem
java -jar out/host/linux-x86/framework/dumpkey.jar build/target/product/security/testkey.x509.pem > out/target/product/passion/obj/PACKAGING/ota_keys_intermediates/keys
Invalid or corrupt jarfile out/host/linux-x86/framework/dumpkey.jar
make: *** [out/target/product/passion/obj/PACKAGING/ota_keys_intermediates/keys] Error 1
make: *** Deleting file `out/target/product/passion/obj/PACKAGING/ota_keys_intermediates/keys'
Help please...
Thank you.
I resolved the error. I deleted the /out file, repo sync, and recompiled. I now have a CM7 build for my N1. I haven't tried it on the phone yet but hopefully it works.

{CyanogenMod} Karbonn A9+ (Compiling Errors and solutions)

Please post your errors here. We (I and other esteemed devs) will try to solve them.
reserved for future.
reserved for future. 2222
reserved for future. another one...
By chrgegdoc
Code:
Before I get that error, I encountered these first:
building with
Code:
make -j4
gives me the following error:
Code:
make: *** No rule to make target `device/karbonn/a9plus/prebuilt/system/lib/lib/system/libcamera_client.so', needed by `out/target/product/a9plus/system/lib/libcamera_client.so'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: external/icu4c/common/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libicuuc.so.txt
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.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
retyping
Code:
make
without
Code:
-j4
"solves" that but I encounter the following error:
Code:
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:135: error: Resource does not already exist in overlay at 'config_tether_upstream_regexs'; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:136: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:137: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:149: error: Resource at config_tether_dun_required appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
So I deleted the overlay folder from device/karbonn/a9plus and it would go through until I get the error at my previous PM
Another one by chrgegdoc
checked out your new device tree and tried building from it using
Code:
make
I get the following error:
Code:
Code:
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
By the way, I am building CM9, haven't tried CM10 though.
arunmcops said:
Another one by chrgegdoc
checked out your new device tree and tried building from it using
Code:
make
I get the following error:
Code:
Code:
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
By the way, I am building CM9, haven't tried CM10 though.
Click to expand...
Click to collapse
Try to start with make -j1
arunmcops said:
Another one by chrgegdoc
checked out your new device tree and tried building from it using
Code:
make
I get the following error:
Code:
Code:
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
By the way, I am building CM9, haven't tried CM10 though.
Click to expand...
Click to collapse
arunmcops said:
By chrgegdoc
Code:
Before I get that error, I encountered these first:
building with
Code:
make -j4
gives me the following error:
Code:
make: *** No rule to make target `device/karbonn/a9plus/prebuilt/system/lib/lib/system/libcamera_client.so', needed by `out/target/product/a9plus/system/lib/libcamera_client.so'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: external/icu4c/common/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libicuuc.so.txt
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.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
retyping
Code:
make
without
Code:
-j4
"solves" that but I encounter the following error:
Code:
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:135: error: Resource does not already exist in overlay at 'config_tether_upstream_regexs'; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:136: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:137: error: Resource at config_tether_upstream_regexs appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:149: error: Resource at config_tether_dun_required appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
So I deleted the overlay folder from device/karbonn/a9plus and it would go through until I get the error at my previous PM
Click to expand...
Click to collapse
Overlay packages changed...
I incorporated your changes and it seems that error is gone while using
Code:
make -j1
However, I encountered an new error
Code:
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:199: error: Resource at config_networkLocationProviderPackageName appears in overlay but not in the base package; use <add-resource> to add.
device/karbonn/a9plus/overlay/frameworks/base/core/res/res/values/config.xml:202: error: Resource at config_geocodeProviderPackageName appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
EDIT:
So I tried deleting line 199 and 202 from the config.xml at the build went through.
But, I encountered the previous error
Code:
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/power/power.c
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
I don't know if they are connected with each other. I conclude that building with make -j1 doesn't solve the EOF error.
Compile Error
I also confirm the same error...
build with make -j1
Code:
<command-line>: warning: "REFRESH_RATE" redefined
<command-line>: warning: this is the location of the previous definition
system/core/libpixelflinger/codeflinger/disassem.c:710: warning: initialization from incompatible pointer type
target thumb C: libhardware_legacy <= hardware/libhardware_legacy/power/power.c
/bin/bash: -c: line 0: unexpected EOF while looking for matching `"'
/bin/bash: -c: line 1: syntax error: unexpected end of file
make: *** [out/target/product/a9plus/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/power/power.o] Error 1
I used a different device tree (my own) and now I am getting this error:
Code:
make: *** No rule to make target `vendor/qcom/s100/proprietary/lib/libaudioalsa.so', needed by `out/target/product/s100/obj/lib/libaudioalsa.so'. Stop.
What I did is add some lines in device.mk and it seems to compile (hopefully)
EDIT:
Still getting the same error. I have no idea on how to fix this
Plz post ur device tree ...
Sent from my Karbonn A9+ using Tapatalk HD
chrgegdoc said:
I used a different device tree (my own) and now I am getting this error:
Code:
make: *** No rule to make target `vendor/qcom/s100/proprietary/lib/libaudioalsa.so', needed by `out/target/product/s100/obj/lib/libaudioalsa.so'. Stop.
What I did is add some lines in device.mk and it seems to compile (hopefully)
EDIT:
Still getting the same error. I have no idea on how to fix this
Click to expand...
Click to collapse
U need to copy proprietary files of your device to vendor/qcom/s100 by either running command from your device folder or just download the files and put it to vendor/qcom/s100 .
Edit : I think this is the files u need . confirm that is it the one and if that is the one CD to vendor/qcom dir and issue following command
Code:
git clone https://github.com/liquid-moto/android_vendor_qcom_proprietary s100
It will clone those files to vendor/qcom/
Than go to vendor/qcom/s100 and rename system to proprietary and than start the build....
Hope u got it fixed
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Use libaudioalsa.so from /system/lib and modify mk files. Also mail me device folder.
Sent from my Karbonn A9+ using Tapatalk HD
Will Try
Arun will you modify your device tree.. I will try to compile again..
Will try for qcom/s100 also.. Both are same build.. Any way.. Device can be changed on .prop later..!!
---------- Post added at 07:04 PM ---------- Previous post was at 06:56 PM ----------
chrgegdoc said:
I used a different device tree (my own) and now I am getting this error:
Code:
make: *** No rule to make target `vendor/qcom/s100/proprietary/lib/libaudioalsa.so', needed by `out/target/product/s100/obj/lib/libaudioalsa.so'. Stop.
What I did is add some lines in device.mk and it seems to compile (hopefully)
EDIT:
Still getting the same error. I have no idea on how to fix this
Click to expand...
Click to collapse
Will share your device tree..??
I'll post my device tree after I try x10forevers' suggestion.
UPDATE:
So I tried x10forevers' suggestion. I modified proprietary-files.txt and extracted the files. However, some files were not found, namely:
Code:
libmm-color-convertor.so
libmmparser_divxdrmlib.so
a225_pfp.fw
a225_pm4.fw
a225p5_pm4.fw
a300_pfp.fw
a300_pm4.fw
leia_pfp_470.fw
leia_pm4_470.fw
libC2D2.so
UPDATE1:
what should be the value for TARGET_ARCH_VARIANT?
UPDATE 2:
arunmcops, you might want to edit out the '6' from your device.mk
See this line:
Code:
frameworks/base/data/etc/android.soft6ware.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
Prince.Paul.K said:
Arun will you modify your device tree.. I will try to compile again..
Will try for qcom/s100 also.. Both are same build.. Any way.. Device can be changed on .prop later..!!
---------- Post added at 07:04 PM ---------- Previous post was at 06:56 PM ----------
Will share your device tree..??
Click to expand...
Click to collapse
GITHUB
Your github id ?
chrgegdoc said:
I'll post my device tree after I try x10forevers' suggestion.
UPDATE:
So I tried x10forevers' suggestion. I modified proprietary-files.txt and extracted the files. However, some files were not found, namely:
Code:
libmm-color-convertor.so
libmmparser_divxdrmlib.so
a225_pfp.fw
a225_pm4.fw
a225p5_pm4.fw
a300_pfp.fw
a300_pm4.fw
leia_pfp_470.fw
leia_pm4_470.fw
libC2D2.so
UPDATE1:
what should be the value for TARGET_ARCH_VARIANT?
UPDATE 2:
arunmcops, you might want to edit out the '6' from your device.mk
See this line:
Code:
frameworks/base/data/etc/android.soft6ware.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
Click to expand...
Click to collapse
TARGET_ARCH_VARIANT := armv7-a-neon
TARGET_ARCH_VARIANT_CPU := cortex-a5
TARGET_ARCH_VARIANT_FPU := neon
@Chargegdoc
I think that fw files are in the clone files I have told you in earlier post
Check it
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Here is my GitHub
Please check for errors. I just copied all the folders from karbonna9plus and made a few changes.
EDIT:
@x10forevers
Indeed it is there.
I got another error:
Code:
make: *** No rule to make target `device/qcom/s100/prebuilt/system/etc/vold.fstab_use_tflashvold.fstab_use_emmc', needed by `out/target/product/s100/system/etc/vold.fstab_use_tflash'. Stop.
Edited the device.mk and changed the following lines:
Code:
device/qcom/s100/prebuilt/system/etc/vold.fstab_use_tflashvold.fstab_use_emmc:system/etc/vold.fstab_use_tflash
to
Code:
device/qcom/s100/prebuilt/system/etc/vold.fstab_use_tflash:system/etc/vold.fstab_use_tflash
I'll sleep for now and continue working on this the next day.
---------- Post added at 01:23 AM ---------- Previous post was at 12:50 AM ----------
There's a LOT of make: *** No rule to make target errors. I'll try to fix these tomorrow.

[Q] [Cyanogenmod 7] Help - Error While Compiling Cm 7.1 - Libicui/libdvm

Hi guys,
Im new in the Forum and this is my first post, if someone can help me with my situation I will be very grateful.
My problem is the following:
Ive been trying to compile CM and while building there where few errors, until now I could fix them by myself but the latest one I havent been able to.
My machine: Pretty much standard Dell xps 15, core i7, 8GB RAM running Ubuntu 13.10, I upgrade it from 13.04.
I follow the standard guide to compile the code presented in the Wiki:
//wiki.cyanogen.../Build_for_p500 (im new and i cannot post outgoing links)
And the error is the following , after using the BRUNCH P500 command:
Code:
target StaticLib: libop (out/target/product/p500/obj/STATIC_LIBRARIES/libop_intermediates/libop.a)
host SharedLib: libdvm (out/host/linux-x86/obj/lib/libdvm.so)
Install: out/host/linux-x86/lib/libssl.so
Install: out/host/linux-x86/lib/libicuuc.so
Install: out/host/linux-x86/bin/dexdeps
Install: out/host/linux-x86/bin/emulator
Install: out/host/linux-x86/bin/jasmin
Install: out/host/linux-x86/bin/mksnapshot
Install: out/host/linux-x86/framework/hosttestlib.jar
Install: out/host/linux-x86/framework/sdklib.jar
Install: out/host/linux-x86/framework/sdkstats.jar
Install: out/host/linux-x86/framework/ddmuilib.jar
out/host/linux-x86/obj/lib/libicui18n.so: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/lib/libdvm.so] Error 1
make: *** Waiting for unfinished jobs....
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
external/sqlite/dist/sqlite3.c: In function 'fkLookupParent':
external/sqlite/dist/sqlite3.c:54938: warning: assuming signed overflow does not occur when assuming that (X - c) <= X is always true
target StaticLib: libc_nomalloc (out/target/product/p500/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area

Compilation help

here's my error, any help would be greatly appreciated.
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/jukie/android/system/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
system: ubuntu 14.10 building lollipop cm
I'm having the same issue.
Any progress?!
qumaciel said:
Any progress?!
Click to expand...
Click to collapse
Give this a go. sudo apt-get install clang-3.5
EDIT: NVM
jukiewalsh said:
here's my error, any help would be greatly appreciated.
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/home/jukie/android/system/out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
system: ubuntu 14.10 building lollipop cm
Click to expand...
Click to collapse
did u find a solution to it? I managed to find one. the error most probably lies in the folder <SOURCEDIR>/out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native
there, you might file a file named register_android_system_OsConstants.d which was supposed to be register_android_system_OsConstants.P
somehow the file was named with wrong extension.
changing the extension to .P again worked for me.

[Q] rscpuintrinsics_neon_blur

hi to everyone. i had always this error when compiling for my n7000. i ve tried a lot of source
cyanogen, liquid, omni and same. is anyone have idea about below ?
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S: Assembler messages:
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S:1429: Error: unexpected end of file in irp or irpc
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
build/core/binary.mk:749: recipe for target '/home/*/omni/out/target/product/n7000/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o' failed
make: *** [/home/*/omni/out/target/product/n7000/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o] Error 1
make: *** Bitmemiş işler için bekliyor....
freedmm said:
hi to everyone. i had always this error when compiling for my n7000. i ve tried a lot of source
cyanogen, liquid, omni and same. is anyone have idea about below ?
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S: Assembler messages:
frameworks/rs/cpu_ref/rsCpuIntrinsics_neon_Blur.S:1429: Error: unexpected end of file in irp or irpc
clang: error: assembler command failed with exit code 1 (use -v to see invocation)
build/core/binary.mk:749: recipe for target '/home/*/omni/out/target/product/n7000/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o' failed
make: *** [/home/*/omni/out/target/product/n7000/obj/SHARED_LIBRARIES/libRSCpuRef_intermediates/rsCpuIntrinsics_neon_Blur.o] Error 1
make: *** Bitmemiş işler için bekliyor....
Click to expand...
Click to collapse
Switch system language to english.Then start clean build.

Categories

Resources