Questions - Android Q&A, Help & Troubleshooting

Not the best title for the thread, but I couldn't get better.
So, I have a few questions:
If I copy for example, init.qcom.sh to the root of my phone, does it start next boot? How to make it so?
How are virtual keys handled in Android? Is there a special surf_keypad.kcm.bin? How to make virtual keys work in recovery?

I have an answer for the second question: The keys should be provided by kernel in /sys/board_properties/virtualkeys.<touchscreen-name>.
I can see why they don't work in recovery, the new 5.5.0.4 version of CWM doesn't have virtual key input :S. It's included in gingerbread-release, but not in ics. Is it supphosed to be like this?

I've got a question too... I've just downloaded your device tree for U8800 ICS from github, can I use the extract-files.sh (and maybe other files - still new at this!) to get the proprietary files to build CM7? Or are they ICS specific? Cheers!

dsmenzies said:
I've got a question too... I've just downloaded your device tree for U8800 ICS from github, can I use the extract-files.sh (and maybe other files - still new at this!) to get the proprietary files to build CM7? Or are they ICS specific? Cheers!
Click to expand...
Click to collapse
My tree is still very basic, but you should be able to do that.
The things that may conflict are releasetools, but on CM7 it should be pretty much same. And you should use stock kernel, it has different input methods etc so that may conflict too.
Sent from my U8800

Thanks for that - I've finally got it starting to compile, but you were right about the recovery tools conflicting. I've solved most of my problems with the help of my friend google, but do you have any idea where I should start with this one? I'm sure I can find the problem, I just need to know where to start!

First, you should find the default init.rc from bootable/recovery. Then, copy it and modify it to have the same services as mine (rmt_storage, charge).
The releasetools is pretty much same, search where the default files are, then copy them and seek which changes have I made and add it to yours. I changed two things in releasetools, added function WriteRawImage with a fourth parameter, the actual location of the image and then used that function instead of default when it copiies boot.img.
I hope you understand me, but ask me if you have problems.
About question 1: I believe the .sh files should be added as service, then it should run. The problem why I did not understand was that the ROM I had was using a different init process, which ran that automatically.

Thanks for that! I did as you said and also had two change to lines in the BoardConfig.mk
BOARD_EGL_CFG := $(LOCAL_PATH)/egl.cfg --> BOARD_EGL_CFG := device/huawei/u8800/egl.cfg
TARGET_RECOVERY_INITRC := $(LOCAL_PATH)/recovery/init.rc --> TARGET_RECOVERY_INITRC := device/huawei/u8800/recovery/init.rc
Don't know why it didn't like it, but it's happily compiling now!

Unfortunately it got stuck further on.
I'm getting the following errors:
Code:
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function wipe_data:bootable/recovery/recovery.c:681: error: undefined reference to 'device_wipe_data'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function prompt_and_wait:bootable/recovery/recovery.c:707: error: undefined reference to 'device_perform_action'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function prompt_and_wait:bootable/recovery/recovery.c:761: error: undefined reference to 'MENU_HEADERS'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function prompt_and_wait:bootable/recovery/recovery.c:761: error: undefined reference to 'MENU_ITEMS'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:851: error: undefined reference to 'device_recovery_start'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:920: error: undefined reference to 'device_wipe_data'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/ui.o: in function input_thread:bootable/recovery/ui.c:346: error: undefined reference to 'device_reboot_now'
collect2: ld returned 1 exit status
make: *** [out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1
make: *** Waiting for unfinished jobs....
It's obviously linked to the recovery again which is a pain as I'll be replacing it with ClockworkMod anyway!
I didn't quite understand what you meant by "adding .sh files as a service" so it could be related to me not doing that?
Any help is greatly appreciated!

dsmenzies said:
Unfortunately it got stuck further on.
I'm getting the following errors:
Code:
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function wipe_data:bootable/recovery/recovery.c:681: error: undefined reference to 'device_wipe_data'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function prompt_and_wait:bootable/recovery/recovery.c:707: error: undefined reference to 'device_perform_action'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function prompt_and_wait:bootable/recovery/recovery.c:761: error: undefined reference to 'MENU_HEADERS'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function prompt_and_wait:bootable/recovery/recovery.c:761: error: undefined reference to 'MENU_ITEMS'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:851: error: undefined reference to 'device_recovery_start'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/recovery.o: in function main:bootable/recovery/recovery.c:920: error: undefined reference to 'device_wipe_data'
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/ui.o: in function input_thread:bootable/recovery/ui.c:346: error: undefined reference to 'device_reboot_now'
collect2: ld returned 1 exit status
make: *** [out/target/product/u8800/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery] Error 1
make: *** Waiting for unfinished jobs....
It's obviously linked to the recovery again which is a pain as I'll be replacing it with ClockworkMod anyway!
I didn't quite understand what you meant by "adding .sh files as a service" so it could be related to me not doing that?
Any help is greatly appreciated!
Click to expand...
Click to collapse
The question 1 (.sh files) was part of the original topic .
ClockworkMod is built from source aswell when you build CyanogenMod, but if you already have CWM on your device, might aswell leave that out "TARGET_NO_RECOVERY := true" in the BoardConfig.mk . That should stop recovery from building.
But the error is probably because some header files are missing.

Related

[Q] Compiling ICS

Hi i'm trying to build ICS Source but i'm getting this error:
HTML:
make: *** No rule to make target `out/target/product/ace/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a', needed by `out/target/product/ace/obj/SHARED_LIBRARIES/libaudio_intermediates/LINKED/libaudio.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: libaudio <= hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp
In file included from hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:34:
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:51: error: expected class-name before '{' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: ISO C++ forbids declaration of 'AudioStreamOut' with no type
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: 'AudioStreamOut' declared as a 'virtual' field
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:70: error: expected ';' before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: ISO C++ forbids declaration of 'AudioStreamIn' with no type
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: 'AudioStreamIn' declared as a 'virtual' field
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:77: error: expected ';' before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:85: error: 'AudioStreamOut' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:86: error: 'AudioStreamIn' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:97: error: expected class-name before '{' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h: In member function 'virtual int android::AudioHardware::AudioStreamOutQ5V2::format() const':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:110: error: 'AudioSystem' has not been declared
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h: In member function 'virtual uint32_t android::AudioHardware::AudioStreamOutQ5V2::latency() const':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.h:111: error: 'frameSize' was not declared in this scope
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp: In destructor 'virtual android::AudioHardware::~AudioHardware()':
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:53: error: 'AudioStreamOut' was not declared in this scope
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:53: error: expected primary-expression before ')' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp: At global scope:
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:62: error: expected constructor, destructor, or type conversion before '*' token
hardware/msm7k/libaudio-qdsp5v2/AudioHardware.cpp:341: error: expected '}' at end of input
make: *** [out/target/product/ace/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
i have tryed many things to fix this erro but no success
i hope some one can help me
bump
Sent from my SGH-T959 using xda premium
Many devs face this error and they are fighting with this.
I just started compiling android but did finish a successful build at 05:00am this morning and didn't get (or see) this error but, no i'm expert by any means..
Considering the error:
No rule to make target `out/target/product/ace/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a', needed by....
Click to expand...
Click to collapse
It literally says its missing something, the rule, so would it be an idea to resync repo perhaps ?
I resynced last night and there were no changes. But, yes, resyncing is important... You never know when Google will drop more source, and they may or may not announce it via mailinglist.
Inspire 4G // BlackICE
Try compiling for tuna/maguro/panda first
Also, try removing libaudio folder from device folder, and if your device has aosp then try using libaudio from there(assuming you are using device from cm7)
I also face with this error ... Maybe something is wrong in include/media
I'm getting this error for my passion.
Ive gotten a little farther by changing the namespace from android to android_audio_legacy as they did it hardware/libhardware_legacy/include/hardware_legacy/
Has anyone managed to fix this problem yet?
But it will still conpiling. Not a big problem. We can fix this later.
Sent from Xperia X10 Self-modded
I can't even seen to compile for tuna keep getting errors on llvm. I compile cm7 so my builds setup is good. Confused
texasice said:
I'm getting this error for my passion.
Ive gotten a little farther by changing the namespace from android to android_audio_legacy as they did it hardware/libhardware_legacy/include/hardware_legacy/
Click to expand...
Click to collapse
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
mikegapinski said:
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
Click to expand...
Click to collapse
in AudioHardware.h line 28 change :
Code:
namespace android {
as mentioned to :
Code:
namespace android_audio_legacy {
I tried it myself just by curiosity and it leads to these errors :
Code:
target thumb C++: libaudio <= hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp
In file included from hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:37:
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:318: error: 'Mutex' does not name a type
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:328: error: ISO C++ forbids declaration of 'SortedVector' with no type
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:328: error: expected ';' before '<' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.h:337: error: 'Mutex' does not name a type
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:92: error: 'AudioHardware' has not been declared
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:102: error: 'AudioHardware' has not been declared
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:102: error: ISO C++ forbids declaration of 'AudioHardware' with no type
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp: In function 'int android::AudioHardware()':
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:103: error: only constructors take base initializers
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:109: error: 'TTY_MODE_OFF' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:112: error: 'msm_bt_endpoint' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:112: error: expected primary-expression before ')' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:116: error: invalid type in declaration before ';' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:118: error: 'doA1026_init' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:124: error: 'mNumBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:125: error: 'mInit' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:126: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:131: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:158: error: 'mNumBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: 'mBTEndpoints' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: expected type-specifier before 'msm_bt_endpoint'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:160: error: expected ';' before 'msm_bt_endpoint'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:161: error: 'mInit' was not declared in this scope
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:164: error: expected primary-expression before 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:164: error: expected ')' before 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:167: error: return-statement with no value, in function returning 'int'
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:169: error: 'snd_get_bt_endpoint' cannot be used as a function
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:206: error: no return statement in function returning non-void
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp: At global scope:
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:208: error: expected constructor, destructor, or type conversion before '::' token
hardware/msm7k/libaudio-qsd8k/AudioHardware.cpp:2025: error: expected '}' at end of input
make: *** [out/target/product/passion/obj/SHARED_LIBRARIES/libaudio_intermediates/AudioHardware.o] Error 1
Any update on this? I had to add LOCAL_MODULE_TAGS := optional to some of the Android.mk to even reach that far. Faulty code from Google or am I doing something wrong myself?
Ive gotten past this by just removing the libaudio* folders from the Android.mk
It at least results in a system.img for the passion
In hardwark/msm7k/Android.mk
for mine qsd8k
from
Code:
common_msm_dirs := libcopybit liblights libopencorehw librpc libstagefrighthw
msm7k_dirs := $(common_msm_dirs) boot libgralloc libaudio
qsd8k_dirs := $(common_msm_dirs) libgralloc-qsd8k libaudio-qsd8k dspcrashd
msm7x30_dirs := liblights libgralloc-qsd8k librpc libaudio-qdsp5v2
to
Code:
common_msm_dirs := libcopybit liblights libopencorehw librpc libstagefrighthw
msm7k_dirs := $(common_msm_dirs) boot libgralloc libaudio
qsd8k_dirs := $(common_msm_dirs) dspcrashd
msm7x30_dirs := liblights libgralloc-qsd8k librpc libaudio-qdsp5v2
i also removed libgralloc cause it causes the screen to not work.
mikegapinski said:
Could you pastebin the modded file or generate an .patch file for your change ?
@up I also face with llvm error Do someone have fixed that issue ?
Click to expand...
Click to collapse
for go past llvm errors i've excluded -Werror in frameworks/compile/slang/Android.mk (local_cflags_for_slang line)
Fix, er, well, lets it build...
On the libaudio issue in msm7k for ICS:
Okay, after mucking around with it for a bit, it looks like it was an issue with namespaces, and things having the same name. So what I did to get it to compile is I went through and specified everything to use the android_audio_legacy namespace except for the things that needed to be on the android namespace.
I also slapped on a definition for 2 methods that were undefined. I do not know if it will work, but it does build.
My diff is here: http://pastebin.com/iP7FSa0C
Disclaimers:
C++ is not my primary language, actually, its not a language I know much of at all
I have not been able to test it, I can only verify that it builds, which I assume is better than having to remove the makefile.
I pretty much did the same thing as jbcode42
It builds but doesnt work.
http://pastebin.com/JGYBKfSs
I sow that libaudio.so is no more used in ICS i think ... Now it is an module under system/hw ex. audio.primary.goldfish ... We will need to wait for new soruces from CM or CA to get rid of the errors ...
lupohirp said:
for go past llvm errors i've excluded -Werror in frameworks/compile/slang/Android.mk (local_cflags_for_slang line)
Click to expand...
Click to collapse
Thanks for this. Any ideas why that error is coming up? It seems like others have got it to compile without modifications. What is everyone compiling on? I am on Ubuntu 11.10 with GCC 4.6.1

[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] error whiling compiling libmedia.so

my device is HTC LEO
i am compiling CM jellybean now
i got this error while compiling libmedia.so
Code:
in function construction vtable for android::IDirectTrackClient-in-android::AudioTrack:AudioTrack.cpp(.data.rel.ro._ZTCN7android10AudioTrackE0_NS_18IDirectTrackClientE+0x18): error: undefined reference to 'android::IDirectTrackClient::getInterfaceDescriptor() const'
in function construction vtable for android::IDirectTrackClient-in-android::AudioTrack:AudioTrack.cpp(.data.rel.ro._ZTCN7android10AudioTrackE0_NS_18IDirectTrackClientE+0x40): error: undefined reference to 'virtual thunk to android::IDirectTrackClient::~IDirectTrackClient()'
frameworks/native/include/binder/IInterface.h:44: error: undefined reference to 'android::IDirectTrack::asInterface(android::sp<android::IBinder> const&)'
collect2: ld returned 1 exit status
any one can help me to fix this issue
do i need to keep my device connecting to computer insure it can collect info from device
i also check android google developer reference and did not find getInterfaceDescriptor() Method
all error above are come out in file frameworks/native/include/binder/IInterface.h
please help
help me please
any one can help
Add IMPLEMENT_META_INTERFACE( your_service_class).

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?

Cross-Compile Error When Building Kernel (Nexus9 Memory Forensics)

Cross-compile error when building kernel (nexus9 memory forensics)
I'm currently following the AndroidMemoryForensics guide (I cannot post a link) on how to extract memory from an android device using LiME. I'm using the flounder_defconfig build configuration and create the .config file using
Code:
make flounder_defconfig
. In order to be able to load the LiME module to the kernel I need to add the following lines to the .config file:
CONFIG_MODULES=y
CONFIG_MODULES_UNLOAD=y
CONFIG_MODULES_FORCE_UNLOAD=y
When I compile the kernel I set the architecture to arm64 (ARCH=arm64) and use the aarch64-linux-android-4.9 toolchain (CROSS_COMPILE=aarch64-linux-android-4.9/aarch64-linux-android-).
When running
Code:
make
I get compile errors saying that "battery_voltage_monitor_on" is undeclared (see below).
If I try to compile the kernel without making the changes to the .config file I get no compile errors.
Am I missing something here, e.g. some package, or have I done something wrong to cause this compile error?
I tried to search for a solution online but have had little success so far so I hope I have better success here
Thanks in advance!
Jonas
Output:
CC drivers/htc_debug/stability/reboot_params.o
LD drivers/htc_debug/stability/built-in.o
CC drivers/hwmon/hwmon.o
CC drivers/hwmon/battery_system_voltage_monitor.o
In file included from include/linux/linkage.h:6:0,
from include/linux/kernel.h:6,
from include/linux/sched.h:31,
from /home/jonas/android/Nexus9_Volantis_source/test2/flounder-kernel/tegra/arch/arm64/include/asm/compat.h:25,
from /home/jonas/android/Nexus9_Volantis_source/test2/flounder-kernel/tegra/arch/arm64/include/asm/stat.h:23,
from include/linux/stat.h:5,
from include/linux/module.h:10,
from drivers/hwmon/battery_system_voltage_monitor.c:15:
drivers/hwmon/battery_system_voltage_monitor.c:151:19: error: 'battery_voltage_monitor_on' undeclared here (not in a function)
EXPORT_SYMBOL_GPL(battery_voltage_monitor_on);
^
include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL'
extern typeof(sym) sym; \
^
drivers/hwmon/battery_system_voltage_monitor.c:151:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(battery_voltage_monitor_on);
^
drivers/hwmon/battery_system_voltage_monitor.c:183:19: error: 'system_voltage_monitor_on' undeclared here (not in a function)
EXPORT_SYMBOL_GPL(system_voltage_monitor_on);
^
include/linux/export.h:57:16: note: in definition of macro '__EXPORT_SYMBOL'
extern typeof(sym) sym; \
^
drivers/hwmon/battery_system_voltage_monitor.c:183:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
EXPORT_SYMBOL_GPL(system_voltage_monitor_on);
^
make[2]: *** [drivers/hwmon/battery_system_voltage_monitor.o] Error 1
make[1]: *** [drivers/hwmon] Error 2
make: *** [drivers] Error 2
I'm having same issue on my build. Fine without modules but throws linker errors when enabled.
https://github.com/binkybear/flounder/commit/06781f20ea737f6b52a4589827d5d52688d20728

Categories

Resources