Please Help with building error - Android Q&A, Help & Troubleshooting

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

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.

[Q]Help building CM9

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!

[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] Developers: Trouble Compiling CM11 Kernel

So I've done some work on boot images before, but not much, and I wanted to try building a kernel for AOSP KitKat on the EVO 4G LTE. (Why not Lollipop? Data and roaming issues.) But I'm hitting camera-related errors when I try to compile it. Here's the relevant output in the make process:
Code:
CC arch/arm/mach-msm/board-8064-gpiomux.o
CC arch/arm/mach-msm/board-8064-camera.o
In file included from arch/arm/mach-msm/include/mach/camera.h:26:0,
from arch/arm/mach-msm/board-8064-camera.c:19:
include/media/msm_camera.h:1543:6: warning: "CONFIG_HTC_CAMERA_HAL_VERSION" is not defined [-Wundef]
error, forbidden warning: msm_camera.h:1543
make[1]: *** [arch/arm/mach-msm/board-8064-camera.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
I tried to fix it by adding the HTC_CAMERA_HAL_VERSION config to Kconfig, but then I get this error instead:
Code:
CC arch/arm/mach-msm/board-8064-gpiomux.o
CC arch/arm/mach-msm/board-8064-camera.o
In file included from arch/arm/mach-msm/board-8064-camera.c:19:0:
arch/arm/mach-msm/include/mach/camera.h:682:33: warning: 'struct msm_camera_csi_params' declared inside parameter list
error, forbidden warning: camera.h:682
make[1]: *** [arch/arm/mach-msm/board-8064-camera.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
Any ideas?

[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