Error while compiling Kernel from source (Mediatek) - General Questions and Answers

So I was compiling kernel for my Meizu m2 note and I encountered this error :
Code:
In file included from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/io.h:243:0,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/clocksource.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/clocksource/arm_arch_timer.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/arch_timer.h:27,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/timex.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timex.h:65,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/jiffies.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/ktime.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timer.h:5,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/workqueue.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/pm.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/device.h:25,
from drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:11:
/home/suvam/RRMM/kernel/meizu/m2note/include/asm-generic/iomap.h:31:21: note: expected 'void *' but argument is of type 'long unsigned int'
extern unsigned int ioread32(void __iomem *);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:99:26: warning: passing argument 1 of 'ioread32' makes pointer from integer without a cast
#define ISP_RD32(addr) ioread32(addr)
^
/home/suvam/RRMM/kernel/meizu/m2note/include/linux/printk.h:248:38: note: in expansion of macro 'ISP_RD32'
no_printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__)
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:87:37: note: in expansion of macro 'pr_debug'
#define LOG_DBG(format, args...) pr_debug(MyTag format, ##args)
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:10828:3: note: in expansion of macro 'LOG_DBG'
LOG_DBG("0x%08X %08X", (unsigned int)(ISP_TPIPE_ADDR + 0x00a8), (unsigned int)ISP_RD32(ISP_ADDR + 0x00a8));
^
In file included from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/io.h:243:0,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/clocksource.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/clocksource/arm_arch_timer.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/arch_timer.h:27,
from /home/suvam/RRMM/kernel/meizu/m2note/arch/arm64/include/asm/timex.h:19,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timex.h:65,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/jiffies.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/ktime.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/timer.h:5,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/workqueue.h:8,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/pm.h:25,
from /home/suvam/RRMM/kernel/meizu/m2note/include/linux/device.h:25,
from drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:11:
/home/suvam/RRMM/kernel/meizu/m2note/include/asm-generic/iomap.h:31:21: note: expected 'void *' but argument is of type 'long unsigned int'
extern unsigned int ioread32(void __iomem *);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: At top level:
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:175:22: warning: 'g_isp_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_isp_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:176:22: warning: 'g_isp_inner_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_isp_inner_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:177:22: warning: 'g_imgsys_config_base_dase' defined but not used [-Wunused-variable]
static void __iomem *g_imgsys_config_base_dase;
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'compat_put_isp_read_register_data':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:8407:6: warning: 'err' is used uninitialized in this function [-Wuninitialized]
err |= get_user(count, &data->Count);
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'ISP_DONE_Buf_Time.isra.4':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:5522:49: warning: 'out' may be used uninitialized in this function [-Wmaybe-uninitialized]
pstRTBuf->ring_buf[i_dma].img_cnt = sof_count[out];
^
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c: In function 'ISP_Buf_CTRL_FUNC':
drivers/misc/mediatek/mach/mt6735/camera_isp_D1.c:4447:34: warning: 'out' may be used uninitialized in this function [-Wmaybe-uninitialized]
deque_buf.sof_cnt = sof_count[out];
^
LD drivers/misc/mediatek/mach/mt6735/built-in.o
LD drivers/misc/mediatek/mach/built-in.o
make[4]: *** [drivers/misc/mediatek] Error 2
make[3]: *** [drivers/misc] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/suvam/RRMM/kernel/meizu/m2note'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (09:32 (mm:ss)) ####
Can somebody please help me out ?

Related

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] Compiling Rootbox Mako

Hello everyone,
I have been compiling my own nexus 4 (mako) nightlies for some time now and yesterday after syncing repo I can no longer compile. After about 10 minutes I get an error and I can not figure out whats going on. This is for Rootbox.
target thumb C++: libjni_mosaic <= packages/apps/Camera/jni/mosaic_renderer_jni.cpp
In file included from packages/apps/Camera/jni/feature_mos_jni.cpp:27:0:
packages/apps/Camera/jni/feature_mos/src/mosaic/AlignFeatures.h:47:45: error: 'constexpr' needed for in-class initialization of static data member 'const double Align:EFAULT_MAX_DISPARITY' of non-integral type [-fpermissive]
In file included from packages/apps/Camera/jni/feature_mos_jni.cpp:28:0:
packages/apps/Camera/jni/feature_mos/src/mosaic/Blend.h:122:54: error: 'constexpr' needed for in-class initialization of static data member 'const float Blend::LIMIT_SIZE_MULTIPLIER' of non-integral type [-fpermissive]
packages/apps/Camera/jni/feature_mos/src/mosaic/Blend.h:123:49: error: 'constexpr' needed for in-class initialization of static data member 'const float Blend::LIMIT_HEIGHT_MULTIPLIER' of non-integral type [-fpermissive]
packages/apps/Camera/jni/feature_mos_jni.cpp:50:35: error: invalid conversion from 'int' to 'ImageType {aka unsigned char*}' [-fpermissive]
packages/apps/Camera/jni/feature_mos_jni.cpp:51:35: error: invalid conversion from 'int' to 'ImageType {aka unsigned char*}' [-fpermissive]
make: *** [/home/rj/rootbox/out/target/product/mako/obj/SHARED_LIBRARIES/libjni_mosaic_intermediates/feature_mos_jni.o] Error 1
make: *** Waiting for unfinished jobs....
Total time elapsed: 9 minutes (556.865422577 seconds)
This is the last thing that appears when compiling.
Same here, don't know how to do...

[HELP] Build Error debug for Ubuntu Touch

Hey guys, i am building Ubuntu Touch for Moto G and it is my first source build. I got stuck on this build error. Can anyone help me out so that we can get Ubuntu Touch for this awesome device too.
@TeamMex @rr46000 @herna can you guys please help me on this?
Code:
Copy: /home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/root/ueventd.rc
Install: /home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/bin/zipalign
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/yeshwanth/Ubuntu_Touch/kernel/motorola/msm8226'
target StaticLib: libc (/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/STATIC_LIBRARIES/libc_intermediates/libc.a)
Code:
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
use it
and if you have issues copy attached file on out/host/linux-x86/framework
TeamMex said:
Code:
<project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="cm-11.0" />
Click to expand...
Click to collapse
after adding the line to roomservice.xml and when trying to repo sync i get this error:
Code:
$ repo sync
fatal: duplicate path vendor/motorola in /home/yeshwanth/Ubuntu_Touch/.repo/manifest.xml
seems there is a similar line in my roomservice.xml like this:
Code:
project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="stable/cm-11.0" />
yeshwanthvshenoy said:
after adding the line to roomservice.xml and when trying to repo sync i get this error:
Code:
$ repo sync
fatal: duplicate path vendor/motorola in /home/yeshwanth/Ubuntu_Touch/.repo/manifest.xml
seems there is a similar line in my roomservice.xml like this:
Code:
project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" revision="stable/cm-11.0" />
Click to expand...
Click to collapse
replace it...
TeamMex said:
replace it...
Click to expand...
Click to collapse
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
yeshwanthvshenoy said:
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
Click to expand...
Click to collapse
In a terminal
cd /pathtoyourubuntutouchdirectory/
mkdir -p out/host/linux-x86/framework/
And put the teamMex apk in
out/host/linux-x86/framework/
Sent from my Moto G using XDA Free mobile app
yeshwanthvshenoy said:
Code:
host C++: libandroidfw <= frameworks/base/libs/androidfw/ResourceTypes.cpp
frameworks/base/libs/androidfw/Asset.cpp:846:13: warning: unused parameter ‘wordAligned’ [-Wunused-parameter]
const void* _CompressedAsset::getBuffer(bool wordAligned)
^
host C++: libandroidfw <= frameworks/base/libs/androidfw/StreamingZipInflater.cpp
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipFileRO.cpp
frameworks/base/libs/androidfw/AssetManager.cpp:1094:8: warning: unused parameter ‘entryName’ [-Wunused-parameter]
Asset* AssetManager::openAssetFromZipLocked(const ZipFileRO* pZipFile,
^
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/host/linux-x86/framework/signapk.jar', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates/TimeService.apk'. Stop.
make: *** Waiting for unfinished jobs....
host C++: libandroidfw <= frameworks/base/libs/androidfw/ZipUtils.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘cookie’ [-Wunused-parameter]
static void printToLogFunc(void* cookie, const char* txt)
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:69:13: warning: unused parameter ‘txt’ [-Wunused-parameter]
frameworks/base/libs/androidfw/ResourceTypes.cpp:2925:10: warning: unused parameter ‘asset’ [-Wunused-parameter]
status_t ResTable::add(const void* data, size_t size, void* cookie,
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3350:17: warning: unused parameter ‘tmpBuffer’ [-Wunused-parameter]
const char16_t* ResTable::valueToString(
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:3375:6: warning: unused parameter ‘bag’ [-Wunused-parameter]
void ResTable::unlockBag(const bag_entry* bag) const
^
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function ‘void android::ResTable::print(bool) const’:
frameworks/base/libs/androidfw/ResourceTypes.cpp:5737:84: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
printf("NON-INTEGER ResTable_entry SIZE: %p\n", (void*)esize);
^
frameworks/base/libs/androidfw/ResourceTypes.cpp:5743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
(void*)esize, (void*)typeSize);
^
[email protected]:~/Ubuntu_Touch$
sir, new error.
Click to expand...
Click to collapse
add this
TimeService.apk
/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates
(Added in attached files.)
h2o64 said:
In a terminal
cd /pathtoyourubuntutouchdirectory/
mkdir -p out/host/linux-x86/framework/
And put the teamMex apk in
out/host/linux-x86/framework/
Sent from my Moto G using XDA Free mobile app
Click to expand...
Click to collapse
TeamMex said:
add this
TimeService.apk
/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/APPS/TimeService_intermediates
(Added in attached files.)
Click to expand...
Click to collapse
Added both files now new error
Code:
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_sxnet.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_utl.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3err.c
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
yeshwanthvshenoy said:
Added both files now new error
Code:
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_sxnet.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3_utl.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509v3/v3err.c
make: *** No rule to make target `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/home/yeshwanth/Ubuntu_Touch/out/target/product/falcon/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
Remenber that EVERY TIME you close the building terminal, you need to do
Code:
$ . build/envsetup.sh
$ lunch full_falcon-userdebug

[Q] How to Use a Different Kernel When Building CM12?

I have been learning how to compile CM12 on my own and it has been going really good so far. I've done two nightly builds for myself but now I am curious how I would go about compiling a custom kernel with it. Say I wanted to substitute in Franco's kernel or Faux. . .what do I need to do in order to sync the required code to my build?
Off the top of my head, I would think that the line in the local_manifest needs to be changed, but I honestly have no idea if it is that easy.
Here you go.
http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
So, I have added Franco's details into the local_manifest.xml file and done the repo sync command to pull down all of the source code. Franco's kernel source seemed to pull down successfully and I thought everything was good
However, when I try the "time brunch hammerhead" command, I get some errors. . .
Code:
PRODUCT_COPY_FILES device/lge/hammerhead/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/lge/hammerhead/spn-conf.xml:system/etc/spn-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
No private recovery resources for TARGET_DEVICE hammerhead
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
make -C kernel/lge/hammerhead O=/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_hammerhead_defconfig
make[1]: Entering directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host StaticLib: libhost_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
host C: checkpolicy <= external/checkpolicy/queue.c
host C: checkpolicy <= external/checkpolicy/module_compiler.c
host C: checkpolicy <= external/checkpolicy/parse_util.c
external/checkpolicy/module_compiler.c: In function 'add_perm_to_class':
external/checkpolicy/module_compiler.c:710:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'is_scope_in_stack':
external/checkpolicy/module_compiler.c:1233:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'end_optional':
external/checkpolicy/module_compiler.c:1448:22: warning: unused parameter 'pass' [-Wunused-parameter]
external/checkpolicy/module_compiler.c: In function 'copy_requirements':
external/checkpolicy/module_compiler.c:1511:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c:1517:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: checkpolicy <= external/checkpolicy/policy_define.c
GEN /home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile
host C: checkpolicy <= external/checkpolicy/checkpolicy.c
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host StaticLib: libsepol_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
host C: checkfc <= external/sepolicy/tools/checkfc.c
external/checkpolicy/policy_define.c: In function 'define_dominance':
external/checkpolicy/policy_define.c:867:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'clone_level':
external/checkpolicy/policy_define.c:997:38: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'define_compute_type_helper':
external/checkpolicy/policy_define.c:1569:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'dominate_role_recheck':
external/checkpolicy/policy_define.c:2146:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2152:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2125:48: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'parse_semantic_categories':
external/checkpolicy/policy_define.c:3445:64: warning: unused parameter 'levdatum' [-Wunused-parameter]
host C: libselinux_32 <= external/libselinux/src/callbacks.c
external/checkpolicy/checkpolicy.c: In function 'display_bools':
external/checkpolicy/checkpolicy.c:296:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/checkpolicy.c: In function 'check_level':
external/checkpolicy/checkpolicy.c:364:72: warning: unused parameter 'arg' [-Wunused-parameter]
external/checkpolicy/checkpolicy.c: In function 'main':
external/checkpolicy/checkpolicy.c:472:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: libselinux_32 <= external/libselinux/src/check_context.c
host C: libselinux_32 <= external/libselinux/src/freecon.c
***
*** Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!
***
make[3]: *** [cyanogenmod_hammerhead_defconfig] Error 1
make[2]: *** [cyanogenmod_hammerhead_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host C: libselinux_32 <= external/libselinux/src/init.c
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
real 0m55.220s
user 0m46.604s
sys 0m11.489s
It seems to be hanging up on this error "Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!" and I'm not sure how to proceed
I found this and he said that person needed to "Go to the device tree BoardConfig.mk and change cyanogenmod_d802_defconfig to d802_defconfig"
So I went into the BoardConfig.mk file and rmeoved the cyanogenmod bit from that line.
repo sync'd and set everything back up and it seems to be going through the full build right now *crossing my fingers*
Blah
So not I'm getting this error about 20 minutes into the build
Code:
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
Does anyone have any idea what this pertains to?

[Completed] Can't enable OTG when building kernel:getting errors plz help!! LENOVO A6000/plus

I am using
toolchain : arm-linux-gnueabi-linaro_4.9.3-2014.12
kernel source : source code of gods kernel by Tarun93
config:gk_a6000_defconfig
with this config kernel build is succesfull and i got zimage.
but when i enable otg i got these errors
Code:
drivers/usb/core/hub.c: In function ‘usb_enumerate_device_otg’:
drivers/usb/core/hub.c:2257:18: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:2257:3: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c: In function ‘usb_port_suspend’:
drivers/usb/core/hub.c:3053:19: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:3053:4: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/core/hub.o' failed
make[3]: *** [drivers/usb/core/hub.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/usb/core' failed
make[2]: *** [drivers/usb/core] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
please!!!!! help me to solve these errors
ameen ahsan said:
I am using
toolchain : arm-linux-gnueabi-linaro_4.9.3-2014.12
kernel source : source code of gods kernel by Tarun93
config:gk_a6000_defconfig
with this config kernel build is succesfull and i got zimage.
but when i enable otg i got these errors
Code:
drivers/usb/core/hub.c: In function ‘usb_enumerate_device_otg’:
drivers/usb/core/hub.c:2257:18: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:2257:3: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_DEV_NOT_SUPPORTED);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c: In function ‘usb_port_suspend’:
drivers/usb/core/hub.c:3053:19: warning: passing argument 1 of ‘otg_send_event’ makes pointer from integer without a cast
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: expected ‘struct usb_otg *’ but argument is of type ‘int’
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
drivers/usb/core/hub.c:3053:4: error: too few arguments to function ‘otg_send_event’
otg_send_event(OTG_EVENT_NO_RESP_FOR_HNP_ENABLE);
^
In file included from drivers/usb/core/hub.c:23:0:
include/linux/usb/otg.h:125:1: note: declared here
otg_send_event(struct usb_otg *otg, enum usb_otg_event event)
^
scripts/Makefile.build:308: recipe for target 'drivers/usb/core/hub.o' failed
make[3]: *** [drivers/usb/core/hub.o] Error 1
scripts/Makefile.build:455: recipe for target 'drivers/usb/core' failed
make[2]: *** [drivers/usb/core] Error 2
scripts/Makefile.build:455: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
please!!!!! help me to solve these errors
Click to expand...
Click to collapse
Hello,
Try posting your query here [Tutorial] Building Your First Kernel or [GUIDE][COMPLETE] Android ROM Development From Source To Endwith all relevant details, the experts there maybe able to assist you.
-Vatsal

Categories

Resources