[Q] CM10.1 based rom build error - General Questions and Answers

when I am build rom based cm10.1
I faced this problem
who can Help me ..
{
target Java: VideoEditor (/home/tct-atti/android/system/out/target/common/obj/APPS/VideoEditor_intermediates/classes)
frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java:184: com.android.internal.policy.impl.PhoneWindowManager is not abstract and does not override abstract method hasMenuKeyEnabled() in android.view.WindowManagerPolicy
public class PhoneWindowManager implements WindowManagerPolicy {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
make: *** [/home/tct-atti/android/system/out/target/common/obj/JAVA_LIBRARIES/android.policy_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
}
If you have a free to teach me
please send email to " [email protected]"
anyway Are there any man who know that problem?

Related

[Q] Building cm7 - no rule to make target liba2dp.so

i was compiling for lg optimus one. why is this happening? is it a cause of a bad download of liba2dp.so?
Code:
host Java: signapk (out/host/common/obj/JAVA_LIBRARIES/signapk_intermediates/classes)
SignApk.java:19: warning: sun.misc.BASE64Encoder is internal proprietary API and may be removed in a future release
import sun.misc.BASE64Encoder;
^
SignApk.java:20: warning: sun.security.pkcs.ContentInfo is internal proprietary API and may be removed in a future release
import sun.security.pkcs.ContentInfo;
^
SignApk.java:21: warning: sun.security.pkcs.PKCS7 is internal proprietary API and may be removed in a future release
import sun.security.pkcs.PKCS7;
.
.
.
.
<some more SignApk.java errors :confused:>
.
.
.
.
make: *** No rule to make target `vendor/lge/thunderg/proprietary/lib/liba2dp.so', needed by `out/target/product/thunderg/system/lib/liba2dp.so'. Stop.
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Build Problem

I have been having issues building Jelly Bean, and I can't find the answers anyway
I know people have had similar issues, but the topic has always just suddenly been dropped
Here are the errors, please help me fix them
http://pastebin.com/LXmRxUPm
Code:
target thumb C++: libSR_AudioIn <= external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioSetVolume(int, int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:155:61: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:58:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::setStreamVolume(audio_stream_type_t, float, audio_io_handle_t)' [-fpermissive]
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp: In function 'int AudioGetVolume(int)':
external/srec/audio/AudioIn/UNIX/src/audioinwrapper.cpp:165:50: error: invalid conversion from 'int' to 'audio_stream_type_t' [-fpermissive]
frameworks/av/include/media/AudioSystem.h:60:21: error: initializing argument 1 of 'static android::status_t android::AudioSystem::getStreamVolume(audio_stream_type_t, float*, audio_io_handle_t)' [-fpermissive]
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/audioinwrapper.o] Error 1
make: *** Waiting for unfinished jobs....
true
and this one
http://pastebin.com/jf7G1iR2
Code:
target thumb C++: audio.primary.goldfish <= device/generic/goldfish/audio/AudioHardwareGeneric.cpp
device/generic/goldfish/audio/AudioHardwareGeneric.cpp: In function 'android_audio_legacy::AudioHardwareInterface* android_audio_legacy::createAudioHardware()':
device/generic/goldfish/audio/AudioHardwareGeneric.cpp:411:37: error: cannot allocate an object of abstract type 'android_audio_legacy::AudioHardwareGeneric'
device/generic/goldfish/audio/AudioHardwareGeneric.h:105:7: note: because the following virtual functions are pure within 'android_audio_legacy::AudioHardwareGeneric':
hardware/libhardware_legacy/include/hardware_legacy/AudioHardwareInterface.h:342:29: note: virtual android_audio_legacy::AudioStreamOut* android_audio_legacy::AudioHardwareInterface::openOutputStream(uint32_t, audio_output_flags_t, int*, uint32_t*, uint32_t*, android::status_t*)
make: *** [out/target/product/p350/obj/SHARED_LIBRARIES/audio.primary.goldfish_intermediates/AudioHardwareGeneric.o] Error 1
make: *** Waiting for unfinished jobs....
Is there anyone that can help, or does anyone know about anyone that can help?
Need to see the code. I wont recommend you to use -fpermissive flag.
1. Use stream_audio_type_t instead of int in previous line.
Or Convert explicitly if you are trying to convert int to enum type.
2. You cannot create objects of that class, You can only have pointers or references to it.
If you are deriving from an Abstract class make sure you override and define all Pure virtual
functions for your class.
rr0yy said:
Need to see the code. I wont recommend you to use -fpermissive flag.
1. Use stream_audio_type_t instead of int in previous line.
Or Convert explicitly if you are trying to convert int to enum type.
2. You cannot create objects of that class, You can only have pointers or references to it.
If you are deriving from an Abstract class make sure you override and define all Pure virtual
functions for your class.
Click to expand...
Click to collapse
Thankyou for your help
hitting thanks
I did what you said, but encounted other errors as well
I replaced generic/goldfish with the one found in cm10 (I'm building SlimRom, which is cm10 merged with aosp and stripped down a lot) and that has fixed other errors
The main issue now is that the include folder in device folder isn't being included. This is causing other errors, which I can patch for the time being
Doesn't matter. It was me being a complete idiot
I missed this line in device folder
TARGET_SPECIFIC_HEADER_PATH := device/lge/msm7x27-common/include

[Q] Problems compiling stock Kernel from official source.

Hi all.
I run into some problems when trying to build a Kernel from GT-N8000_KK_Opensource.zip (opensource.samsung.com).
I can compile the kernel with the defconfig shipped with the source code (p4notepq-w_00_defconfig) without any changes and i get a fully functional kernel and modules.
My aim is to compile driver modules for my usb-wlan-dongle TP-LINK TL-WN722N. That are the ath9k n ath9k_htc modules (also mac80211 module is needed).
I did the following changes to enable the ath9k and ath9k_htc in menuconfig
Code:
file drivers/net/wireless/ath/Makefile :
added: obj-$(CONFIG_ATH9K_HW) += ath9k/
file drivers/net/wireless/ath/Kconfig :
added: source "drivers/net/wireless/ath/ath9k/Kconfig
Also i removed Wall flags from Makefile and inserted some -Wno-error to get rid off some additional warnings.
To get rid off
Code:
include/linux/device.h:722:38: error: 'THIS_MODULE' undeclared (first use in this function)
i inserted my kernel export.h in the compat include.
Now i got the following error unsolved:
Code:
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_setup':
drivers/net/wireless/ath/ath9k/beacon.c:109: error: 'struct ath_common' has no member named 'tx_chainmask'
make[5]: *** [drivers/net/wireless/ath/ath9k/beacon.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [drivers/net/wireless/ath] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
My Build environment is:
Ubuntu 14.4.01 64bit in a VM with 8gb ram.
Toolchain used:
arm-eabi-4.4.3
Maybe someone can give me some advice how to get this module compiled.
Thanks in advance
smue83 said:
Hi all.
I run into some problems when trying to build a Kernel from GT-N8000_KK_Opensource.zip (opensource.samsung.com).
I can compile the kernel with the defconfig shipped with the source code (p4notepq-w_00_defconfig) without any changes and i get a fully functional kernel and modules.
My aim is to compile driver modules for my usb-wlan-dongle TP-LINK TL-WN722N. That are the ath9k n ath9k_htc modules (also mac80211 module is needed).
I did the following changes to enable the ath9k and ath9k_htc in menuconfig
Code:
file drivers/net/wireless/ath/Makefile :
added: obj-$(CONFIG_ATH9K_HW) += ath9k/
file drivers/net/wireless/ath/Kconfig :
added: source "drivers/net/wireless/ath/ath9k/Kconfig
Also i removed Wall flags from Makefile and inserted some -Wno-error to get rid off some additional warnings.
To get rid off
Code:
include/linux/device.h:722:38: error: 'THIS_MODULE' undeclared (first use in this function)
i inserted my kernel export.h in the compat include.
Now i got the following error unsolved:
Code:
drivers/net/wireless/ath/ath9k/beacon.c: In function 'ath_beacon_setup':
drivers/net/wireless/ath/ath9k/beacon.c:109: error: 'struct ath_common' has no member named 'tx_chainmask'
make[5]: *** [drivers/net/wireless/ath/ath9k/beacon.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [drivers/net/wireless/ath/ath9k] Error 2
make[3]: *** [drivers/net/wireless/ath] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
My Build environment is:
Ubuntu 14.4.01 64bit in a VM with 8gb ram.
Toolchain used:
arm-eabi-4.4.3
Maybe someone can give me some advice how to get this module compiled.
Thanks in advance
Click to expand...
Click to collapse
Similar issue here on S3,
Code:
net/mac80211/mlme.c: In function 'ieee80211_mgd_auth':
net/mac80211/mlme.c:2344:16: error: 'struct cfg80211_auth_request' has no member named 'local_state_change'
net/mac80211/mlme.c:2346:9: error: 'struct cfg80211_auth_request' has no member named 'local_state_change'
net/mac80211/mlme.c: In function 'ieee80211_assoc_done':
net/mac80211/mlme.c:2448:2: warning: passing argument 2 of 'cfg80211_send_rx_assoc' from incompatible pointer type [enabled by default]
include/net/cfg80211.h:2802:6: note: expected 'struct cfg80211_bss *' but argument is of type 'unsigned char *'
net/mac80211/mlme.c:2448:2: warning: passing argument 3 of 'cfg80211_send_rx_assoc' makes pointer from integer without a cast [enabled by default]
include/net/cfg80211.h:2802:6: note: expected 'u8 const *' but argument is of type 'unsigned int'
net/mac80211/mlme.c:2448:2: error: too few arguments to function 'cfg80211_send_rx_assoc'
include/net/cfg80211.h:2802:6: note: declared here
net/mac80211/mlme.c: In function 'ieee80211_mgd_deauth':
net/mac80211/mlme.c:2589:19: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2590:30: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2610:18: error: 'struct cfg80211_deauth_request' has no member named 'bss'
net/mac80211/mlme.c:2639:16: error: 'struct cfg80211_deauth_request' has no member named 'local_state_change'
make[2]: *** [net/mac80211/mlme.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Please Help.. Uber Toolchain Setup.

All I am trying to do is simply get Uber Toolchain GCC 5.2 working on the ROM portion of a cm-12.1 build. I got it working on the kernel but every time I build the ROM I get an error. Posted below. Any help would be incredible. Thanks.
In file included from external/libcxx/include/algorithm:628:0,
from art/dalvikvm/dalvikvm.cc:21:
external/libcxx/include/memory: In member function 'virtual const void* std::__1::__shared_ptr_pointer<_Tp, _Dp, _Alloc>::__get_deleter(const std::type_info&) const':
external/libcxx/include/memory:3662:29: error: cannot use typeid with -fno-rtti
return __t == typeid(_Dp) ? &__data_.first().second() : 0;
^
external/libcxx/include/memory: In member function '_Dp* std::__1::shared_ptr<_Tp>::__get_deleter() const':
external/libcxx/include/memory:3942:73: error: cannot use typeid with -fno-rtti
{return (_Dp*)(__cntrl_ ? __cntrl_->__get_deleter(typeid(_Dp)) : 0);}
^
build/core/binary.mk:619: recipe for target '/home/zx64/android/system/out/target/product/bacon/obj/EXECUTABLES/dalvikvm_intermediates/dalvikvm..o' failed
make: *** [/home/zx64/android/system/out/target/product/bacon/obj/EXECUTABLES/dalvikvm_intermediates/dalvikvm..o] Error 1
make: *** Waiting for unfinished jobs....

GCC 5 for i9100/I9300/N7100

Hy guyz , i'm trying to compile ROM with uber 5.3.1 but it gave me this error:
Code:
target thumb C: libbacktrace <= system/core/libbacktrace/thread_utils.c
target StaticLib: libziparchive (/home/suzuki/cm13.0/out/target/product/i9300/obj/STATIC_LIBRARIES/libziparchive_intermediates/libziparchive.a)
target SharedLib: libexpat (/home/suzuki/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libexpat_intermediates/LINKED/libexpat.so)
target thumb C++: libui <= frameworks/native/libs/ui/Fence.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function 'android::status_t android::ResStringPool::setTo(const void*, size_t, bool)':
frameworks/base/libs/androidfw/ResourceTypes.cpp:571:28: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
(!mHeader->flags&ResStringPool_header::UTF8_FLAG &&
^
cc1plus: all warnings being treated as errors
make: *** [/home/suzuki/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libandroidfw_intermediates/ResourceTypes.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/suzuki/cm13.0'
coul'd someone help me out with it? Thanks in advance
Edit: all i need is the files i need to change to make the toolchain work , i don't care how many they are
ok , so i found out that the error is in android_frameworks_base/libs/androidfw/ResourceTypes.cpp in the line
Code:
if ((mHeader->flags&ResStringPool_header::UTF8_FLAG &&
((uint8_t*)mStrings)[mStringPoolSize-1] != 0) ||
(!mHeader->flags&ResStringPool_header::UTF8_FLAG &&
((uint16_t*)mStrings)[mStringPoolSize-1] != 0)) {
ALOGW("Bad string block: last string is not 0-terminated\n");
return (mError=BAD_TYPE);
can someone tell me how to fix it? thx in advance
Hello! I'm not much of a ROM Developer (I can only basically merge ROM sources and device-tree) but here's the original source code from AOSP, it might help :
https://android.googlesource.com/platform/frameworks/base/+/master/libs/androidfw/ResourceTypes.cpp
Line 561 onwards is where your error is
Hope I helped and again, I'm not a professional developer so don't expect too much from me
Jericho Arcelao said:
Hello! I'm not much of a ROM Developer (I can only basically merge ROM sources and device-tree) but here's the original source code from AOSP, it might help :
https://android.googlesource.com/platform/frameworks/base/+/master/libs/androidfw/ResourceTypes.cpp
Line 561 onwards is where your error is
Hope I helped and again, I'm not a professional developer so don't expect too much from me
Click to expand...
Click to collapse
Well it is the same line CM has to , but thanks anyway for trying at last
Most of the rom is compiling now by cherry-picking this , this and this, but now i'm stuck to this error
Code:
[COLOR="Green"]target SharedLib:[/COLOR] libhwconverter (/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/LINKED/libhwconverter.so)
/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/HardwareConverter.o:HardwareConverter.cpp:function HardwareConverter::HardwareConverter(): error: undefined reference to 'SecFimc::create(SecFimc::DEV, SecFimc::MODE, int)'
collect2: error: ld returned 1 exit status
make: *** [/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/LINKED/libhwconverter.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/rpdroky/cm13.0'
i guess this is the last one , hopefully someone can help me out with it
This is the problematic line is in /hardware/samsung/exynos4/hal/libhwconverter/HardwareConverter.cpp , if you remove this line , the rom will compile but i dont know if there are side efects by removeing it ...
Code:
{
SecFimc* handle_fimc = new SecFimc();
mSecFimc = (void *)handle_fimc;
if (handle_fimc->create(SecFimc::DEV_0, SecFimc::MODE_MULTI_BUF, 1) == false)
bHWconvert_flag = 0;
else
bHWconvert_flag = 1;
}
Edit: The camera is force closeing and some apps crash , all the rest works
Cheers :highfive:
Compile zimage gcc5-6
Compile zimage gcc5-6 n7100 Marshmalow
Build Omni Rom N7100 Marshmallow with ubergcc5.3.1 optimized
Kernel dtb.img for n7100 AOSP, CM13

Categories

Resources