[Q]Problems building DirtyUnicorns 5.1 - Android Q&A, Help & Troubleshooting

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?

Related

[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!

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

[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?

[help] compiling kernel from source for zte axon 7(zte a2017u)

Hi everyone I have been wanting to try to compile the kernel for my device from source so that I can add some features to it. first time trying this..
I have fixed all errors up till now but this one has been bothering for a few days:
Code:
In file included from drivers/usb/gadget/android.c:62:0:
./drivers/usb/gadget/function/f_rndis.c: In function 'rndis_alloc_inst':
./drivers/usb/gadget/function/f_rndis.c:1115:10: error: implicit declaration of function 'usb_os_desc_prepare_interf_dir' [-Werror=implicit-function-declaration]
usb_os_desc_prepare_interf_dir(&opts->func_inst.group, 1, descs,
^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target 'drivers/usb/gadget/android.o' failed
make[3]: *** [drivers/usb/gadget/android.o] Error 1
scripts/Makefile.build:402: recipe for target 'drivers/usb/gadget' failed
make[2]: *** [drivers/usb/gadget] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
Makefile:945: recipe for target 'drivers' failed
make: *** [drivers] Error 2
I'm using linaro 4.9 as crosscompiler btw.
thanks guys, i'm really at my wits ends right now

Categories

Resources