LG Optimus 3D Max CM 12.1 building error - LG Optimus 3D

Hi,
I'm trying for weeks now to build cm 12.1 for the p725/p720.
I used https://github.com/dhiru1602/android_device_lge_u2-common and changed it for the p720.
Here is the result: https://github.com/lung1/android_device_lge_p720
Then I used the https://github.com/artas182x/lge-kernel-omap4 for kernel, aosp-5.0 branch. I added cx2 and cosmo support.
Here is the result: https://github.com/lung1/android_kernel_lge_p720
I tried to make bootimage, but I receave this error on witch I didn't find any documentation:
Code:
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cx2_su870_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
arch/arm/configs/cx2_su870_defconfig:2418:warning: unexpected data
arch/arm/configs/cx2_su870_defconfig:2419:warning: unexpected data
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
arch/arm/configs/cx2_su870_defconfig:2418:warning: unexpected data
arch/arm/configs/cx2_su870_defconfig:2419:warning: unexpected data
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-omap2/lge/lge-common.o
In file included from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19,
from ../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:54:
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:151:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:155:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:229:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:237:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:245:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:253:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:385:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:393:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:403:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:441:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:478:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:533:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:545:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:573:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:584:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:616:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:628:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:653:27: error: array type has incomplete element type
struct dsscomp_videomode modedb[]; /* display supported timings */
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:654:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:666:27: error: field 'mode' has incomplete type
struct dsscomp_videomode mode; /* video timings */
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:667:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:693:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:698:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:703:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:744:2: warning: declaration does not declare anything [enabled by default]
};
^
In file included from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19:0,
from ../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:54:
../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:9:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:12:1: error: expected specifier-qualifier-list before 'typedef'
typedef struct dsscomp_data *dsscomp_t; /* handle */
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:219:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_clk1.gpio_119", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:220:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:221:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:224:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din1.gpio_120", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:225:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:226:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:231:49: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din3.gpio_122", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:232:29: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:233:23: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:236:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din2.gpio_121", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:237:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:238:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
make[4]: *** [arch/arm/mach-omap2/lge/lge-common.o] Error 1
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:31 (mm:ss)) ####
Thanks so much for your help!

Related

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

[Q]LG Optimus 3D Max CM 12.1 building error

Hi,
I'm trying for weeks now to build cm 12.1 for the p725/p720.
I used https://github.com/dhiru1602/android_device_lge_u2-common and changed it for the p720.
Here is the result: https://github.com/lung1/android_device_lge_p720
Then I used the https://github.com/artas182x/lge-kernel-omap4 for kernel, aosp-5.0 branch. I added cx2 and cosmo support.
Here is the result: https://github.com/lung1/android_kernel_lge_p720
I tried to make bootimage, but I receave this error on witch I didn't find any documentation:
Code:
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cx2_su870_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
arch/arm/configs/cx2_su870_defconfig:2418:warning: unexpected data
arch/arm/configs/cx2_su870_defconfig:2419:warning: unexpected data
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
arch/arm/configs/cx2_su870_defconfig:2418:warning: unexpected data
arch/arm/configs/cx2_su870_defconfig:2419:warning: unexpected data
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-omap2/lge/lge-common.o
In file included from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19,
from ../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:54:
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:151:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:155:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:229:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:237:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:245:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:253:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:385:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:393:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:403:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:441:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:478:31: warning: declaration does not declare anything [enabled by default]
} __attribute__ ((aligned(4)));
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:533:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:545:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:573:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:584:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:616:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:628:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:653:27: error: array type has incomplete element type
struct dsscomp_videomode modedb[]; /* display supported timings */
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:654:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:666:27: error: field 'mode' has incomplete type
struct dsscomp_videomode mode; /* video timings */
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:667:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:693:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:698:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:703:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/include/video/dsscomp.h:744:2: warning: declaration does not declare anything [enabled by default]
};
^
In file included from ../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19:0,
from ../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:54:
../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:9:2: warning: declaration does not declare anything [enabled by default]
};
^
../../../../../../kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:12:1: error: expected specifier-qualifier-list before 'typedef'
typedef struct dsscomp_data *dsscomp_t; /* handle */
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:219:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_clk1.gpio_119", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:220:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:221:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:224:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din1.gpio_120", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:225:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:226:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:231:49: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din3.gpio_122", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:232:29: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:233:23: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:236:50: warning: backslash and newline separated by space [enabled by default]
omap_mux_init_signal("abe_dmic_din2.gpio_121", \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:237:34: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_INPUT_PULLDOWN | \
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/lge-common.c:238:28: warning: backslash and newline separated by space [enabled by default]
OMAP_PIN_OFF_NONE | \
^
make[4]: *** [arch/arm/mach-omap2/lge/lge-common.o] Error 1
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:31 (mm:ss)) ####
Thanks so much for your help!

[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

Error while compiling Kernel from source (Mediatek)

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 ?

Categories

Resources