[Q] Cannot compile Android L branch from AOSP: wrong binaries? - Nexus 7 (2013) Q&A

I am trying to compile the Android L preview branch from AOSP for the Nexus 7 (flo), I get this error:
hardware/qcom/wlan/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c:65: error: undefined reference to 'os_strncpy'
collect2: error: ld returned 1 exit status
make: *** [out/target/product/flo/obj/EXECUTABLES/hostapd_intermediates/LINKED/hostapd] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
I have the preview binaries installed from the official page. I can confirm I have sub-folders in vendor named flo and it contains the binaries.
I have executed make clobber as well before building it again.
Are the preview binaries only for the master branch and not for the l-preview branch?

Related

Recovery too large HELP

Hello All,
I am trying to build cm 10.2 using Pons device tree and Tinys jb43 kernel. Everything builds fine up to building the recovery image then I get this error...----- Making recovery image ------
Copying: /home/lce67/CM10.2/out/target/common/obj/JAVA_LIBRARIES/android-support-v4-ics_intermediates/classes-jarjar.jar
target Symbolic: libutils (/home/lce67/CM10.2/out/target/product/inc/symbols/system/lib/libutils.so)
target Strip: libdvm (/home/lce67/CM10.2/out/target/product/inc/obj/lib/libdvm.so)
/home/lce67/CM10.2/out/target/product/inc/recovery.img maxsize=4595712 blocksize=135168 total=4618240 reserve=270336
error: /home/lce67/CM10.2/out/target/product/inc/recovery.img too large (4618240 > [4866048 - 270336])
make: *** [/home/lce67/CM10.2/out/target/product/inc/recovery.img] Error 1
make: *** Deleting file `/home/lce67/CM10.2/out/target/product/inc/recovery.img'
make: *** Waiting for unfinished jobs....
I have read about changing the recovery size in the boardconfig file but would like more info before changing partition sizes..
lce67 said:
Hello All,
I am trying to build cm 10.2 using Pons device tree and Tinys jb43 kernel. Everything builds fine up to building the recovery image then I get this error...----- Making recovery image ------
Copying: /home/lce67/CM10.2/out/target/common/obj/JAVA_LIBRARIES/android-support-v4-ics_intermediates/classes-jarjar.jar
target Symbolic: libutils (/home/lce67/CM10.2/out/target/product/inc/symbols/system/lib/libutils.so)
target Strip: libdvm (/home/lce67/CM10.2/out/target/product/inc/obj/lib/libdvm.so)
/home/lce67/CM10.2/out/target/product/inc/recovery.img maxsize=4595712 blocksize=135168 total=4618240 reserve=270336
error: /home/lce67/CM10.2/out/target/product/inc/recovery.img too large (4618240 > [4866048 - 270336])
make: *** [/home/lce67/CM10.2/out/target/product/inc/recovery.img] Error 1
make: *** Deleting file `/home/lce67/CM10.2/out/target/product/inc/recovery.img'
make: *** Waiting for unfinished jobs....
I have read about changing the recovery size in the boardconfig file but would like more info before changing partition sizes..
Click to expand...
Click to collapse
OK got it..Changed back to evervolv kernel source... built and runs fine...Tinys kernel built out at 2.3MB evervolv built out 1.9MB just enough to make the build...

CM 12 build error

I get following error when building on Ubuntu 14.04.1 64 bit I got my properity files from https://github.com/TheMuppets/proprietary_vendor_htc
make: *** No rule to make target `/home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_m8_intermediates/libinit_m8.a', needed by `/home/cpatrick08/android/system/out/target/product/m8/obj/EXECUTABLES/init_intermediates/LINKED/init'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libext4_utils_static_intermediates/import_includes
CM m12 Build error
cpatrick08 said:
I get following error when building on Ubuntu 14.04.1 64 bit I got my properity files from https://github.com/TheMuppets/proprietary_vendor_htc
make: *** No rule to make target `/home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_m8_intermediates/libinit_m8.a', needed by `/home/cpatrick08/android/system/out/target/product/m8/obj/EXECUTABLES/init_intermediates/LINKED/init'. Stop.
make: *** Waiting for unfinished jobs....
Import includes file: /home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libext4_utils_static_intermediates/import_includes
Click to expand...
Click to collapse
Now when I try to build CM 12 for my HTC One M8 Phone on Ubuntu 14.04.1LTS 64 bit I Get following error message. I got properity files from https://github.com/TheMuppets/proprietary_vendor_htc
make: *** No rule to make target `/home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libinit_m8_intermediates/export_includes', needed by `/home/cpatrick08/android/system/out/target/product/m8/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
Export includes file: external/compiler-rt/Android.mk -- /home/cpatrick08/android/system/out/target/product/m8/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes
touch /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
echo '#ifndef 'policy_parse_h > /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
cat /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> /home/cpatrick08/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h

[Q]Noob trying to build CM13

Hey guys I am new to compiling from source. I am not looking to build a fully working version of CM13 i am trying to broadan my knowledge. I have got previose experiance in linux but not in source building. I know that I should have probably started with a version of CM that is already supported but I thought I would jump in the deap end.
I am trying to compile CM13 but keep getting this error. can anyone shed some light of where I am going wrong and what I can possibly do to fix it?
I used this tree
https://github.com/CyanogenMod/android_device_samsung_serrano3gxx/tree/cm-13.0
@k2wl
 @F4k
 @F4uzan
@aidasaidas75
 @GeekyDroid
 @freeusername
@Asce1062
 @bkr32
@AngSanley
@-CALIBAN666-
Code:
target thumb C++: gralloc.msm8960 <= hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp
hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp: In constructor 'gralloc::gpu_context_t::gpu_context_t(const private_module_t*, gralloc::IAllocController*)':
hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp:49:5: error: 'allocSize' was not declared in this scope
allocSize = gralloc_alloc_size;
^
hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp: At global scope:
hardware/qcom/display-caf/msm8960/libgralloc/gpu.cpp:172:60: warning: unused parameter 'size' [-Wunused-parameter]
int gpu_context_t::gralloc_alloc_framebuffer_locked(size_t size, int usage,
^
make: *** [/home/andre/CM13/out/target/product/serrano3gxx/obj/SHARED_LIBRARIES/gralloc.msm8960_intermediates/gpu.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/andre/CM13'
ok I think I fixed it by cherry picking
http://review.cyanogenmod.org/#/c/113774/
Interesting. Have you got it to boot yet?

Error building cm12.1 for note 4 tmobile on mac 10.11 el capitan - error: Unknown...

Don't know if this is the right place to post this. But I'm trying to build cm12.1 for my tmobile note 4. I'm using a imac running os x 10.11 (el capitan). I'm getting the following error about the macosx-version-min. Has anyone seen this? I've got updates that include 10.10 and 10.11 version is the build/core/combo/HOST_darwin_x86*.mk files. I've also add 10.10 and 10.11 to mac_sdk_versions_supported in build/core/combo/mac_version.mk. Not sure where else to look.
$brunch trltetmo
....
host C: libmincrypt_32 <= system/core/libmincrypt/p256_ec.c
<built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min
<built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min<built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min
<built-in>:0: error: Unknown value ‘10.11’ of -mmacosx-version-min
make: *** [/Volumes/androidtouro/cm121/out/host/darwin-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/dsa_sig.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [/Volumes/androidtouro/cm121/out/host/darwin-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/p256.o] Error 1
make: *** [/Volumes/androidtouro/cm121/out/host/darwin-x86/obj32/EXECUTABLES/mkbootimg_intermediates/mkbootimg.o] Error 1
make: *** [/Volumes/androidtouro/cm121/out/host/darwin-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/p256_ec.o] Error 1
This was output running 'brunch trltetmo'.
Solved this issue by switching to 10.9 mac osx sdk. I also had to add this link:
ln -s /usr/lib/crt1.10.6.o /Developer/SDKs/MacOSX10.9.sdk/usr/lib/crt1.10.6.o.
Finally got my first cm12.1 build completed for tmobile note 4 on a new iMac. It boots and am running it now. Guess I can try again to build cm13 soon. cm13 gave me more problems.

Need help building Paranoid

I'm trying to build paranoid android from source, using a CM12.1 device tree. Here's the link:https://github.com/valascus/android_device_elephone_p8000
I've already tried to modify some things... no sucess.
It gives me this error when i try to lunch:
Code:
lunch cm_p8000-user
build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_p8000". Stop.
WARNING: Trying to fetch a device that's already there
WARNING: device/elephone/p8000/pa.dependencies file not found
build/core/product_config.mk:233: *** Can not locate config makefile for product "cm_p8000". Stop.
** Don't have a product spec for: 'cm_p8000'
And this one when i try to build directly:
Code:
build/core/envsetup.mk:158: *** No config file found for TARGET_DEVICE . Stop.
WARNING: Trying to fetch a device that's already there
WARNING: device/elephone/p8000/pa.dependencies file not found
build/core/envsetup.mk:158: *** No config file found for TARGET_DEVICE . Stop.
** Don't have a product spec for: 'pa_p8000'
** Do you have the right repo manifest?
Starting compilation
build/core/product_config.mk:252: *** No matches for product "full". Stop.
Any clue?
Someone???
Still nobody.... Jesus...
It appears you're trying to build a cm build rather than a PA build, but I have to ask, why the hell are you trying to build with code that's well over a year old and unfinished?

Categories

Resources