cm12 build for one plus failed - android

I am trying to build cm12 for One Plus. But I get the following error and the build process stops. I checked CM12 build failed for oneplus one also. Can anyone please help? I used
1). build/envsetup.sh
2)brunch bacon
make[1]: Entering directory '/home/xyz/Codes/CM12/kernel/oneplus/msm8974'
make: *** No rule to make target '/home/xyz/Codes/CM12/out/host/linux-x86/bin/dtbToolCM', needed by '/home/xyz/Codes/CM12/out/target/product/bacon/dt.img'. Stop.

Got the answer from XDA. Need to get device/qcom/common by cloning https://github.com/CyanogenMod/android_device_qcom_common .
This link helped me
Link To XDA answer

Related

recipe for target 'ninja_wrapper' failed / flex core dumps

First time android builder here. I used to do a lot of roll your own back on FreeBSD in the day. Getting back into geekdom with android.
I am trying to build android-7.0.0_r14 for the Nexus 6 NBD90Z to run under emulation. I plan to eventually build for my actual phone and this config is pretty close. I am building on ubuntu 18.04 LTS which is newer than what the docs recommend. Maybe that is a bit adventurous.
Here is what I get when I run make.
... snip
build/core/base_rules.mk:316: warning: ignoring old commands for target
out/target/product/shamu/system/lib/soundfx/libqcomvoiceprocessing.so'
Starting build with ninja
ninja: Entering directory.'
ninja: warning: multiple rules generate out/target/product/shamu/system/etc/gps.conf. builds involving this target will not be correct; continuing anyway [-w dupbuild=warn]
[ 0% 1/35600] Lex: libaidl-common <= system/tools/aidl/aidl_language_l.ll
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/flex/flex-2.5.39 -oout/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp system/tools/aidl/aidl_language_l.ll"
flex-2.5.39: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
Aborted (core dumped)
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
A core dump for flex was not produced in spite of the error message given.
out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_l.cpp does not exist. That entire folder is empty. It would seem that something is not downloading/copying the aidl_language_l.cpp.
Any ideas on what I might have messed up?
I am still a little confused at the complexity of git/repo/make/ninja/soong/lunch to conduct a build. It is likely that I missed something obvious.
Thanks,
Jason C. Wells
Just replace your make by export LC_ALL=C make or put the export in your .bashrc
After I looked at this a little closer I realized the prebuilt prebuilts/misc/linux-x86/flex/flex-2.5.39 would dump core with no arguments. I created a soft link to /usr/bin/flex. Compilation seems to be proceeding.
I haven't answered why the prebuilt was dumping. My goal is to compile android, not troubleshoot the tools.
I performed Snorky's steps. I deleted my output directory for libaidl-common_intermediates. I deleted my soft link and restored the android tree version of flex. I re-ran make at the top of the local repo. The build proceeded past the error above and stopped at a new error. It appears that Snorky's answer worked.
Doh! I'm new so S.O. didn't give credit for my upvote.

How to solve this error Lineage 14.1 buld for morotola moto c

I tried building LOS14.1 from sources using this tutorial, but I encountered a problem. When the build starts, the following error appears:
device/motorola/namath/wpa_supplicant_8_lib/Android.mk:22: build BASIC wpa_supplicant
find: '/home/serveruser/hdd1/archive/motoc_lineage_14.1/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory
build/core/base_rules.mk:183: *** vendor/motorola/namath: MODULE.TARGET.STATIC_LIBRARIES.libstagefright_color_conversion already defined by frameworks/av/media/libstagefright/colorconversion.
build/core/ninja.mk:166: recipe for target '/home/serveruser/hdd1/archive/motoc_lineage_14.1/out/build-lineage_namath.ninja' failed
make: *** [/home/serveruser/hdd1/archive/motoc_lineage_14.1/out/build-lineage_namath.ninja] Error 1
I already tried stuff like export LC_ALL=C, but it didn't help...
I used the wrong device branch (GitHub). =)

Building Android 7 from sources: export_includes and import_includes related error

I encountered the following error when I tried to build Android 7 (QAEP from codeaurora.org):
ninja: error:
'out/target/product/msm8916_64/obj_arm/SHARED_LIBRARIES/
libqct_resampler_intermediates/export_includes', needed by
'out/target/product/msm8916_64/obj_arm/SHARED_LIBRARIES/
libaudioresampler_intermediates/import_in',
missing and no known rule to make it
make: *** [build/core/ninja.mk:149: ninja_wrapper] Error 1
I did a quick find for *qct* and *audioresampler*. The first one returned only a few source files from the vendor wlan driver, but no library (e.g. libqct directory). And the second returned nothing at all.
What does this error mean? Are there missing modules, that are referenced but not included in the manifest?
Any help is appreciated.

Errors when building AOSP using -make

I am trying to setup an environment to build android and run it on an emulator. I've gotten into AOSP very recently and currently reading a few books about it. Wanting to mess around with it myself I got the following error:
external/libcxx/include/cmath:1345:9: error: no member named 'llrint' in the global namespace; did you mean 'lrint'?
external/libcxx/include/cmath:1348:91: error: use of undeclared identifier 'llrintf'
external/libcxx/include/cmath:1349:91: error: use of undeclared identifier 'llrintl'
external/libcxx/include/cmath:1358:9: error: no member named 'llround' in the global namespace; did you mean 'lround'?
12 errors generated.
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/hash.o] Error 1
make: *** Waiting for unfinished jobs....
12 errors generated.
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/debug.o] Error 1
12 errors generated.
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/random.o] Error 1
12 errors generated.
make: *** [out/host/darwin-x86/obj/STATIC_LIBRARIES/libc++_static_intermediates/src/algorithm.o] Error 1
In total twelve of these errors, with text in between but I haven't copied them all because they are quite the same. (all of them are: error no member named "{double L}[SOMETHING]"; did you mean: {single L}[SOMETHING])
This is the result of running: 1: source build/envsetup.sh 2: lunch 3: sudo make -j4
I am using El Capitan and have followed the official instructions. The only problem I encountered was that XCode didn't create a /developer/SDKs folder with the proper SDK in it so I manually downloaded the SDK from Github and put it in de SDKs folder (which I made). Is it possible that this is the problem?
The code that I am trying to build is un-modified android 6.0.1_r1. I tried running repo-init and repo sync again (to maybe fix the code) but with no effect.
I realise it's quite a stretch to ask, but I have no clue how to fix this. Thanks in advance.
you can try to use MacOSX10.11.sdk as your MacOSX-SDK
you can download MacOSX10.11.sdk from GitHub: https://github.com/phracker/MacOSX-SDKs
copy the MacOSX10.11.sdk to a particular path(such as ~/lib) and create a soft link to /Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
$ ln -s ~/lib/MacOSX10.11.sdk /Applications/XCode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk
(I also copy the MacOSX10.11.sdk to /Developer/SDKs/)
and modify the file int android source code: build/core/combo/mac_version.mk
mac_sdk_versions_supported := 10.9 10.10 10.11
done!
try to compile the source code again!
OS: macOS Sierra 10.12
Android Source Code: android6.0.1_r1C
XCode: Version 8.2.1
JDK: java version "1.8.0_101"

Compiling Android from source, "no rule to make target" tbToolCM error

I'm trying to help out a friend of mine by compiling a ROM for the Samsung Galaxy Grand 2 (ms013g).
make: *** No rule to make target
'/home/quiche/cmsource/out/host/linux-x86/bin/dtbToolCM' needed by
'/home/quic/out/target/product/ms013g/dt.img '.
I keep getting this error i cannot fix, i tried the fix described here: CM12 build failed for oneplus one
and i also made sure android_device_qcom_common is in my local_manifest.xml.
Somewere else, someone suggested changing dtbToolCM to dtbTool, which i tried to no avail.
Seems like You need to add suitable kernel project to your local manifest
Downloading of android_kernel_samsung_klte project helped to me (I was building device_samsung_klte)
Please try this to add below to your Device.mk
BOARD_KERNEL_SEPARATED_DT :=true
Please see Android.mk for dtbtool.
Thank you.

Categories

Resources