I am facing Compilation problem while building Ubuntu Touch for Xperia Z (codename: yuga)
Synced source code using:
1) phablet-dev-bootstrap [target_directory]
2) breakfast yuga
3) changed .repo/local_manifests/roomservice.xml to include <project name="TheMuppets/proprietary_vendor_sony" path="vendor/sony" remote="github" revision="cm-10.1" />.
4) repo sync (downloads the device related blobs)
Compilation steps:
1) . build/envsetup.sh
2) brunch yuga
Compilation issues:
1) I am seeing lots of "Segmentation fault (core dumped)" while compiling.
2) libelf not found (then I have downloaded "elfutils" from "git clone https://android.googlesource.com/platform/external/elfutils"; in external folder)
3) Now, I am seeing No rule to make target `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/android-boot.img'
Please provide me with the steps to seamlessly compile Ubuntu touch yuga source
[Logs]
make: Circular /home/abhishek/work/ubuntu_touch/out/target/product/yuga/system/lib/libdl.so <- /home/abhishek/work/ubuntu_touch/out/target/product/yuga/system/lib/libc.so dependency dropped.
Segmentation fault (core dumped)
/home/abhishek/work/ubuntu_touch/kernel/sony/apq8064/scripts/gcc-goto.sh: line 21: 23645 Done cat <<'END'
int main(void)
{
#ifdef __arm__
/*
* Not related to asm goto, but used by jump label
* and broken on some ARM GCC versions (see GCC Bug 48637).
*/
static struct { int dummy; int state; } tp;
asm (".long %c0" :: "i" (&tp.state));
#endif
entry:
asm goto ("" :::: entry);
return 0;
}
END
23646 Segmentation fault (core dumped) | [email protected] -x c - -c -o /dev/null > /dev/null 2>&1
Segmentation fault (core dumped)
Segmentation fault (core dumped)
CHK include/linux/version.h
make[1]: Leaving directory `/home/abhishek/work/ubuntu_touch/kernel/sony/apq8064'
target thumb C: libcrypto_static <= external/openssl/crypto/evp/e_rc4.c
target thumb C: libcrypto_static <= external/openssl/crypto/lhash/lh_stats.c
target thumb C: libcrypto_static <= external/openssl/crypto/pkcs12/p12_asn.c
target thumb C: libcrypto_static <= external/openssl/crypto/x509/x509_r2x.c
target thumb C++: libpixelflinger_static <= system/core/libpixelflinger/format.cpp
target arm C: libm <= bionic/libm/src/e_exp.c
target arm C: libm <= bionic/libm/src/e_rem_pio2f.c
target arm C: libm <= bionic/libm/src/s_finite.c
target arm C: libm <= bionic/libm/src/s_llroundf.c
target arm C: libm <= bionic/libm/src/s_rintf.c
target arm C: libm <= bionic/libm/src/s_fabsl.c
target thumb C: libuclibcrpc <= external/busybox/android/librpc/bindresvport.c
target thumb C: libuclibcrpc <= external/busybox/android/librpc/xdr_mem.c
make: *** No rule to make target `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/android-boot.img', needed by `/home/abhishek/work/ubuntu_touch/out/target/product/yuga/obj/PACKAGING/target_files_intermediates/cm_yuga-target_files-eng.abhishek.zip'. Stop.
make: *** Waiting for unfinished jobs....
Related
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
Code:
target thumb C: sh <= external/mksh/src/eval.c
target thumb C: sh <= external/mksh/src/exec.c
target thumb C: sh <= external/mksh/src/expr.c
target thumb C: sh <= external/mksh/src/funcs.c
target thumb C: sh <= external/mksh/src/histrap.c
target thumb C: sh <= external/mksh/src/jobs.c
target thumb C: sh <= external/mksh/src/lex.c
target thumb C: sh <= external/mksh/src/main.c
target thumb C: sh <= external/mksh/src/misc.c
target thumb C: sh <= external/mksh/src/shf.c
target thumb C: sh <= external/mksh/src/syn.c
target thumb C: sh <= external/mksh/src/tree.c
target thumb C: sh <= external/mksh/src/var.c
target thumb C: showlease <= external/dhcpcd/showlease.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl_linux.c
Import includes file: /home/owner/android/system/out/target/product/p3110/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:35:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:39:
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags]
class DisplayInfo;
^
frameworks/native/include/ui/DisplayInfo.h:28:8: note: previous use is here
struct DisplayInfo {
^
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: note: did you mean struct here?
class DisplayInfo;
^~~~~
struct
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:76:18: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
mPowerMode(HWC_POWER_MODE_OFF),
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:19: error: use of undeclared identifier 'HWC_POWER_MODE_NORMAL'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:43: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:351:27: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
return (mPowerMode != HWC_POWER_MODE_OFF);
^
2 warnings and 4 errors generated.
make: *** [/home/owner/android/system/out/target/product/p3110/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/Client.cpp:26:
In file included from frameworks/native/services/surfaceflinger/Layer.h:42:
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:57:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
instead of HWComposer being declared as a class changed it to be declared as a struct.
I wonder what android-andi did to get his android 5.0 rom to compile. I think this error is telling that surfaceflinger is broken in cm12.
the device and kernel sources I used in my attempt to compile cm12 are just the cm11 ones.
dorfd1 said:
Code:
target thumb C: sh <= external/mksh/src/eval.c
target thumb C: sh <= external/mksh/src/exec.c
target thumb C: sh <= external/mksh/src/expr.c
target thumb C: sh <= external/mksh/src/funcs.c
target thumb C: sh <= external/mksh/src/histrap.c
target thumb C: sh <= external/mksh/src/jobs.c
target thumb C: sh <= external/mksh/src/lex.c
target thumb C: sh <= external/mksh/src/main.c
target thumb C: sh <= external/mksh/src/misc.c
target thumb C: sh <= external/mksh/src/shf.c
target thumb C: sh <= external/mksh/src/syn.c
target thumb C: sh <= external/mksh/src/tree.c
target thumb C: sh <= external/mksh/src/var.c
target thumb C: showlease <= external/dhcpcd/showlease.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl.c
target arm C: smc_pa_ctrl <= hardware/ti/omap4xxx/security/smc_pa_ctrl/smc_pa_ctrl_linux.c
Import includes file: /home/owner/android/system/out/target/product/p3110/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/Client.cpp
target thumb C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayDevice.cpp
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:35:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
In file included from frameworks/native/services/surfaceflinger/DisplayDevice.cpp:39:
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: warning: class 'DisplayInfo' was previously declared as a struct [-Wmismatched-tags]
class DisplayInfo;
^
frameworks/native/include/ui/DisplayInfo.h:28:8: note: previous use is here
struct DisplayInfo {
^
frameworks/native/services/surfaceflinger/DisplayDevice.h:40:1: note: did you mean struct here?
class DisplayInfo;
^~~~~
struct
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:76:18: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
mPowerMode(HWC_POWER_MODE_OFF),
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:19: error: use of undeclared identifier 'HWC_POWER_MODE_NORMAL'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:116:43: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
HWC_POWER_MODE_NORMAL : HWC_POWER_MODE_OFF;
^
frameworks/native/services/surfaceflinger/DisplayDevice.cpp:351:27: error: use of undeclared identifier 'HWC_POWER_MODE_OFF'
return (mPowerMode != HWC_POWER_MODE_OFF);
^
2 warnings and 4 errors generated.
make: *** [/home/owner/android/system/out/target/product/p3110/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayDevice.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from frameworks/native/services/surfaceflinger/Client.cpp:26:
In file included from frameworks/native/services/surfaceflinger/Layer.h:42:
In file included from frameworks/native/services/surfaceflinger/SurfaceFlinger.h:57:
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:219:16: warning: struct 'HWComposer' was previously declared as a class [-Wmismatched-tags]
friend struct HWComposer;
^
frameworks/native/services/surfaceflinger/DisplayHardware/HWComposer.h:58:7: note: previous use is here
class HWComposer
^
I wonder what android-andi did to get his android 5.0 rom to compile. I think this error is telling that surfaceflinger is broken in cm12.
the device and kernel sources I used in my attempt to compile cm12 are just the cm11 ones.
Click to expand...
Click to collapse
Be patient, also the changes i added are highly WIP... you need to patch device, common omap 4, also kernel (to work on GCC 4.8), native etc.... better wait and don't waste your time.
Send from OnePlus One using Tapatalk
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?
I'm getting this error when trying to build any ROM on my MAC. I haven't even managed to build a single ROM due to this issue.
The code below is for the pixel experience ROM based on android 10 and the device I'm building for is the Xiaomi Redmi Note 3(kenzo).
All ROMs give me the exact same error.
Please help me guys. Really wanna learn...
The error:
Code:
PANKAJs-iMac:firstrom pankajjaiswal$ lunch aosp_kenzo-userdebug
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Trying dependencies-only mode on a non-existing device tree?
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
CUSTOM_VERSION=PixelExperience_kenzo-10.0-20200224-1205-UNOFFICIAL
TARGET_PRODUCT=aosp_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=/Volumes/android/firstrom/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8952 frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
============================================
PANKAJs-iMac:firstrom pankajjaiswal$ mka bacon -j4
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
CUSTOM_VERSION=PixelExperience_kenzo-10.0-20200224-1206-UNOFFICIAL
TARGET_PRODUCT=aosp_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=/Volumes/android/firstrom/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8952 frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
============================================
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
[100% 140/140] initializing build system ...
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
[ 24% 142/584] including art/Android.mk ...
art/build/Android.common.mk:51: warning: unsupported HOST_ARCH=x86_64
[ 59% 348/584] including hardware/qcom-caf/msm8952/Android.mk ...
hardware/qcom-caf/msm8952/media/Android.mk:4: warning: target list is : msm8952
[100% 584/584] writing build rules ...
build/make/core/base_rules.mk:495: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/[email protected]'
build/make/core/base_rules.mk:495: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/[email protected]'
build/make/core/base_rules.mk:495: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/[email protected]'
build/make/core/base_rules.mk:495: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/bin/wcnss_service'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/bin/wcnss_service'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/bin/hw/rild'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/bin/hw/rild'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/libril.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/libril.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib64/libril.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib64/libril.so'
[ 2% 1980/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:384:11: warning: unused variable 'lasts' [-Wunused-variable]
char *lasts;
^
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:385:22: warning: unused variable 'config_value' [-Wunused-variable]
loc_param_v_type config_value;
^
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:386:14: warning: unused variable 'i' [-Wunused-variable]
uint32_t i;
^
3 warnings generated.
[ 2% 1986/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/data-items/DataItemsFactoryProxy.cpp:71:79: warning: format specifies type 'unsigned int' but the argument has type 'loc_core::get_concrete_data_item_fn *' (aka 'loc_core::IDataItemCore *(*)(e_DataItemId)') [-Wformat]
LOC_LOGD("Loaded function %s : %x",DATA_ITEMS_GET_CONCRETE_DI,getConcreteDIFunc);
~~ ^~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/utils/log_util.h:110:43: note: expanded from macro 'LOC_LOGD'
#define LOC_LOGD(...) IF_LOC_LOGD { ALOGD(__VA_ARGS__); }
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:226:52: note: expanded from macro 'ALOGD'
#define ALOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__))
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:331:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:94:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:85:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
1 warning generated.
[ 2% 1987/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/loc_core_log.cpp:105:34: warning: variable 'loc_eng_aiding_data_bits' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static const loc_name_val_s_type loc_eng_aiding_data_bits[] =
^
device/xiaomi/msm8956-common/gps/core/loc_core_log.cpp:121:18: warning: unused variable 'loc_eng_aiding_data_bit_num' [-Wunused-const-variable]
static const int loc_eng_aiding_data_bit_num = sizeof(loc_eng_aiding_data_bits) / sizeof(loc_name_val_s_type);
^
2 warnings generated.
[ 2% 1991/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_target.cpp:216:9: warning: unused variable 'ret' [-Wunused-variable]
int ret = 0;
^
1 warning generated.
[ 2% 2008/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:985:11: warning: unused variable 'pMarker' [-Wunused-variable]
char* pMarker = sentence;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:986:9: warning: unused variable 'lengthRemaining' [-Wunused-variable]
int lengthRemaining = sizeof(sentence);
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:987:9: warning: unused variable 'length' [-Wunused-variable]
int length = 0;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:989:9: warning: unused variable 'sentenceCount' [-Wunused-variable]
int sentenceCount = 0;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:990:9: warning: unused variable 'sentenceNumber' [-Wunused-variable]
int sentenceNumber = 1;
^
5 warnings generated.
[ 2% 2024/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1423:37: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusNetworkInfo *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusNetworkInfo* data = reinterpret_cast<SystemStatusNetworkInfo*>(dataitem);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1423:37: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusNetworkInfo* data = reinterpret_cast<SystemStatusNetworkInfo*>(dataitem);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1570:12: warning: 26 enumeration values not handled in switch: 'INVALID_DATA_ITEM_ID', 'AIRPLANEMODE_DATA_ITEM_ID', 'ENH_DATA_ITEM_ID'... [-Wswitch]
switch(dataitem->getId())
^
2 warnings generated.
[ 2% 2034/80076] target C++: libgnss <= device/xiaomi/msm8956-common/gps/gnss
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:205:33: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusNetworkInfo *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
reinterpret_cast<SystemStatusNetworkInfo*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:205:33: note: use 'static_cast' to adjust the pointer correctly while downcasting
reinterpret_cast<SystemStatusNetworkInfo*>(each);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:213:48: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusTac *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusTac* tac = reinterpret_cast<SystemStatusTac*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:213:48: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusTac* tac = reinterpret_cast<SystemStatusTac*>(each);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:220:54: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusMccMnc *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusMccMnc* mccmnc = reinterpret_cast<SystemStatusMccMnc*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:220:54: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusMccMnc* mccmnc = reinterpret_cast<SystemStatusMccMnc*>(each);
^~~~~~~~~~~~~~~~
static_cast
3 warnings generated.
[ 2% 2036/80076] target C++: liblocation_api <= device/xiaomi/msm8956-common/
device/xiaomi/msm8956-common/gps/location/LocationAPIClientBase.cpp:156:18: warning: unused variable 'session' [-Wunused-variable]
uint32_t session = 0;
^
1 warning generated.
[ 3% 2406/80076] target C: libwpa_client <= external/wpa_supplicant_8/wpa_sup
external/wpa_supplicant_8/wpa_supplicant/src/common/wpa_ctrl.c:291:9: warning: 'readdir_r' is deprecated: readdir_r is deprecated; use readdir instead [-Wdeprecated-declarations]
while (readdir_r(dir, &entry, &result) == 0 && result != NULL) {
^
bionic/libc/include/dirent.h:83:92: note: 'readdir_r' has been explicitly marked deprecated here
int readdir_r(DIR* __dir, struct dirent* __entry, struct dirent** __buffer) __attribute__((__deprecated__("readdir_r is deprecated; use readdir instead")));
^
1 warning generated.
[ 3% 2447/80076] Building Kernel Config
FAILED: /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config
/bin/bash -c "(PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= lineageos_kenzo_defconfig ) && (if [ ! -z \"\" ]; then echo \"Overriding kernel config with ''\"; echo >> /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config; PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" oldconfig; fi ) && (PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" savedefconfig ) && (if [ ! -z \"\" ]; then echo \"Using additional config ''\"; kernel/xiaomi/msm8956/scripts/kconfig/merge_config.sh -m -O /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config kernel/xiaomi/msm8956/arch/arm64/configs/; PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" KCONFIG_ALLCONFIG=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
GEN /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/basic/fixdep
couldn't understand kern.osversion `17.7.0'
i686-apple-darwin11-gcc: error trying to exec 'as': execvp: No such file or directory
make[2]: *** [scripts/Makefile.host:118: scripts/basic/fixdep] Error 1
make[1]: *** [/Volumes/android/firstrom/kernel/xiaomi/msm8956/Makefile:425: scripts_basic] Error 2
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
17:49:38 ninja failed with: exit status 1
#### failed to build some targets (13:45 (mm:ss)) ####
PANKAJs-iMac:firstrom pankajjaiswal$
Seppppx said:
I don't know what the error means, but this is the error.
KCONFIG_ALLCONFIG=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
GEN /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/basic/fixdep
couldn't understand kern.osversion `17.7.0'
i686-apple-darwin11-gcc: error trying to exec 'as': execvp: No such file or directory
make[2]: *** [scripts/Makefile.host:118: scripts/basic/fixdep] Error 1
make[1]: *** [/Volumes/android/firstrom/kernel/xiaomi/msm8956/Makefile:425: scripts_basic] Error 2
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
17:49:38 ninja failed with: exit status 1
#### failed to build some targets (13:45 (mm:ss))
Click to expand...
Click to collapse
Ye ik,
i686-apple-darwin11-gcc: error trying to exec 'as': execvp: No such file or directory
But I can't figure out why, I know some people that compilation on Catalina is not broken. I'm running High Sierra tho
Can someone help?
Bro did u solve it?
0
Hello everyone!
I am trying to build CyanogenMod 12 for Motorola Milestone 2. I have downloaded CM12 and built a tree of device. When I run build I get error:
Bash:
target thumb C++: libvold <= system/vold/VoldCommand.cpp
arm-linux-androideabi-g++: error: ": No such file or directory
target thumb C++: libvold <= system/vold/NetlinkManager.cpp
make: *** [build/core/binary.mk:616: /home/bars/e/working_directory/out/target/product/milestone2/obj/STATIC_LIBRARIES/libvold_intermediates/VoldCommand.o] Ошибка 1
make: *** Ожидание завершения заданий…
arm-linux-androideabi-g++: error: ": No such file or directory
make: *** [build/core/binary.mk:616: /home/bars/e/working_directory/out/target/product/milestone2/obj/STATIC_LIBRARIES/libvold_intermediates/NetlinkManager.o] Ошибка 1
target thumb C++: libvold <= system/vold/NetlinkHandler.cpp
arm-linux-androideabi-g++: error: ": No such file or directory
make: *** [build/core/binary.mk:616: /home/bars/e/working_directory/out/target/product/milestone2/obj/STATIC_LIBRARIES/libvold_intermediates/NetlinkHandler.o] Ошибка 1
#### make failed to build some targets (03:04 (mm:ss)) ####
Help me please! I can't understand what I need do. Sorry for my English.
I'm not 100% sure about CyanogenMod, but on AOSP builds you have to set CROSS_COMPILE.
Try setting CROSS_COMPILE to the full path to the the gcc prebuilt from AOSP. Or your distro may have one that's compatable. You can try installing gcc/g++ from you package manager and then setting CROSS_COMPILE to that.