Compiler error libstagefright - ONE Q&A, Help & Troubleshooting

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.

Related

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!

[Completed] Follow up on [ROM Build From Source Help] Error at compiling stage

Hi guys,
I have another error
Code:
target thumb C++: libjavacore <= libcore/luni/src/main/native/AsynchronousSocket CloseMonitor.cpp
system/vold/cryptfs.c: In function 'pbkdf2':
system/vold/cryptfs.c:871:82: warning: unused parameter 'params' [-Wunused-param eter]
static void pbkdf2(char *passwd, unsigned char *salt, unsigned char *ikey, void *params) {
^
system/vold/cryptfs.c: In function 'do_crypto_complete':
system/vold/cryptfs.c:1153:37: warning: unused parameter 'mount_point' [-Wunused -parameter]
static int do_crypto_complete(char *mount_point)
^
target thumb C++: libjavacore <= libcore/luni/src/main/native/ExecStrings.cpp
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacrypto_intermedi ates/crypto/src/main/native/org_conscrypt_NativeCrypto.o] Killed
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacore_intermediat es/dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.o] Killed
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacore_intermediat es/luni/src/main/native/AsynchronousSocketCloseMonitor.o] Killed
Can you guys help me again?
TIA,
AndroidNoob69
AndroidNoob69 said:
Hi guys,
I have another error
Code:
target thumb C++: libjavacore <= libcore/luni/src/main/native/AsynchronousSocket CloseMonitor.cpp
system/vold/cryptfs.c: In function 'pbkdf2':
system/vold/cryptfs.c:871:82: warning: unused parameter 'params' [-Wunused-param eter]
static void pbkdf2(char *passwd, unsigned char *salt, unsigned char *ikey, void *params) {
^
system/vold/cryptfs.c: In function 'do_crypto_complete':
system/vold/cryptfs.c:1153:37: warning: unused parameter 'mount_point' [-Wunused -parameter]
static int do_crypto_complete(char *mount_point)
^
target thumb C++: libjavacore <= libcore/luni/src/main/native/ExecStrings.cpp
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacrypto_intermedi ates/crypto/src/main/native/org_conscrypt_NativeCrypto.o] Killed
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacore_intermediat es/dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.o] Killed
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacore_intermediat es/luni/src/main/native/AsynchronousSocketCloseMonitor.o] Killed
Can you guys help me again?
TIA,
AndroidNoob69
Click to expand...
Click to collapse
Can you tell me which sources is this?
HashyCode said:
Can you tell me which sources is this?
Click to expand...
Click to collapse
AOSX ROM( https://github.com/AndroidOpenSourceXperia) synced the sources using Update.sh from android_scripts repo of AOSX git. Then i did excecuted CompileROM.sh and it went on for like 15 minutes and aborted by itself.
Btw aosx is just aosp with a little bit more of features from cm so technically i am compiling aosp
Sent my AOSP Xperia P
target thumb C++: libjavacore <= libcore/luni/src/main/native/ExecStrings.cpp
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacrypto_intermedi ates/crypto/src/main/native/org_conscrypt_NativeCrypto.o] Killed
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacore_intermediat es/dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.o] Killed
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacore_intermediat es/luni/src/main/native/AsynchronousSocketCloseMonitor.o] Killed
It seems you're running out of RAM. How much your swap is set to?
HashyCode.
HashyCode said:
target thumb C++: libjavacore <= libcore/luni/src/main/native/ExecStrings.cpp
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacrypto_intermedi ates/crypto/src/main/native/org_conscrypt_NativeCrypto.o] Killed
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacore_intermediat es/dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.o] Killed
make: *** [out/target/product/nypon/obj/SHARED_LIBRARIES/libjavacore_intermediat es/luni/src/main/native/AsynchronousSocketCloseMonitor.o] Killed
It seems you're running out of RAM. How much your swap is set to?
HashyCode.
Click to expand...
Click to collapse
2GB RAM 4GB swap
Sent my AOSP Xperia P
AndroidNoob69 said:
2GB RAM 4GB swap
Sent my AOSP Xperia P
Click to expand...
Click to collapse
Last time i use to have 2GB. I have same error like you. But it fixed as i add more 2GB.
Might turn off the pc for few hours and build back without making make clean or repo sync.
It might help.
HashyCode.
HashyCode said:
Last time i use to have 2GB. I have same error like you. But it fixed as i add more 2GB.
Might turn off the pc for few hours and build back without making make clean or repo sync.
It might help.
HashyCode.
Click to expand...
Click to collapse
Lol its a rented vps as my network is too weak to sync sources. So i just shut the server down and try to rebuild after a few hours?
Sent my AOSP Xperia P
AndroidNoob69 said:
Lol its a rented vps as my network is too weak to sync sources. So i just shut the server down and try to rebuild after a few hours?
Sent my AOSP Xperia P
Click to expand...
Click to collapse
Try it maybe?

[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

GCC 5 for i9100/I9300/N7100

Hy guyz , i'm trying to compile ROM with uber 5.3.1 but it gave me this error:
Code:
target thumb C: libbacktrace <= system/core/libbacktrace/thread_utils.c
target StaticLib: libziparchive (/home/suzuki/cm13.0/out/target/product/i9300/obj/STATIC_LIBRARIES/libziparchive_intermediates/libziparchive.a)
target SharedLib: libexpat (/home/suzuki/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libexpat_intermediates/LINKED/libexpat.so)
target thumb C++: libui <= frameworks/native/libs/ui/Fence.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function 'android::status_t android::ResStringPool::setTo(const void*, size_t, bool)':
frameworks/base/libs/androidfw/ResourceTypes.cpp:571:28: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
(!mHeader->flags&ResStringPool_header::UTF8_FLAG &&
^
cc1plus: all warnings being treated as errors
make: *** [/home/suzuki/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libandroidfw_intermediates/ResourceTypes.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/suzuki/cm13.0'
coul'd someone help me out with it? Thanks in advance
Edit: all i need is the files i need to change to make the toolchain work , i don't care how many they are
ok , so i found out that the error is in android_frameworks_base/libs/androidfw/ResourceTypes.cpp in the line
Code:
if ((mHeader->flags&ResStringPool_header::UTF8_FLAG &&
((uint8_t*)mStrings)[mStringPoolSize-1] != 0) ||
(!mHeader->flags&ResStringPool_header::UTF8_FLAG &&
((uint16_t*)mStrings)[mStringPoolSize-1] != 0)) {
ALOGW("Bad string block: last string is not 0-terminated\n");
return (mError=BAD_TYPE);
can someone tell me how to fix it? thx in advance
Hello! I'm not much of a ROM Developer (I can only basically merge ROM sources and device-tree) but here's the original source code from AOSP, it might help :
https://android.googlesource.com/platform/frameworks/base/+/master/libs/androidfw/ResourceTypes.cpp
Line 561 onwards is where your error is
Hope I helped and again, I'm not a professional developer so don't expect too much from me
Jericho Arcelao said:
Hello! I'm not much of a ROM Developer (I can only basically merge ROM sources and device-tree) but here's the original source code from AOSP, it might help :
https://android.googlesource.com/platform/frameworks/base/+/master/libs/androidfw/ResourceTypes.cpp
Line 561 onwards is where your error is
Hope I helped and again, I'm not a professional developer so don't expect too much from me
Click to expand...
Click to collapse
Well it is the same line CM has to , but thanks anyway for trying at last
Most of the rom is compiling now by cherry-picking this , this and this, but now i'm stuck to this error
Code:
[COLOR="Green"]target SharedLib:[/COLOR] libhwconverter (/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/LINKED/libhwconverter.so)
/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/HardwareConverter.o:HardwareConverter.cpp:function HardwareConverter::HardwareConverter(): error: undefined reference to 'SecFimc::create(SecFimc::DEV, SecFimc::MODE, int)'
collect2: error: ld returned 1 exit status
make: *** [/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/LINKED/libhwconverter.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/rpdroky/cm13.0'
i guess this is the last one , hopefully someone can help me out with it
This is the problematic line is in /hardware/samsung/exynos4/hal/libhwconverter/HardwareConverter.cpp , if you remove this line , the rom will compile but i dont know if there are side efects by removeing it ...
Code:
{
SecFimc* handle_fimc = new SecFimc();
mSecFimc = (void *)handle_fimc;
if (handle_fimc->create(SecFimc::DEV_0, SecFimc::MODE_MULTI_BUF, 1) == false)
bHWconvert_flag = 0;
else
bHWconvert_flag = 1;
}
Edit: The camera is force closeing and some apps crash , all the rest works
Cheers :highfive:
Compile zimage gcc5-6
Compile zimage gcc5-6 n7100 Marshmalow
Build Omni Rom N7100 Marshmallow with ubergcc5.3.1 optimized
Kernel dtb.img for n7100 AOSP, CM13

Categories

Resources