[Q]Help building CM9 - Android Q&A, Help & Troubleshooting

Hey guys I'm having some issues here
I'm apptempting to port CM9 to the HTC Thunderbolt.
I used ICS device-specific files picked from ProTekk's and liquid0624's githubs.
I attempted to compile many times, and got mixed errors.
Now every time I try to compile, I get this same error.
Code:
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a when searching for -lstdc++
out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile.o: In function `std::list::_M_erase(std::_List_iterator)':
/usr/include/c++/4.6/bits/stl_list.h:1532: undefined reference to `std::__detail::_List_node_base::_M_unhook()'
out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile.o: In function `std::list::_M_insert(std::_List_iterator, int const&)':
/usr/include/c++/4.6/bits/stl_list.h:1516: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile.o: In function `std::list::_M_transfer(std::_List_iterator, std::_List_iterator, std::_List_iterator)':
/usr/include/c++/4.6/bits/stl_list.h:1508: undefined reference to `std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*)'
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj/EXECUTABLES/grxmlcompile_intermediates/grxmlcompile] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/system$
Any help is greatly appreciated!

Related

[Q]CM9-HUAWEI-ASCEND-G300-U8815/U8818--build--error

Hello every body
I build CM9 for Huawei ascend G300/U8815, but some errors 。who can help me
thank you
env:mac os x 10.7.4
sorry my english
prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/u8818/obj/EXECUTABLES/rild_intermediates/rild.o: in function s_rilEnv:rild.c(.data.rel.s_rilEnv+0x4): error: undefined reference to 'RIL_onUnsolicitedResponse'
collect2: ld returned 1 exit status
make: *** [out/target/product/u8818/obj/EXECUTABLES/rild_intermediates/LINKED/rild] Error 1
make: *** Waiting for unfinished jobs....
prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/u8818/obj/SHARED_LIBRARIES/libmedia_intermediates/IMediaRecorder.o: in function .LTHUNK2:frameworks/base/include/binder/IInterface.h:44: error: undefined reference to 'android::ICameraRecordingProxy::asInterface(android::sp<android::IBinder> const&)'
collect2: ld returned 1 exit status
Click to expand...
Click to collapse
我也遇到这个问题了,找不到解决办法,不知道楼主解决没有?
http://www.modaco.com/topic/354238-ics-cyanogenmod-9-for-the-ascend-g300-link-up/
Modaco seems more active at the moment with dev for this device.
Wow that's amazing. I hope you can overcome those errors. Good luck with you attempt to port the cyaongen 9 to the awesome Huawei Ascend G300.

Please Help with building error

hi people i started building cm7 for huawei g300 but i get error:
Code:
Copy: out/target/product/u8815/system/lib/libril.so
target Executable: rild (out/target/product/u8815/obj/EXECUTABLES/rild_intermediates/LINKED/rild)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8815/obj/EXECUTABLES/rild_intermediates/rild.o: in function s_rilEnv:rild.c(.data.rel+0x4): error: undefined reference to 'RIL_onUnsolicitedResponse'
collect2: ld returned 1 exit status
make: *** [out/target/product/u8815/obj/EXECUTABLES/rild_intermediates/LINKED/rild] Error 1
make: *** Waiting for unfinished jobs....
if someone know what to do to fix this error, please tell me.
ficko_98 said:
hi people i started building cm7 for huawei g300 but i get error:
Code:
Copy: out/target/product/u8815/system/lib/libril.so
target Executable: rild (out/target/product/u8815/obj/EXECUTABLES/rild_intermediates/LINKED/rild)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8815/obj/EXECUTABLES/rild_intermediates/rild.o: in function s_rilEnv:rild.c(.data.rel+0x4): error: undefined reference to 'RIL_onUnsolicitedResponse'
collect2: ld returned 1 exit status
make: *** [out/target/product/u8815/obj/EXECUTABLES/rild_intermediates/LINKED/rild] Error 1
make: *** Waiting for unfinished jobs....
if someone know what to do to fix this error, please tell me.
Click to expand...
Click to collapse
Well......Are you using the original toolchain or is that LINARO?
because it looks like the error is being effected by the toolchain atleast thats what i see ....An error in RILD
Try a different toolchain and let me know if the error occurs again
And by different toolchain i mean the stock toolchain

Issues Compiling CM 11 from Source

I'm trying to compile CM-11 from source and it's taken forever to get this far but I'm learning. I have the source downloaded 100% no errors and I did the step by step guide on how to get to brunch dlx for the "HTC DNA" build and I get this error.
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:396: undefined reference to `icu_46::RBBINode::findNodes(icu_46::UVector*, icu_46::RBBINode::NodeType, UErrorCode&)'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:399: undefined reference to `icu_46::RBBINode::findNodes(icu_46::UVector*, icu_46::RBBINode::NodeType, UErrorCode&)'
/media/ubuntu/developer/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/third_party_icu_icuuc_host_gyp_intermediates/third_party_icu_icuuc_host_gyp.a(rbbitblb.o): In function `icu_46::RBBITableBuilder::build()':
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:78: undefined reference to `icu_46::RBBINode::flattenVariables()'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:93: undefined reference to `icu_46::RBBINode::RBBINode(icu_46::RBBINode::NodeType)'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:94: undefined reference to `icu_46::RBBINode::RBBINode(icu_46::RBBINode::NodeType)'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:98: undefined reference to `icu_46::RBBINode::~RBBINode()'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:99: undefined reference to `icu_46::RBBINode::~RBBINode()'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:114: undefined reference to `icu_46::RBBINode::RBBINode(icu_46::RBBINode::NodeType)'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:122: undefined reference to `icu_46::RBBINode::RBBINode(icu_46::RBBINode::NodeType)'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:126: undefined reference to `icu_46::RBBINode::~RBBINode()'
/media/ubuntu/developer/android/system/external/chromium_org/third_party/icu/source/common/rbbitblb.cpp:136: undefined reference to `icu_46::RBBINode::flattenSets()'
collect2: ld returned 1 exit status
make: *** [/media/ubuntu/developer/android/system/out/host/linux-x86/obj/EXECUTABLES/v8_tools_gyp_mksnapshot_arm_host_gyp_intermediates/mksnapshot.arm] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
I'm guessing it has something to do with mksnapshot.arm which I've checked and that file don't exisit so I do repo sync and it finishs and the file is still not there... Any tips on how to fix this issue?

[Q] Dying CM build at reference to ff_ass_decoder

I have to admit I'm pretty stumped.
Code:
/home/ajf/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: warning: shared library text segment is not shareable
external/ffmpeg/libavcodec/allcodecs.c:375: error: undefined reference to 'ff_ass_decoder'
collect2: error: ld returned 1 exit status
make: *** [/home/ajf/android/system/out/target/product/flo/obj/SHARED_LIBRARIES/libavcodec_intermediates/LINKED/libavcodec.so] Error 1
make: *** Waiting for unfinished jobs....
The thing is, there is no active reference to ff_ass_decoder in allcodecs.c, and the only thing I can see that WOULD apply is commented out.
Ideas?
Ajfink said:
I have to admit I'm pretty stumped.
Code:
/home/ajf/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/../lib/gcc/arm-linux-androideabi/4.8/../../../../arm-linux-androideabi/bin/ld: warning: shared library text segment is not shareable
external/ffmpeg/libavcodec/allcodecs.c:375: error: undefined reference to 'ff_ass_decoder'
collect2: error: ld returned 1 exit status
make: *** [/home/ajf/android/system/out/target/product/flo/obj/SHARED_LIBRARIES/libavcodec_intermediates/LINKED/libavcodec.so] Error 1
make: *** Waiting for unfinished jobs....
The thing is, there is no active reference to ff_ass_decoder in allcodecs.c, and the only thing I can see that WOULD apply is commented out.
Ideas?
Click to expand...
Click to collapse
Comment out line 482 :
REGISTER_ENCDEC (ASS, ass);
Worked for me

[Q]Problems building DirtyUnicorns 5.1

Hi
I was trying to compile lollipop DU but I can't solve this error.
Code:
target SharedLib: libcryptfslollipop (/home/thunderblockit/DirtyUnicorns_OUT/target/product/y550/obj/SHARED_LIBRARIES/libcryptfslollipop_intermediates/LINKED/libcryptfslollipop.so)
bootable/recovery/crypto/lollipop/cryptfs.c:114: error: undefined reference to 'should_use_keymaster'
collect2: error: ld returned 1 exit status
make: *** [/home/thunderblockit/DirtyUnicorns_OUT/target/product/y550/obj/SHARED_LIBRARIES/libcryptfslollipop_intermediates/LINKED/libcryptfslollipop.so] Errore 1
should_use_keymaster is in cryptfs_hw.h
And cryptfs_hw is in qcom_common but it seems like makefiles of device/qcom/common aren't included in build?
How to solve?

Categories

Resources