need help with porting CWM to coolpad 7236 - General Questions and Answers

if this is not the right forum, please move it.
hello,
i tried following the guide in order to port CWM to Coolpad 7236. i used latest ubuntu, 64 bit.
i used this boot.img: https://mega.co.nz/#!EBIH1TRZ!hfesnz3FkZXnaEHw6T5sA1DH98spXAGY594j-0HU-Hw
and used cm10.2 repo (since the phone originaly came with android 4.3)
everything seemed to work, until i got to the last step:
Code:
make -j4 recoveryzip
and got this at the end:
Code:
host C++: libLLVMCore <= external/llvm/lib/IR/Metadata.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Module.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Pass.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/PassManager.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/PassRegistry.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/PrintModulePass.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Type.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/TypeFinder.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Use.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/User.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Value.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/ValueSymbolTable.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/ValueTypes.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Verifier.cpp
/home/kkffiirr/Source/out/host/linux-x86/bin/checkseapp -p /home/kkffiirr/Source/out/target/product/7236/obj/ETC/sepolicy_intermediates/sepolicy -o /home/kkffiirr/Source/out/target/product/7236/obj/ETC/seapp_contexts_intermediates/seapp_contexts /home/kkffiirr/Source/out/target/product/7236/obj/ETC/seapp_contexts_intermediates/seapp_contexts.tmp
Install: /home/kkffiirr/Source/out/target/product/7236/root/sepolicy
make: *** No rule to make target `device/Coolpad/7236/kernel', needed by `/home/kkffiirr/Source/out/target/product/7236/kernel'. Stop.
make: *** Waiting for unfinished jobs....
and it stopped there.
didn't work.
i will appreciate any help

Any idea?

Related

[Q] Compilation problem in Ubuntu Touch for Xperia Z

I am facing Compilation problem while building Ubuntu Touch for Xperia Z (codename: yuga)
Synced source code using:
1) phablet-dev-bootstrap [target_directory]
2) breakfast yuga
3) changed .repo/local_manifests/roomservice.xml to include <project name="TheMuppets/proprietary_vendor_sony" path="vendor/sony" remote="github" revision="cm-10.1" />.
4) repo sync (downloads the device related blobs)
Compilation steps:
1) . build/envsetup.sh
2) brunch yuga
Compilation issues:
1) I am seeing lots of "Segmentation fault (core dumped)" while compiling.
2) libelf not found (then I have downloaded "elfutils" from "git clone https://android.googlesource.com/platform/external/elfutils"; in external folder)
3) Now, I am seeing No rule to make target `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/android-boot.img'
Please provide me with the steps to seamlessly compile Ubuntu touch yuga source
[Logs]
make: Circular /home/abhishek/work/ubuntu_touch/out/target/product/yuga/system/lib/libdl.so <- /home/abhishek/work/ubuntu_touch/out/target/product/yuga/system/lib/libc.so dependency dropped.
Segmentation fault (core dumped)
/home/abhishek/work/ubuntu_touch/kernel/sony/apq8064/scripts/gcc-goto.sh: line 21: 23645 Done cat <<'END'
int main(void)
{
#ifdef __arm__
/*
* Not related to asm goto, but used by jump label
* and broken on some ARM GCC versions (see GCC Bug 48637).
*/
static struct { int dummy; int state; } tp;
asm (".long %c0" :: "i" (&tp.state));
#endif
entry:
asm goto ("" :::: entry);
return 0;
}
END
23646 Segmentation fault (core dumped) | [email protected] -x c - -c -o /dev/null > /dev/null 2>&1
Segmentation fault (core dumped)
Segmentation fault (core dumped)
CHK include/linux/version.h
make[1]: Leaving directory `/home/abhishek/work/ubuntu_touch/kernel/sony/apq8064'
target thumb C: libcrypto_static <= external/openssl/crypto/evp/e_rc4.c
target thumb C: libcrypto_static <= external/openssl/crypto/lhash/lh_stats.c
target thumb C: libcrypto_static <= external/openssl/crypto/pkcs12/p12_asn.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509/x509_r2x.c
target thumb C++: libpixelflinger_static <= system/core/libpixelflinger/format.cpp
target arm C: libm <= bionic/libm/src/e_exp.c
target arm C: libm <= bionic/libm/src/e_rem_pio2f.c
target arm C: libm <= bionic/libm/src/s_finite.c
target arm C: libm <= bionic/libm/src/s_llroundf.c
target arm C: libm <= bionic/libm/src/s_rintf.c
target arm C: libm <= bionic/libm/src/s_fabsl.c
target thumb C: libuclibcrpc <= external/busybox/android/librpc/bindresvport.c
target thumb C: libuclibcrpc <= external/busybox/android/librpc/xdr_mem.c
make: *** No rule to make target `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/android-boot.img', needed by `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/obj/PACKAGING/target_files_intermediates/cm_yuga-target_files-eng.abhishek.zip'. Stop.
make: *** Waiting for unfinished jobs....

Building from source -- libLLVM.so error

Hi all,
I just got a Nexus 5 a week or so ago and figured I'd try to build my own ROM. I used the guide here: http://source.android.com/source/building-running.html
Build ran for about an hour, then exited with an error. Here's the last few lines of the log:
Code:
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
Copying: out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/emma_out/lib/classes-jarjar.jar
target Generated: libbcc <= frameworks/compile/libbcc/tools/build/gen-build-info.py
Install: out/host/linux-x86/lib/libLLVM.so
Copying: out/host/common/obj/JAVA_LIBRARIES/apache-xml-hostdex_intermediates/classes.jar
Copying: out/host/common/obj/JAVA_LIBRARIES/conscrypt-hostdex_intermediates/classes.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/guava_intermediates/emma_out/lib/classes-jarjar.jar
target thumb C++: third_party_WebKit_Source_core_webcore_dom_gyp <= external/chromium_org/third_party/WebKit/Source/core/dom/ActiveDOMObject.cpp
target thumb C++: third_party_WebKit_Source_core_webcore_dom_gyp <= external/chromium_org/third_party/WebKit/Source/core/dom/AnimationEvent.cpp
target thumb C++: third_party_WebKit_Source_core_webcore_dom_gyp <= external/chromium_org/third_party/WebKit/Source/core/dom/Attr.cpp
target thumb C++: third_party_WebKit_Source_core_webcore_dom_gyp <= external/chromium_org/third_party/WebKit/Source/core/dom/BeforeTextInsertedEvent.cpp
acp: partial write to 'out/host/linux-x86/lib/libLLVM.so' (4096 of 8192)
make: *** [out/host/linux-x86/lib/libLLVM.so] Error 1
make: *** Deleting file `out/host/linux-x86/lib/libLLVM.so'
target thumb C++: third_party_WebKit_Source_core_webcore_dom_gyp <= external/chromium_org/third_party/WebKit/Source/core/dom/BeforeUnloadEvent.cpp
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
Has anyone ran into this sort of issue before?
Thanks in advance
Bensky91 said:
Build ran for about an hour, then exited with an error. Here's the last few lines of the log:
Code:
acp: partial write to 'out/host/linux-x86/lib/libLLVM.so' (4096 of 8192)
Has anyone ran into this sort of issue before?
Thanks in advance
Click to expand...
Click to collapse
Disk's not full is it?
gtj0 said:
Disk's not full is it?
Click to expand...
Click to collapse
Funny you should mention that, I just fixed my problem by resizing my partition. Didn't give enough space to the VM.
Thanks!

[HELP] Build Error debug for Ubuntu Touch

Hey guys, i am building Ubuntu Touch for Moto G and it is my first source build. I got stuck on this build error. Can anyone help me out so that we can get Ubuntu Touch for this awesome device too.
@TeamMex @rr46000 @herna can you guys please help me on this?
Code:
Copy: /home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/root/ueventd.rc
Install: /home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/bin/zipalign
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/yeshwanth/Ubuntu_Touch/kernel/motorola/msm8226'
target StaticLib: libc (/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
Code:
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
use it
and if you have issues copy attached file on out/host/linux-x86/framework
TeamMex said:
Code:
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
Click to expand...
Click to collapse
after adding the line to roomservice.xml and when trying to repo sync i get this error:
Code:
$ repo sync
fatal: duplicate path vendor/motorola in /home/yeshwanth/Ubuntu_Touch/.repo/manifest.xml
seems there is a similar line in my roomservice.xml like this:
Code:
project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="stable/cm-11.0" />
yeshwanthvshenoy said:
after adding the line to roomservice.xml and when trying to repo sync i get this error:
Code:
$ repo sync
fatal: duplicate path vendor/motorola in /home/yeshwanth/Ubuntu_Touch/.repo/manifest.xml
seems there is a similar line in my roomservice.xml like this:
Code:
project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="stable/cm-11.0" />
Click to expand...
Click to collapse
replace it...
TeamMex said:
replace it...
Click to expand...
Click to collapse
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
yeshwanthvshenoy said:
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
Click to expand...
Click to collapse
In a terminal
cd /pathtoyourubuntutouchdirectory/
mkdir -p out/host/linux-x86/framework/
And put the teamMex apk in
out/host/linux-x86/framework/
Sent from my Moto G using XDA Free mobile app
yeshwanthvshenoy said:
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
Click to expand...
Click to collapse
add this
TimeService.apk
/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates
(Added in attached files.)
h2o64 said:
In a terminal
cd /pathtoyourubuntutouchdirectory/
mkdir -p out/host/linux-x86/framework/
And put the teamMex apk in
out/host/linux-x86/framework/
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
TeamMex said:
add this
TimeService.apk
/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates
(Added in attached files.)
Click to expand...
Click to collapse
Added both files now new error
Code:
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_sxnet.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_utl.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3err.c
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
yeshwanthvshenoy said:
Added both files now new error
Code:
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_sxnet.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_utl.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3err.c
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Remenber that EVERY TIME you close the building terminal, you need to do
Code:
$ . build/envsetup.sh
$ lunch full_falcon-userdebug

Cyanogenmod12 for galaxy tab 2

Code:
target thumb C: sh <= external/mksh/src/eval.c
target thumb C: sh <= external/mksh/src/exec.c
target thumb C: sh <= external/mksh/src/expr.c
target thumb C: sh <= external/mksh/src/funcs.c
target thumb C: sh <= external/mksh/src/histrap.c
target thumb C: sh <= external/mksh/src/jobs.c
target thumb C: sh <= external/mksh/src/lex.c
target thumb C: sh <= external/mksh/src/main.c
target thumb C: sh <= external/mksh/src/misc.c
target thumb C: sh <= external/mksh/src/shf.c
target thumb C: sh <= external/mksh/src/syn.c
target thumb C: sh <= external/mksh/src/tree.c
target thumb C: sh <= external/mksh/src/var.c
target thumb C: showlease <= external/dhcpcd/showlease.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl_linux.c
Import includes file: /home/owner/android/system/out/target/product/p3110/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:35:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:39:
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags]
class DisplayInfo;
^
frameworks/native/include/ui/DisplayInfo.h:28:8: note: previous use is here
struct DisplayInfo {
^
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: note: did you mean struct here?
class DisplayInfo;
^~~~~
struct
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:76:18: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
mPowerMode(HWC_POWER_MODE_OFF),
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:19: error: use of undeclared identifier 'HWC_POWER_MODE_NORMAL'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:43: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:351:27: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
return (mPowerMode != HWC_POWER_MODE_OFF);
^
2 warnings and 4 errors generated.
make: *** [/home/owner/android/system/out/target/product/p3110/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/Client.cpp:26:
In file included from frameworks/native/services/surfaceflinger/Layer.h:42:
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:57:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
instead of HWComposer being declared as a class changed it to be declared as a struct.
I wonder what android-andi did to get his android 5.0 rom to compile. I think this error is telling that surfaceflinger is broken in cm12.
the device and kernel sources I used in my attempt to compile cm12 are just the cm11 ones.
dorfd1 said:
Code:
target thumb C: sh <= external/mksh/src/eval.c
target thumb C: sh <= external/mksh/src/exec.c
target thumb C: sh <= external/mksh/src/expr.c
target thumb C: sh <= external/mksh/src/funcs.c
target thumb C: sh <= external/mksh/src/histrap.c
target thumb C: sh <= external/mksh/src/jobs.c
target thumb C: sh <= external/mksh/src/lex.c
target thumb C: sh <= external/mksh/src/main.c
target thumb C: sh <= external/mksh/src/misc.c
target thumb C: sh <= external/mksh/src/shf.c
target thumb C: sh <= external/mksh/src/syn.c
target thumb C: sh <= external/mksh/src/tree.c
target thumb C: sh <= external/mksh/src/var.c
target thumb C: showlease <= external/dhcpcd/showlease.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl_linux.c
Import includes file: /home/owner/android/system/out/target/product/p3110/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:35:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:39:
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags]
class DisplayInfo;
^
frameworks/native/include/ui/DisplayInfo.h:28:8: note: previous use is here
struct DisplayInfo {
^
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: note: did you mean struct here?
class DisplayInfo;
^~~~~
struct
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:76:18: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
mPowerMode(HWC_POWER_MODE_OFF),
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:19: error: use of undeclared identifier 'HWC_POWER_MODE_NORMAL'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:43: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:351:27: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
return (mPowerMode != HWC_POWER_MODE_OFF);
^
2 warnings and 4 errors generated.
make: *** [/home/owner/android/system/out/target/product/p3110/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/Client.cpp:26:
In file included from frameworks/native/services/surfaceflinger/Layer.h:42:
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:57:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
I wonder what android-andi did to get his android 5.0 rom to compile. I think this error is telling that surfaceflinger is broken in cm12.
the device and kernel sources I used in my attempt to compile cm12 are just the cm11 ones.
Click to expand...
Click to collapse
Be patient, also the changes i added are highly WIP... you need to patch device, common omap 4, also kernel (to work on GCC 4.8), native etc.... better wait and don't waste your time.
Send from OnePlus One using Tapatalk

Compiler error libstagefright

I'm trying to compile euphoria with @arter97 's optimizations and I can't fix this error. Without them it builds fine, even with 4.9 toolchains. any ideas?
Code:
target arm C++: libaudioflinger <= frameworks/av/services/audioflinger/AudioMixer.cpp
target thumb C++: libaudioflinger <= frameworks/av/services/audioflinger/AudioFlinger.cpp
target thumb C++: libaudioflinger <= frameworks/av/services/audioflinger/Threads.cpp
target thumb C++: libaudioflinger <= frameworks/av/services/audioflinger/Tracks.cpp
frameworks/av/services/audioflinger/AudioMixer.cpp: In static member function 'static void android::AudioMixer::track__NoResample(android::AudioMixer::track_t*, TO*, size_t, TO*, TA*) [with int MIXTYPE = 0; TO = int; TI = short int; TA = int; size_t = unsigned int]':
frameworks/av/services/audioflinger/AudioMixer.cpp:2065:6: internal compiler error: in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1423
void AudioMixer::track__NoResample(track_t* t, TO* out, size_t frameCount,
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://source.android.com/source/report-bugs.html> for instructions.
make: *** [/home/jukie/android/system/out/target/product/bacon/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioMixer.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/system$
jukiewalsh said:
I'm trying to compile euphoria with @arter97 's optimizations and I can't fix this error. Without them it builds fine, even with 4.9 toolchains. any ideas?
Code:
target arm C++: libaudioflinger <= frameworks/av/services/audioflinger/AudioMixer.cpp
target thumb C++: libaudioflinger <= frameworks/av/services/audioflinger/AudioFlinger.cpp
target thumb C++: libaudioflinger <= frameworks/av/services/audioflinger/Threads.cpp
target thumb C++: libaudioflinger <= frameworks/av/services/audioflinger/Tracks.cpp
frameworks/av/services/audioflinger/AudioMixer.cpp: In static member function 'static void android::AudioMixer::track__NoResample(android::AudioMixer::track_t*, TO*, size_t, TO*, TA*) [with int MIXTYPE = 0; TO = int; TI = short int; TA = int; size_t = unsigned int]':
frameworks/av/services/audioflinger/AudioMixer.cpp:2065:6: internal compiler error: in vect_get_vec_def_for_operand, at tree-vect-stmts.c:1423
void AudioMixer::track__NoResample(track_t* t, TO* out, size_t frameCount,
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://source.android.com/source/report-bugs.html> for instructions.
make: *** [/home/jukie/android/system/out/target/product/bacon/obj/SHARED_LIBRARIES/libaudioflinger_intermediates/AudioMixer.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/system$
Click to expand...
Click to collapse
https://github.com/temasek/android_frameworks_av/commit/292d4e2c74d07287b7dc3b366e031f235e136fc8
arter97 said:
I'm trying to compile euphoria with arter97 's optimizations and I can't fix this error. Without them it builds fine, even with 4.9 toolchains. any ideas?
https://github.com/temasek/android_frameworks_av/commit/292d4e2c74d07287b7dc3b366e031f235e136fc8
Click to expand...
Click to collapse
Thanks a lot! Appreciate it. A mod can close/delete the thread
Thanks
arter97 said:
https://github.com/temasek/android_frameworks_av/commit/292d4e2c74d07287b7dc3b366e031f235e136fc8
Click to expand...
Click to collapse
I've gotten the same issue and I just cherry-picked the commit and let's go to the next error. Thanks for directing us to the commit.
arter97 said:
https://github.com/temasek/android_frameworks_av/commit/292d4e2c74d07287b7dc3b366e031f235e136fc8
Click to expand...
Click to collapse
Thanks man! Great help!
jukiewalsh said:
Thanks a lot! Appreciate it. A mod can close/delete the thread
Click to expand...
Click to collapse
thank god wasnt deleted... was trying to find a fix xD
I also will analise the code of where it failed to see if is possible to make a work around.

Categories

Resources