Cm12 build : Error in BT module - Nexus S Q&A, Help & Troubleshooting

Hi, i try to build CM12 for crespo.
The error occurs when compile Bluetooth module:
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/bluetooth.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_conf.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_init.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_logmsg.c
preparing StaticLib: libc++ [including /media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libcompiler_rt_intermediates/libcompiler_rt.a]
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_main.c
host StaticLib: libunwindbacktrace_32 (/media/EXT/android/nexus_s_cm_12/out/host/linux-x86/obj32/STATIC_LIBRARIES/libunwindbacktrace_intermediates/libunwindbacktrace.a)
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_lpp_rssi_monitor_upstream_evt':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case WRITE_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: note: each undeclared identifier is reported only once for each function it appears in
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:551:14: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case READ_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:559:14: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
case ENABLE_RSSI_MONITOR:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_handle_lpp_monitor_rssi':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:637:28: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = WRITE_RSSI_MONITOR_THRESHOLD;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:648:28: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
error.subcmd = ENABLE_RSSI_MONITOR;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:672:28: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = READ_RSSI_MONITOR_THRESHOLD;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/bluetooth/bluedroid/main/../include/bte_appl.h:28:0,
from external/bluetooth/bluedroid/main/bte_logmsg.c:36:
external/bluetooth/bluedroid/main/../stack/btm/btm_int.h:45:1: error: unknown type name 'tBTM_BLE_MULTI_ADV_CB'
tBTM_BLE_MULTI_ADV_CB btm_multi_adv_cb;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o] Error 1
target StaticLib: libc++ (/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a)

I'd like to help you since I have this phone. Can you provide me steps for building CM12? Also skip this if you can so that we can get hands on it asap. Fixes for bt can be applied later via patches.
silverand said:
Hi, i try to build CM12 for crespo.
The error occurs when compile Bluetooth module:
Code:
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/bluetooth.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_conf.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_init.c
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_logmsg.c
preparing StaticLib: libc++ [including /media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libcompiler_rt_intermediates/libcompiler_rt.a]
target thumb C: bluetooth.default <= external/bluetooth/bluedroid/main/bte_main.c
host StaticLib: libunwindbacktrace_32 (/media/EXT/android/nexus_s_cm_12/out/host/linux-x86/obj32/STATIC_LIBRARIES/libunwindbacktrace_intermediates/libunwindbacktrace.a)
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_lpp_rssi_monitor_upstream_evt':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case WRITE_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:547:14: note: each undeclared identifier is reported only once for each function it appears in
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:551:14: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
case READ_RSSI_MONITOR_THRESHOLD:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:559:14: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
case ENABLE_RSSI_MONITOR:
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c: In function 'bt_le_handle_lpp_monitor_rssi':
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:637:28: error: 'WRITE_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = WRITE_RSSI_MONITOR_THRESHOLD;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:648:28: error: 'ENABLE_RSSI_MONITOR' undeclared (first use in this function)
error.subcmd = ENABLE_RSSI_MONITOR;
^
external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:672:28: error: 'READ_RSSI_MONITOR_THRESHOLD' undeclared (first use in this function)
error.subcmd = READ_RSSI_MONITOR_THRESHOLD;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/../btif/src/bluetooth.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from external/bluetooth/bluedroid/main/../include/bte_appl.h:28:0,
from external/bluetooth/bluedroid/main/bte_logmsg.c:36:
external/bluetooth/bluedroid/main/../stack/btm/btm_int.h:45:1: error: unknown type name 'tBTM_BLE_MULTI_ADV_CB'
tBTM_BLE_MULTI_ADV_CB btm_multi_adv_cb;
^
build/core/binary.mk:697: recipe for target '/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o' failed
make: *** [/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/SHARED_LIBRARIES/bluetooth.default_intermediates/bte_logmsg.o] Error 1
target StaticLib: libc++ (/media/EXT/android/nexus_s_cm_12/out/target/product/crespo/obj/STATIC_LIBRARIES/libc++_intermediates/libc++.a)
Click to expand...
Click to collapse

Any news?
My nexus need refresh with ne rom

any news on this one?

Yeah, there is definitely something with the Bluetooth module. I got that error too.

Same error here. I'm trying to fix it, seems like an error from upstream (LG P970 experiencing it too)
For one of the errors, try adding
typedef struct tBTM_BLE_MULTI_ADV_CB;
to btm_int.h
It errors saying a type is undefined

I'm facing the similar kinds of errors, has anybody found a solution for this?

Gokulbalram said:
I'm facing the similar kinds of errors, has anybody found a solution for this?
Click to expand...
Click to collapse
Hi, i am compiling cm12 for the i9000 (Galaxy S1).
i had this issue too, but a friend of me @Soorrrajjj got an fix for it.
i will tell you more when i fixed it

jeffreyvh said:
Hi, i am compiling cm12 for the i9000 (Galaxy S1).
i had this issue too, but a friend of me @Soorrrajjj got an fix for it.
i will tell you more when i fixed it
Click to expand...
Click to collapse
Even I was compiling for the i9000, would be awesome if you could let me know

Proper Solution
Guys, I noticed something.
There is ABSOLUTELY NOTHING wrong with the bluetooth module. Check your device bluetooth config file (device/(vendor)/(device name)/bluetooth/bdroid_buildcfg.h). The following three lines must be:
Code:
#define BLE_INCLUDED TRUE
#define BTA_GATT_INCLUDED TRUE
#define SMP_INCLUDED TRUE
That's it! Bluetooth successfully compiled for me
Cheers!
-Technohacker

Technohacker1995 said:
Guys, I noticed something.
There is ABSOLUTELY NOTHING wrong with the bluetooth module. Check your device bluetooth config file (device/(vendor)/(device name)/bluetooth/bdroid_buildcfg.h). The following three lines must be:
Code:
#define BLE_INCLUDED TRUE
#define BTA_GATT_INCLUDED TRUE
#define SMP_INCLUDED TRUE
That's it! Bluetooth successfully compiled for me
Cheers!
-Technohacker
Click to expand...
Click to collapse
That helped me! thanks!
EDIT: Although that helped me, I get this now:
Code:
external/bluetooth/bluedroid/main/../btif/src/btif_profile_queue.c:117: error: undefined reference to 'list_foreach_ext'

I'll have to check that one afterwards as I'm away from my build VM. Will report back soon
Sent from my GT-I9003 using XDA Free mobile app

Technohacker1995 said:
I'll have to check that one afterwards as I'm away from my build VM. Will report back soon
Sent from my GT-I9003 using XDA Free mobile app
Click to expand...
Click to collapse
Not a worry ATM, I just gave up on that and somehow a repo sync fixed it.
Although, I am building 5.0 and have various other errors, for the galaxysmtd (i9000)

Gokulbalram said:
Not a worry ATM, I just gave up on that and somehow a repo sync fixed it.
Although, I am building 5.0 and have various other errors, for the galaxysmtd (i9000)
Click to expand...
Click to collapse
Hello there,
I compiled cm12 for the galaxysmtd, see my device tree here https://github.com/cm12s1
I hope that it helps you, I fixed every single bug I got

jeffreyvh said:
Hello there,
I compiled cm12 for the galaxysmtd, see my device tree here https://github.com/cm12s1
I hope that it helps you, I fixed every single bug I got
Click to expand...
Click to collapse
Thanks mate, this should do the trick

Related

Building error need help

I have been working with one other person to build liquid smooth for the Samsung vibrant. The device is no longer supported so we have worked our way through all the errors that should have appeared with an unsupported device. This so the error I'm getting noe when the build is almost finished. My friend literally just resynced and built it without this error so I need some help as he has not seen this error. I'm using Ubuntu 13.10 java jdk 6 and this is the error
target Dex: Gallery2
target Dex: Contacts
target Dex: Dialer
target Dex: Launcher3
collect2: error: ld returned 1 exit status
make: *** [/home/skinzy98/liquid/out/target/product/vibrantmtd/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
make: *** Waiting for unfinished jobs....
Sent from my Nexus 4 using xda app-developers app
Just a comment my friend seems to think it could be something with my build environment but he's not sure. Any help?
Sent from my Nexus 4 using xda app-developers app
skinzy98 said:
I have been working with one other person to build liquid smooth for the Samsung vibrant. The device is no longer supported so we have worked our way through all the errors that should have appeared with an unsupported device. This so the error I'm getting noe when the build is almost finished. My friend literally just resynced and built it without this error so I need some help as he has not seen this error. I'm using Ubuntu 13.10 java jdk 6 and this is the error
target Dex: Gallery2
target Dex: Contacts
target Dex: Dialer
target Dex: Launcher3
collect2: error: ld returned 1 exit status
make: *** [/home/skinzy98/liquid/out/target/product/vibrantmtd/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Error 1
make: *** Waiting for unfinished jobs....
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
I also have this error, did you find a solution to share it? I am compiling for Galaxy Ace 3 LTE
kostoulhs said:
I also have this error, did you find a solution to share it? I am compiling for Galaxy Ace 3 LTE
Click to expand...
Click to collapse
I'm pretty sure that all of a sudden the error went away after I repo synced after a couple days. It seems to be something they were changing. If not try installing a different java. I think 6 not 7
clean installs are love. clean installs are life
skinzy98 said:
I'm pretty sure that all of a sudden the error went away after I repo synced after a couple days. It seems to be something they were changing. If not try installing a different java. I think 6 not 7
clean installs are love. clean installs are life
Click to expand...
Click to collapse
i have oracle JDK 6 somewhere i read that you should change branches to framework/base from kitkat3 to kitkat2
I didn't have to use that I think I changed to javasun maybe. I searched that error also and I believe overstack had something about it
clean installs are love. clean installs are life
Normally, that error means you don't had sufficient RAM
marcomarinho said:
Normally, that error means you don't had sufficient RAM
Click to expand...
Click to collapse
:/ 15GB ram not enough?
kirito9 said:
:/ 15GB ram not enough?
Click to expand...
Click to collapse
Yes, but there're other processes running on your PC xD do a clean build and see if worked.
marcomarinho said:
Yes, but there're other processes running on your PC xD do a clean build and see if worked.
Click to expand...
Click to collapse
Hmm, I usually get this error in cm11 but when compiling in cm12. There's no error. I already did make clean and same error, did a repo sync, still same error. Not really sure what is the problem. I had this before lol and I solved it but I don't remember what I did.
kirito9 said:
Hmm, I usually get this error in cm11 but when compiling in cm12. There's no error. I already did make clean and same error, did a repo sync, still same error. Not really sure what is the problem. I had this before lol and I solved it but I don't remember what I did.
Click to expand...
Click to collapse
Post here the log
marcomarinho said:
Post here the log
Click to expand...
Click to collapse
http://pastebin.com/d22irFJs
or
Code:
target Executable: busybox (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/busybox_intermediates/LINKED/busybox)
target Executable: e2fsck (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/e2fsck_intermediates/LINKED/e2fsck)
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/system/lib/libext2fs.so
target Executable: mke2fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/mke2fs_intermediates/LINKED/mke2fs)
target Executable: tune2fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/tune2fs_intermediates/LINKED/tune2fs)
target SharedLib: libcorkscrew (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/SHARED_LIBRARIES/libcorkscrew_intermediates/LINKED/libcorkscrew.so)
target SharedLib: libusbhost (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/SHARED_LIBRARIES/libusbhost_intermediates/LINKED/libusbhost.so)
target Symbolic: libjpeg (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/lib/libjpeg.so)
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/system/lib/libft2.so
target Symbolic: libminadbd (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/lib/libminadbd.so)
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/system/lib/libtar.so
target Symbolic: toolbox_recovery (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/recovery/root/sbin/toolbox)
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/system/lib/libext4_utils.so
target Symbolic: libaosprecovery (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/lib/libaosprecovery.so)
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/openaes
target Executable: make_ext4fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/make_ext4fs_intermediates/LINKED/make_ext4fs)
target Symbolic: reboot (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/bin/reboot)
target Symbolic: dump_image (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/recovery/root/sbin/dump_image)
target Symbolic: erase_image (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/recovery/root/sbin/erase_image)
target Symbolic: flash_image (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/recovery/root/sbin/flash_image)
target Symbolic: e2fsck (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/bin/e2fsck)
target Symbolic: mke2fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/bin/mke2fs)
target Symbolic: tune2fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/bin/tune2fs)
target Symbolic: libcorkscrew (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/lib/libcorkscrew.so)
target Symbolic: libusbhost (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/lib/libusbhost.so)
target Strip: libjpeg (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/lib/libjpeg.so)
target Strip: libminadbd (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/lib/libminadbd.so)
target Strip: toolbox_recovery (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/toolbox_recovery_intermediates/toolbox)
target Strip: libaosprecovery (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/lib/libaosprecovery.so)
target Symbolic: make_ext4fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/symbols/system/bin/make_ext4fs)
target Strip: reboot (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/reboot_intermediates/reboot)
target Strip: dump_image (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/RECOVERY_EXECUTABLES/dump_image_intermediates/dump_image)
target Strip: erase_image (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/RECOVERY_EXECUTABLES/erase_image_intermediates/erase_image)
target Strip: flash_image (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/RECOVERY_EXECUTABLES/flash_image_intermediates/flash_image)
target Strip: e2fsck (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/e2fsck_intermediates/e2fsck)
target Strip: mke2fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/mke2fs_intermediates/mke2fs)
target Strip: tune2fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/tune2fs_intermediates/tune2fs)
target Strip: libcorkscrew (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/lib/libcorkscrew.so)
target Strip: libusbhost (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/lib/libusbhost.so)
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/system/lib/libjpeg.so
target SharedLib: libminuitwrp (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/LINKED/libminuitwrp.so)
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/system/lib/libminadbd.so
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/toolbox
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/system/lib/libaosprecovery.so
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/system/bin/reboot
target Strip: make_ext4fs (/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/EXECUTABLES/make_ext4fs_intermediates/make_ext4fs)
Symlink: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/start -> toolbox
Symlink: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/stop -> toolbox
Symlink: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/getprop -> toolbox
Symlink: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/setprop -> toolbox
Symlink: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/load_policy -> toolbox
system/core/include/utils/SortedVector.h:161: error: undefined reference to 'android::VectorImpl::finish_vector()'
system/core/include/utils/SortedVector.h:161: error: undefined reference to 'android::SortedVectorImpl::~SortedVectorImpl()'
system/core/include/utils/SortedVector.h:161: error: undefined reference to 'android::VectorImpl::finish_vector()'
system/core/include/utils/SortedVector.h:161: error: undefined reference to 'android::SortedVectorImpl::~SortedVectorImpl()'
system/core/include/utils/Vector.h:240: error: undefined reference to 'android::VectorImpl::finish_vector()'
system/core/include/utils/Vector.h:240: error: undefined reference to 'android::VectorImpl::~VectorImpl()'
system/core/include/utils/Vector.h:338: error: undefined reference to 'android::VectorImpl::add(void const*)'
system/core/include/utils/SortedVector.h:207: error: undefined reference to 'android::SortedVectorImpl::add(void const*)'
system/core/include/utils/SortedVector.h:212: error: undefined reference to 'android::SortedVectorImpl::indexOf(void const*) const'
system/core/include/utils/SortedVector.h:212: error: undefined reference to 'android::SortedVectorImpl::indexOf(void const*) const'
system/core/include/utils/SortedVector.h:212: error: undefined reference to 'android::SortedVectorImpl::indexOf(void const*) const'
system/core/include/utils/Vector.h:338: error: undefined reference to 'android::VectorImpl::add(void const*)'
system/core/include/utils/Vector.h:68: error: undefined reference to 'android::VectorImpl::clear()'
system/core/include/utils/SortedVector.h:58: error: undefined reference to 'android::VectorImpl::clear()'
system/core/include/utils/SortedVector.h:58: error: undefined reference to 'android::VectorImpl::clear()'
system/core/include/utils/SortedVector.h:58: error: undefined reference to 'android::VectorImpl::clear()'
system/core/include/utils/SortedVector.h:207: error: undefined reference to 'android::SortedVectorImpl::add(void const*)'
system/core/include/utils/SortedVector.h:207: error: undefined reference to 'android::SortedVectorImpl::add(void const*)'
system/core/include/utils/SortedVector.h:150: error: undefined reference to 'android::SortedVectorImpl::SortedVectorImpl(unsigned int, unsigned int)'
system/core/include/utils/SortedVector.h:150: error: undefined reference to 'android::SortedVectorImpl::SortedVectorImpl(unsigned int, unsigned int)'
system/core/include/utils/Vector.h:224: error: undefined reference to 'android::VectorImpl::VectorImpl(unsigned int, unsigned int)'
system/core/include/utils/SortedVector.h:161: error: undefined reference to 'android::VectorImpl::finish_vector()'
system/core/include/utils/SortedVector.h:161: error: undefined reference to 'android::SortedVectorImpl::~SortedVectorImpl()'
system/core/include/utils/SortedVector.h:212: error: undefined reference to 'android::SortedVectorImpl::indexOf(void const*) const'
system/core/include/utils/SortedVector.h:150: error: undefined reference to 'android::SortedVectorImpl::SortedVectorImpl(unsigned int, unsigned int)'
system/core/include/utils/SortedVector.h:237: error: undefined reference to 'android::VectorImpl::removeItemsAt(unsigned int, unsigned int)'
system/core/include/utils/SortedVector.h:207: error: undefined reference to 'android::SortedVectorImpl::add(void const*)'
collect2: error: ld returned 1 exit status
Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/erase_image
make: *** [/home/kirito9/cm11/out/target/product/yaris_m_gsm/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/LINKED/libminuitwrp.so] Error 1
make: Install: /home/kirito9/cm11/out/target/product/yaris_m_gsm/recovery/root/sbin/dump_image
*** Waiting for unfinished jobs....
kirito9 said:
http://pastebin.com/d22irFJs
Click to expand...
Click to collapse
That's a different error .. You have errors in system/core. Are you using system/core from cm11 repo or from another source?
marcomarinho said:
That's a different error .. You have errors in system/core. Are you using system/core from cm11 repo or from another source?
Click to expand...
Click to collapse
I'm using from cm11 sources. They're the latest sources. On my PC, I'm using compressed sources of cm11 which weren't probably updated. Btw This gave me a clue. I remembered what I did haha. I just remembered I have to revert some commits. Thanks man .
I have to revert this.
kirito9 said:
I'm using from cm11 sources. They're the latest sources. On my PC, I'm using compressed sources of cm11 which weren't probably updated. Btw This gave me a clue. I remembered what I did haha. I just remembered I have to revert some commits. Thanks man .
I have to revert this.
Click to expand...
Click to collapse
Eheheh no problem. I'm glad you've solved the problem!! :highfive:

Compiling Kernel

I keep getting kernel compilation error when trying to compile CM kernel from sources.
Code:
/tmp/cc0DKVco.s: Assembler messages:
/tmp/cc0DKVco.s:172: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
/tmp/cc0DKVco.s:199: Warning: swp{b} use is deprecated for ARMv6 and ARMv7
CC arch/arm/mach-msm/smd_private.o
CC arch/arm/mach-msm/smem.o
CC arch/arm/kernel/pmu.o
CC kernel/resource.o
CC arch/arm/kernel/perf_event.o
CC arch/arm/mach-msm/smd_init_dt.o
CC kernel/sysctl.o
arch/arm/mach-msm/smd_init_dt.c:24:25: fatal error: smd_private.h: No such file or directory
#include <smd_private.h>
^
compilation terminated.
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Error 1
make: *** [arch/arm/mach-msm] Error 2
make: *** Waiting for unfinished jobs....
No mods or tweaks has been added, just compiling with A7 optimized (linaro) toolchain on Ubuntu 13.10. I'm pretty sure I have installed all the necessary files and set-up the build environment. I'm new to this so could a dev help me?
bu,p
Same for me, where is the problem? can anyone help?
here is my output:
Code:
arch/arm/mach-msm/smd_init_dt.c:24:25: error: smd_private.h: No such file or directory
arch/arm/mach-msm/smd_init_dt.c: In function 'msm_smsm_probe':
arch/arm/mach-msm/smd_init_dt.c:66: error: 'disable_smsm_reset_handshake' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:66: error: (Each undeclared identifier is reported only once
arch/arm/mach-msm/smd_init_dt.c:66: error: for each function it appears in.)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'msm_smd_debug_mask' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'MSM_SMSM_DEBUG' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:88: error: 'smd_log_ctx' undeclared (first use in this function)
arch/arm/mach-msm/smd_init_dt.c:114: error: implicit declaration of function 'smd_get_intr_config'
arch/arm/mach-msm/smd_init_dt.c:114: warning: assignment makes pointer from integer without a cast
error, forbidden warning: smd_init_dt.c:114
make[1]: *** [arch/arm/mach-msm/smd_init_dt.o] Errore 1
make: *** [arch/arm/mach-msm] Errore 2
make: *** Attesa per i processi non terminati....
CC arch/arm/kernel/pmu.o
LD arch/arm/perfmon/built-in.o
CC arch/arm/kernel/perf_event.o
arch/arm/kernel/bootinfo.c: In function 'bootinfo_bck_buf_check':
arch/arm/kernel/bootinfo.c:277: warning: integer constant is too large for 'long' type
error, forbidden warning: bootinfo.c:277
EDIT: I solved the smd_privae.h not found simply by copying it from mach-msm into mach-msm/include/mach and replacing
Code:
#include <smd_private.h>
with
Code:
#include <mach/smd_private.h>
But i still have this problem: in bootinfo.c the value BOOTINFO_BCK_MAGIC (defined as #define BOOTINFO_BCK_MAGIC 0x626f6f74696e666f) is an integer costant which is too large for 'long' type (at line 277 in the expression if (bck->magic != BOOTINFO_BCK_MAGIC))
Any help?
EDIT2: solved it thanks to google and stackoverflow, just replace 0x626F6F74696E666F with 0x626F6F74696E666FULL (where ULL = Unsigned Long Long, not sure about the meaning, still a complete noob at C++ (not even sure it is C++) :silly:

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

how do i install a driver?

hello,
i have the driver for a wifi adapter (chipset rtl8192cu)
but i need the correct module (ko file) for my z3 kernel (3.4.0-EliteV3)
how can i build the module?
i've read about cross compiling but the guides are really outdated (I can use windows or linux)
Basic steps:
1. You need to be on linux
2. Download your kernel source, Elite Kernel in your case
3. Luckily, drivers are already in the tree. So set CONFIG_RTL8192CU=m (m for module) in the defconfig file
4. Compile the kernel, fix any compilation issues if needed
5. it'll also output rtl8192cu.ko which is the module
If you didn't understand any of that, first familiarise yourself with how to compile a kernel: http://developer.sonymobile.com/ope...h-a-linux-kernel-from-sony-copyleft-archives/
tomascus said:
Basic steps:
1. You need to be on linux
2. Download your kernel source, Elite Kernel in your case
3. Luckily, drivers are already in the tree. So set CONFIG_RTL8192CU=m (m for module) in the defconfig file
4. Compile the kernel, fix any compilation issues if needed
5. it'll also output rtl8192cu.ko which is the module
If you didn't understand any of that, first familiarise yourself with how to compile a kernel: http://developer.sonymobile.com/ope...h-a-linux-kernel-from-sony-copyleft-archives/
Click to expand...
Click to collapse
thanks for your help, but i cannot find the CONFIG_RTL8192CU string in the defconfig file (shinano_leo_defconfig)
Alex261099 said:
thanks for your help, but i cannot find the CONFIG_RTL8192CU string in the defconfig file (shinano_leo_defconfig)
Click to expand...
Click to collapse
Yea of course, you add it in
tomascus said:
Yea of course, you add it in
Click to expand...
Click to collapse
added but it results in an error:
Code:
[email protected]:/android/kernel-copyleft# make shinano_leo_defconfig
arch/arm/configs/shinano_leo_defconfig:533:warning: override: reassigning to symbol CRYPTO_AES_ARM
#
# configuration written to .config
#
[email protected]:/android/kernel-copyleft# make
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: "include/generated/mach-types.h" è aggiornato.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
CHK kernel/config_data.h
CC sound/soc/codecs/wcd9320.o
sound/soc/codecs/wcd9320.c:269:1: error: expected identifier or '(' before ')' token
)
^
sound/soc/codecs/wcd9320.c:392:36: error: 'NUM_CODEC_DAIS' undeclared here (not in a function)
static const u32 vport_check_table[NUM_CODEC_DAIS] = {
^
sound/soc/codecs/wcd9320.c:394:8: error: 'AIF2_CAP' undeclared here (not in a function)
(1 << AIF2_CAP) | (1 << AIF3_CAP), /* AIF1_CAP */
^
sound/soc/codecs/wcd9320.c:394:26: error: 'AIF3_CAP' undeclared here (not in a function)
(1 << AIF2_CAP) | (1 << AIF3_CAP), /* AIF1_CAP */
^
sound/soc/codecs/wcd9320.c:396:8: error: 'AIF1_CAP' undeclared here (not in a function)
(1 << AIF1_CAP) | (1 << AIF3_CAP), /* AIF2_CAP */
^
sound/soc/codecs/wcd9320.c: In function 'slim_rx_mux_put':
sound/soc/codecs/wcd9320.c:2278:18: error: 'AIF1_PB' undeclared (first use in this function)
&taiko_p->dai[AIF1_PB].wcd9xxx_ch_list)) {
^
sound/soc/codecs/wcd9320.c:2278:18: note: each undeclared identifier is reported only once for each function it appears in
sound/soc/codecs/wcd9320.c:2289:18: error: 'AIF2_PB' undeclared (first use in this function)
&taiko_p->dai[AIF2_PB].wcd9xxx_ch_list)) {
^
sound/soc/codecs/wcd9320.c:2300:18: error: 'AIF3_PB' undeclared (first use in this function)
&taiko_p->dai[AIF3_PB].wcd9xxx_ch_list)) {
^
sound/soc/codecs/wcd9320.c: In function 'taiko_set_dai_fmt':
sound/soc/codecs/wcd9320.c:4391:24: error: 'AIF1_PB' undeclared (first use in this function)
else if (dai->id == AIF1_PB)
^
sound/soc/codecs/wcd9320.c: In function 'taiko_set_channel_map':
sound/soc/codecs/wcd9320.c:4436:26: error: 'AIF4_VIFEED' undeclared (first use in this function)
dai_data = &taiko->dai[AIF4_VIFEED];
^
sound/soc/codecs/wcd9320.c: In function 'taiko_get_channel_map':
sound/soc/codecs/wcd9320.c:4457:7: error: 'AIF1_PB' undeclared (first use in this function)
case AIF1_PB:
^
sound/soc/codecs/wcd9320.c:4458:7: error: 'AIF2_PB' undeclared (first use in this function)
case AIF2_PB:
^
sound/soc/codecs/wcd9320.c:4459:7: error: 'AIF3_PB' undeclared (first use in this function)
case AIF3_PB:
^
sound/soc/codecs/wcd9320.c:4477:7: error: 'AIF4_VIFEED' undeclared (first use in this function)
case AIF4_VIFEED:
^
sound/soc/codecs/wcd9320.c:4478:7: error: 'AIF4_MAD_TX' undeclared (first use in this function)
case AIF4_MAD_TX:
^
sound/soc/codecs/wcd9320.c: In function 'taiko_hw_params':
sound/soc/codecs/wcd9320.c:4763:18: error: 'AIF4_VIFEED' undeclared (first use in this function)
if (dai->id != AIF4_VIFEED) {
^
sound/soc/codecs/wcd9320.c: At top level:
sound/soc/codecs/wcd9320.c:4850:9: error: 'AIF1_PB' undeclared here (not in a function)
.id = AIF1_PB,
^
sound/soc/codecs/wcd9320.c:4878:9: error: 'AIF2_PB' undeclared here (not in a function)
.id = AIF2_PB,
^
sound/soc/codecs/wcd9320.c:4920:9: error: 'AIF3_PB' undeclared here (not in a function)
.id = AIF3_PB,
^
sound/soc/codecs/wcd9320.c:4934:9: error: 'AIF4_VIFEED' undeclared here (not in a function)
.id = AIF4_VIFEED,
^
sound/soc/codecs/wcd9320.c:4948:9: error: 'AIF4_MAD_TX' undeclared here (not in a function)
.id = AIF4_MAD_TX,
^
sound/soc/codecs/wcd9320.c:4965:3: error: initializer element is not constant
.id = AIF1_PB,
^
sound/soc/codecs/wcd9320.c:4965:3: error: (near initialization for 'taiko_i2s_dai[0].id')
sound/soc/codecs/wcd9320.c:4979:3: error: initializer element is not constant
.id = AIF1_CAP,
^
sound/soc/codecs/wcd9320.c:4979:3: error: (near initialization for 'taiko_i2s_dai[1].id')
sound/soc/codecs/wcd9320.c:4993:3: error: initializer element is not constant
.id = AIF1_PB,
^
sound/soc/codecs/wcd9320.c:4993:3: error: (near initialization for 'taiko_i2s_dai[2].id')
sound/soc/codecs/wcd9320.c:5007:3: error: initializer element is not constant
.id = AIF1_CAP,
^
sound/soc/codecs/wcd9320.c:5007:3: error: (near initialization for 'taiko_i2s_dai[3].id')
sound/soc/codecs/wcd9320.c: In function 'taiko_codec_enable_slimrx':
sound/soc/codecs/wcd9320.c:5112:6: warning: assignment from incompatible pointer type
error, forbidden warning: wcd9320.c:5112
scripts/Makefile.build:307: set di istruzioni per l'obiettivo "sound/soc/codecs/wcd9320.o" non riuscito
make[3]: *** [sound/soc/codecs/wcd9320.o] Errore 1
scripts/Makefile.build:443: set di istruzioni per l'obiettivo "sound/soc/codecs" non riuscito
make[2]: *** [sound/soc/codecs] Errore 2
scripts/Makefile.build:443: set di istruzioni per l'obiettivo "sound/soc" non riuscito
make[1]: *** [sound/soc] Errore 2
Makefile:951: set di istruzioni per l'obiettivo "sound" non riuscito
make: *** [sound] Errore 2
defconfig file with .txt extension (added to allow uploading)
View attachment shinano_leo_defconfig.txt
Alex261099 said:
added but it results in an error:
defconfig file with .txt extension (added to allow uploading)
Click to expand...
Click to collapse
Make sure you're on whatever branch the kernel guy is working on and then revert all those commits done to sound/ directory.
And make sure your defconfig is the one he is using too
tomascus said:
Make sure you're on whatever branch the kernel guy is working on and then revert all those commits done to sound/ directory.
And make sure your defconfig is the one he is using too
Click to expand...
Click to collapse
sorry but i'm not sure on what i'm doing ...
here is the kernel
and this is the readme file
View attachment README_Xperia.txt
branch is not specified ( master ?)
in the readme file it's not clear what defconfig file he uses
Alex261099 said:
sorry but i'm not sure on what i'm doing ...
here is the kernel
and this is the readme file
branch is not specified ( master ?)
in the readme file it's not clear what defconfig file he uses
Click to expand...
Click to collapse
I know what the kernel is.
Go to the link in the source to see the branches, and view the history to see which defconfig he uses (it's shinano_leo_defconfig so it's right).
Those readmes are generic so don't bother.
tomascus said:
I know what the kernel is.
Go to the link in the source to see the branches, and view the history to see which defconfig he uses (it's shinano_leo_defconfig so it's right).
Those readmes are generic so don't bother.
Click to expand...
Click to collapse
OK but why it results in an error
i'm using 23.5.A.1.291 branch
Alex261099 said:
OK but why it results in an error
Click to expand...
Click to collapse
Because he didn't bother cherry picking commits properly or fixing compilation issues most likely.
Since you made it this far you might as well try build your own custom kernel :silly:
tomascus said:
Because he didn't bother cherry picking commits properly most likely.
Since you made it this far you might as well try build your own custom kernel :silly:
Click to expand...
Click to collapse
I Will try
tomascus said:
Because he didn't bother cherry picking commits properly or fixing compilation issues most likely.
Since you made it this far you might as well try build your own custom kernel :silly:
Click to expand...
Click to collapse
ok, now i'm trying to build my own kernel from the guide you've attached
http://developer.sonymobile.com/ope...h-a-linux-kernel-from-sony-copyleft-archives/
using arm-linux-androideabi-4.9
how can i include my driver in the kernel?
Alex261099 said:
ok, now i'm trying to build my own kernel from the guide you've attached
http://developer.sonymobile.com/ope...h-a-linux-kernel-from-sony-copyleft-archives/
using arm-linux-androideabi-4.9
how can i include my driver in the kernel?
Click to expand...
Click to collapse
Its already there, not like shadow would add some random as wifi driver to his kernel. Add the line in defconfig..
tomascus said:
Add the line in defconfig..
Click to expand...
Click to collapse
it's so easy?
:victory:
Alex261099 said:
it's so easy?
:victory:
Click to expand...
Click to collapse
No, but seriously you'll figure it out, no one held my hand when I built my first kernels
tomascus said:
No, but seriously you'll figure it out, no one held my hand when I built my first kernels
Click to expand...
Click to collapse
f*ck :laugh::laugh::laugh:,
can i have your help if i'm in difficult?
Alex261099 said:
f*ck :laugh::laugh::laugh:,
can i have your help if i'm in difficult?
Click to expand...
Click to collapse
Like I said it's up to you, not me. There are plenty of tutorials online.
Tip 1: look at Shadows commit history to see any changes he needed to get it compiling. Example: https://github.com/ShadowElite22/Xp...=Y3Vyc29yOvUu8ix9Cm9uFFc0XOqJgV10lEi6KzI3OQ==
More examples: https://github.com/tunturn/android_...=Y3Vyc29yOg9VMTFMCWu8kAgT7WiC1DM/o30qKzI0NA==
Tip 2: use GCC 4.8, don't use GCC 4.9 unless you know what you're doing.
Good luck :good:

Getting irq/irqdesc.o error while kernel compilation

I am trying to compile kernel for Realme 3 (new device) , but I am getting irq/irqdesc.o error, Maybe it's because the source are not complete.
Here is the link to kernel sources: https://github.com/realme-kernel-opensource/Realme3-kernel-source
Any help will be much appreciated
Code:
LD kernel/events/built-in.o
CC kernel/irq/irqdesc.o
Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/smp.h:11,
from include/linux/irq.h:12,
from kernel/irq/irqdesc.c:10:
kernel/irq/irqdesc.c: In function '__handle_domain_irq':
kernel/irq/irqdesc.c:421:11: error: 'desc' undeclared (first use in this function)
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
kernel/irq/irqdesc.c:421:11: note: each undeclared identifier is reported only once for each function it appears in
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
make[2]: *** [scripts/Makefile.build:278: kernel/irq/irqdesc.o] Error 1
make[1]: *** [scripts/Makefile.build:484: kernel/irq] Error 2
make: *** [Makefile:1054: kernel] Error 2
fawazahmed0 said:
I am trying to compile kernel for Realme 3 (new device) , but I am getting irq/irqdesc.o error, Maybe it's because the source are not complete.
Here is the link to kernel sources: https://github.com/realme-kernel-opensource/Realme3-kernel-source
Any help will be much appreciated
Code:
LD kernel/events/built-in.o
CC kernel/irq/irqdesc.o
Android GCC has been deprecated in favor of Clang, and will be removed from
Android in 2020-01 as per the deprecation plan in:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/GCC_4_9_DEPRECATION.md
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/smp.h:11,
from include/linux/irq.h:12,
from kernel/irq/irqdesc.c:10:
kernel/irq/irqdesc.c: In function '__handle_domain_irq':
kernel/irq/irqdesc.c:421:11: error: 'desc' undeclared (first use in this function)
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
kernel/irq/irqdesc.c:421:11: note: each undeclared identifier is reported only once for each function it appears in
irq, (desc && desc->action && desc->action->name) ?
^
include/linux/printk.h:428:51: note: in definition of macro 'pr_debug'
no_printk(KERN_DEBUG KLOG_MODNAME pr_fmt(fmt), ##VA_ARGS)
^
make[2]: *** [scripts/Makefile.build:278: kernel/irq/irqdesc.o] Error 1
make[1]: *** [scripts/Makefile.build:484: kernel/irq] Error 2
make: *** [Makefile:1054: kernel] Error 2
Click to expand...
Click to collapse
Now works perfectly, followed this guide:
https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297

Categories

Resources