{All 2011}[GUIDE][DEV] How to build CyanogenMod 12.1

Search This thread

azam426

Senior Member
Sep 26, 2011
323
591
Hi Guyz, I am building CM14 ,
i got this error when i try to build for IYOKAN..
Note : anzu built fine without errors..
any helps please?
System : i7-3770K / 16GB RAM / 256GB SSD / Ubuntu 16.04


EDIT : FIXED IT. BUILD SUCCESSFULL.
problem was iyokan file's 1 line not complete. i just disabled it.
 
Last edited:
Success...

Finally, built succeeded normally using
brunch
because with
make -j1 bacon
I was getting this error:
Code:
FAILED: /bin/bash -c "(rm -f /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes-full-debug.jar ) && (rm -rf /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes ) && (mkdir -p /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/ ) && (mkdir -p /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes ) && (for f in ; do if [ ! -f \$f ]; then echo Missing file \$f; exit 1; fi; unzip -qo \$f -d /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes; done ) && (rm -rf /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/META-INF ) && (rm -f /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list ) && (touch /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list ) && (echo -n 'vendor/cmsdk/sdk/src/java/cyanogenmod/alarmclock/ClockContract.java vendor/cmsdk/sdk/src/java/cyanogenmod/alarmclock/CyanogenModAlarmClock.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/BaseLiveLockManagerService.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/CMContextConstants.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/CMStatusBarManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/CMTelephonyManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/CustomTile.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/CustomTileListenerService.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/LiveLockScreenInfo.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/LiveLockScreenManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/PartnerInterface.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/Profile.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/ProfileGroup.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/ProfileManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/StatusBarPanelCustomTile.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/ThemeComponent.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/ThemeVersion.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/suggest/AppSuggestManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/app/suggest/ApplicationSuggestion.java vendor/cmsdk/sdk/src/java/cyanogenmod/content/Intent.java vendor/cmsdk/sdk/src/java/cyanogenmod/externalviews/ExternalView.java vendor/cmsdk/sdk/src/java/cyanogenmod/externalviews/ExternalViewProperties.java vendor/cmsdk/sdk/src/java/cyanogenmod/externalviews/ExternalViewProviderService.java vendor/cmsdk/sdk/src/java/cyanogenmod/externalviews/KeyguardExternalView.java vendor/cmsdk/sdk/src/java/cyanogenmod/externalviews/KeyguardExternalViewProviderService.java vendor/cmsdk/sdk/src/java/cyanogenmod/hardware/CMHardwareManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/hardware/DisplayMode.java vendor/cmsdk/sdk/src/java/cyanogenmod/hardware/HSIC.java vendor/cmsdk/sdk/src/java/cyanogenmod/hardware/LiveDisplayConfig.java vendor/cmsdk/sdk/src/java/cyanogenmod/hardware/LiveDisplayManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/hardware/ThermalListenerCallback.java vendor/cmsdk/sdk/src/java/cyanogenmod/media/AudioSessionInfo.java vendor/cmsdk/sdk/src/java/cyanogenmod/media/CMAudioManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/media/MediaRecorder.java vendor/cmsdk/sdk/src/java/cyanogenmod/os/Build.java vendor/cmsdk/sdk/src/java/cyanogenmod/os/Concierge.java vendor/cmsdk/sdk/src/java/cyanogenmod/power/PerformanceManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/power/PerformanceManagerInternal.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/CMGlobalSettingSwitchPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/CMSecureSettingListPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/CMSecureSettingSwitchPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/CMSystemSettingListPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/CMSystemSettingSwitchPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/ConstraintsHelper.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingListPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SelfRemovingSwitchPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/preference/SystemSettingSwitchPreference.java vendor/cmsdk/sdk/src/java/cyanogenmod/profiles/AirplaneModeSettings.java vendor/cmsdk/sdk/src/java/cyanogenmod/profiles/BrightnessSettings.java vendor/cmsdk/sdk/src/java/cyanogenmod/profiles/ConnectionSettings.java vendor/cmsdk/sdk/src/java/cyanogenmod/profiles/LockSettings.java vendor/cmsdk/sdk/src/java/cyanogenmod/profiles/RingModeSettings.java vendor/cmsdk/sdk/src/java/cyanogenmod/profiles/StreamSettings.java vendor/cmsdk/sdk/src/java/cyanogenmod/providers/CMSettings.java vendor/cmsdk/sdk/src/java/cyanogenmod/providers/DataUsageContract.java vendor/cmsdk/sdk/src/java/cyanogenmod/providers/ThemesContract.java vendor/cmsdk/sdk/src/java/cyanogenmod/providers/WeatherContract.java vendor/cmsdk/sdk/src/java/cyanogenmod/themes/ThemeChangeRequest.java vendor/cmsdk/sdk/src/java/cyanogenmod/themes/ThemeManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/util/ColorUtils.java vendor/cmsdk/sdk/src/java/cyanogenmod/weather/CMWeatherManager.java vendor/cmsdk/sdk/src/java/cyanogenmod/weather/RequestInfo.java vendor/cmsdk/sdk/src/java/cyanogenmod/weather/WeatherInfo.java vendor/cmsdk/sdk/src/java/cyanogenmod/weather/WeatherLocation.java vendor/cmsdk/sdk/src/java/cyanogenmod/weather/util/WeatherUtils.java vendor/cmsdk/sdk/src/java/cyanogenmod/weatherservice/ServiceRequest.java vendor/cmsdk/sdk/src/java/cyanogenmod/weatherservice/ServiceRequestResult.java vendor/cmsdk/sdk/src/java/cyanogenmod/weatherservice/WeatherProviderService.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/ICMStatusBarManager.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/ICMTelephonyManager.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/ICustomTileListener.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/ILiveLockScreenChangeListener.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/ILiveLockScreenManager.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/ILiveLockScreenManagerProvider.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/IPartnerInterface.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/IProfileManager.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/IStatusBarCustomTileHolder.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/suggest/IAppSuggestManager.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/app/suggest/IAppSuggestProvider.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/externalviews/IExternalViewProvider.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/externalviews/IExternalViewProviderFactory.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/externalviews/IKeyguardExternalViewCallbacks.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/externalviews/IKeyguardExternalViewProvider.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/hardware/ICMHardwareService.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/hardware/ILiveDisplayService.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/hardware/IThermalListenerCallback.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/media/ICMAudioService.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/power/IPerformanceManager.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/themes/IThemeChangeListener.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/themes/IThemeProcessingListener.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/themes/IThemeService.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/weather/ICMWeatherManager.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/weather/IRequestInfoListener.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/weather/IWeatherServiceProviderChangeListener.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/weatherservice/IWeatherProviderService.java /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src/sdk/src/java/cyanogenmod/weatherservice/IWeatherProviderServiceClient.java /home/azakosath/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/R.java /home/azakosath/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java ' >> /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list ) && (if [ -d \"/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src\" ]; then find /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/src -name '*.java' -and -not -name '.*' >> /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list; fi ) && (tr ' ' '\\n' < /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list | build/tools/normalize_path.py | sort -u > /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list-uniq ) && (if [ -s /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list-uniq ] ; then javac -J-Xmx1024M -Xmaxerrs 9999999 -encoding UTF-8  -bootclasspath /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar -classpath /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/android-support-v14-preference_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-preference_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/core-oj_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jar:/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/core-lambda-stubs_intermediates/classes.jar  -extdirs \"\" -d /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes -g  -source 1.8 -target 1.8 \\@/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list-uniq 2>/home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/stderr && ( [ -s /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/stderr ] && echo \"\`cat /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/stderr\`\" 1>&2; rm -f /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/stderr ) || ( [ -s /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/stderr ] && echo \"\`cat /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/stderr\`\" 1>&2; rm -rf /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes; exit 41 ) fi ) && (rm -f /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list ) && (rm -f /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes/java-source-list-uniq ) && (jar -cf /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes-full-debug.jar -C /home/azakosath/android/system/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates/classes . )"
javac: file not found: /home/azakosath/android/system/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates/src/cyanogenmod/platform/Manifest.java
Usage: javac <options> <source files>
use -help for a list of possible options
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (27:33 (mm:ss)) ####
I did repo sync last night and used these changes
Code:
# sad selinux 2002
cherries+=(CM_164156)

# 
bionic: fix scorpion architecture
cherries+=(CM_164630)

# policy_hal: Update for N
cherries+=(LX_1353)

# msm7x30: add imgdiff dependency
cherries+=(LX_1383)
Now, I'm back to CM13.0, the only things I noticed with CM14.0 (for now) is that boot is broken and you have to flash boot.img every time and use fastboot reboot and SIM card is not detected.
S7Ng8Fq.gif

tumblr_inline_o6njvixKc11t3uozi_500.gif
 

Attachments

  • Screenshot_20161005-144913.png
    Screenshot_20161005-144913.png
    24.8 KB · Views: 141
Ya boot.img is worked on actually ;)

Gesendet von meinem GT-I8190 mit Tapatalk
That's good news! Any ideas about broken RIL? Are you aware about it? Does the last commit (LX_1381) have to do anything with it, or it was just my built? I remember that under Baseband Version it was showing "Unknown"!

Sent from my WT19i using XDA Labs
 
Last edited:

azam426

Senior Member
Sep 26, 2011
323
591

umaturman

Senior Member
Mar 1, 2016
103
39
suspend_backoff

Hello again :)
Has anyone experienced major battery drain with your builds? I have it for around five months - LX13/LX14 sources + default overclock @1.4.

dmesg:
Code:
PM: suspend entry 2016-10-16 03:06:41.300965989 UTC
[14638.256160] PM: Preparing system for mem sleep
[14638.256191] Freezing user space processes ... (elapsed 0.01 seconds) done.
[14638.275905] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.
[14638.297603] PM: Entering mem sleep
[14638.297664] Suspending console(s) (use no_console_suspend to debug)
[14638.332973] wilink_suspend
[14638.340297] ldo13: Failed to create debugfs directory
[14638.360622] PM: suspend of devices complete after 61.057 msecs
[14638.362209] PM: late suspend of devices complete after 1.494 msecs
[14638.364437] active wake lock rpc_read
[14638.364559] dpm_run_callback(): power_suspend_late+0x0/0x5c returns -11
[14638.364620] PM: Device power.0 failed to suspend noirq: error -11
[14638.365993] PM: noirq resume of devices complete after 1.250 msecs
[14638.368312] PM: early resume of devices complete after 1.433 msecs
[14638.368343] PM: Some devices failed to power down
[14638.370113] ldo13: Failed to create debugfs directory
[14638.396968] wilink_resume
[14638.412227] PM: resume of devices complete after 43.739 msecs
[14638.423854] PM: Finishing wakeup.
[14638.423915] Restarting tasks ... done.
[14638.470577] PM: suspend exit 2016-10-16 03:06:42.072033748 UTC

bbs:
Code:
============
Battery Info
============
Level lost [%]: Bat.: -55%(82% to 27%) [6.9%/h]
Voltage lost [mV]: (3911-3634) [34.8%/h]
===========
Other Usage
===========
Deep Sleep (): 3 h 56 m 18 s  49.4%
Awake (Screen Off) (): 3 h 43 m 53 s  46.8%
Screen On (): 18 m 24 s  3.8%
Wifi On (): 7 h 58 m 34 s  100.0%
Wifi Running (): 49 m 9 s  10.3%
Doze Interactive Time (): 18 m 22 s  3.8%
Sync (): 1 m 50 s  0.4%
Screen dark (): 32 s  0.1%
Screen dimmed (): 10 s  0.0%
Screen medium (): 8 m 50 s  1.8%
Screen light (): 8 m 51 s  1.9%

================
Kernel Wakelocks 
================
"suspend_backoff" (): 2 h 41 m 8 s  Cnt:(c/wc/ec)968/0/968 33.7%
"rpc_read" (): 38 m 35 s  Cnt:(c/wc/ec)203160/0/0 8.1%
"mmc0" (): 9 m 8 s  Cnt:(c/wc/ec)9227/0/9227 1.9%
"PowerManagerService.WakeLocks" (): 6 m 33 s  Cnt:(c/wc/ec)299/0/0 1.4%
"rpc-interface" (): 4 m 40 s  Cnt:(c/wc/ec)194568/0/0 1.0%
"rpc_reply" (): 4 m 10 s  Cnt:(c/wc/ec)203171/0/0 0.9%
"rx_wake" (): 3 m 2 s  Cnt:(c/wc/ec)282/0/282 0.6%
"rpcrotuer_smd_xprt" (): 2 m 10 s  Cnt:(c/wc/ec)313120/7446/0 0.5%
"GPS" (): 2 m 4 s  Cnt:(c/wc/ec)202629/0/0 0.4%
"event0-952" (): 1 m 54 s  Cnt:(c/wc/ec)9675/0/0 0.4%
"event1-952" (): 1 m 52 s  Cnt:(c/wc/ec)9695/1/0 0.4%
"event2-952" (): 1 m 51 s  Cnt:(c/wc/ec)19096/0/0 0.4%
"event6-952" (): 1 m 51 s  Cnt:(c/wc/ec)9671/0/0 0.4%
"event7-952" (): 1 m 51 s  Cnt:(c/wc/ec)9671/0/0 0.4%
"alarm_rtc" (): 22 s  Cnt:(c/wc/ec)34/0/1 0.1%
"wl1271_wake" (): 6 s  Cnt:(c/wc/ec)7597/66/0 0.0%
"rpc_read" (): 4 s  Cnt:(c/wc/ec)67466/0/0 0.0%
"PowerManagerService.Broadcasts" (): 4 s  Cnt:(c/wc/ec)7/0/0 0.0%
"power-supply" (): 3 s  Cnt:(c/wc/ec)7655/0/0 0.0%
"alarm" (): 2 s  Cnt:(c/wc/ec)143/0/0 0.0%
"rpc_read" (): 2 s  Cnt:(c/wc/ec)-48/0/0 0.0%
"audio_pcm" (): 2 s  Cnt:(c/wc/ec)30/0/0 0.0%
"audpp" (): 2 s  Cnt:(c/wc/ec)30/0/0 0.0%
"KeyEvents" (): 2 s  Cnt:(c/wc/ec)29418/0/0 0.0%
"PowerManagerService.Display" ():  Cnt:(c/wc/ec)4/0/0 0.0%
"rpc_read" ():  Cnt:(c/wc/ec)7354/0/0 0.0%
"rpc_reply" ():  Cnt:(c/wc/ec)7585/0/0 0.0%
"power-supply" ():  Cnt:(c/wc/ec)62/0/0 0.0%
"mmc0_detect" ():  Cnt:(c/wc/ec)9784/0/1 0.0%
"mmc1_detect" ():  Cnt:(c/wc/ec)9784/0/1 0.0%
"rpc_reply" ():  Cnt:(c/wc/ec)125/0/0 0.0%
"qcril" ():  Cnt:(c/wc/ec)706/0/0 0.0%
 

umaturman

Senior Member
Mar 1, 2016
103
39
suspend_backoff is your culprit! The only way is to reboot. Usually it happens sometimes after unplugging from the charger, but I don't know if it starts that moment, or before during charge. I think it has been reported in the bug tracker.

Sent from my WT19i using XDA Labs

Thank you for the reply! Yes, reboot helps... for some time :/ From my observations the wakelock frequently appears after reboot via reboot option, less likely after restart via power off/power on. Not sure about the charger thing - I tested it without charging the device at all, and the wakelock still happens.
 
Last edited:
I built successfully CM14.1 last week, but now I'm getting this:
Code:
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::erase
build/core/ninja.mk:166: recipe for target '/home/azakosath/android/system/out/build-cm_coconut.ninja' failed
make: *** [/home/azakosath/android/system/out/build-cm_coconut.ninja] Aborted (core dumped)
make: Leaving directory '/home/azakosath/android/system'
The only relative I found is this and when applying this change, the build continues normally.
Does anyone else have this error?
 
  • Like
Reactions: umaturman

umaturman

Senior Member
Mar 1, 2016
103
39
I built successfully CM14.1 last week, but now I'm getting this:
Code:
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::erase
build/core/ninja.mk:166: recipe for target '/home/azakosath/android/system/out/build-cm_coconut.ninja' failed
make: *** [/home/azakosath/android/system/out/build-cm_coconut.ninja] Aborted (core dumped)
make: Leaving directory '/home/azakosath/android/system'
The only relative I found is this and when applying this change, the build continues normally.
Does anyone else have this error?

Hi! I've seen this error about a week ago. I did make-clean, synced repo and built ROM from a scratch without any errors.
However I've had no luck with booting into the recovery - got a black screen. From logs It seems that cache partition is the culprit. With this I can build a bootimage with a working recovery but ROM build fails somewhere here.
 
  • Like
Reactions: azakosath

morteza353

New member
Oct 2, 2017
1
0
cm14.1

hi guys
I'm trying to build CM14.0, but wen i commend
brunch smultron
picture.php

picture.php

this is what i exactly did
sudo gedit ~/.profile
# set PATH so it includes user’s private bin if it exists
if [ -d “$HOME/bin” ] ; then
PATH=”$HOME/bin:$PATH”
fisource ~/.profile
cd ~/android/system
repo init -u h.t.t.p.s://g.i.t.h.u.b.c.om/LineageOS/android.git -b cm-14.1
repo sync
source build/envsetup.sh
breakfast smultron


i know that im noob :D help plz
sorry for bad English
 
Last edited:

harshabyn

New member
Oct 19, 2018
4
0
Hi. I'm trying to build cm14.1 for anzu by following cm12.1 instruction. Build has failed multiple times after 15% completion. I'm using Ubuntu 16.04 in a core 2 duo machine with 4GB ram. Should I change anything in build process particularly for cm14.1? I'm suspecting it is a threading issue. Tried make -j1 bacon and make -j2 bacon but no success.
 

lanikyta29

New member
Jan 26, 2023
1
0
This thread is intended for devs & advanced users only.

Here you can learn how to build CyanogenMod 12.1 for any of the 2011 xperia devices.
I will use 'smultron' as an example device, you should replace the codename with the device you want to build.

For the first time you try to build CM12.1

Follow this guide up to "Initialize the CyanogenMod source repository" step (don't execute this step).
http://wiki.cyanogenmod.org/w/Build_for_smultron

Initialize the CyanogenMod source repository
Enter the following to initialize the repository:
Code:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1

Get the required local manifest
Code:
mkdir -p ~/android/system/.repo/local_manifests
curl https://raw.githubusercontent.com/LegacyXperia/local_manifests/cm-12.1/semc.xml > ~/android/system/.repo/local_manifests/semc.xml

Download the source code
Code:
repo sync

Setup the build environment
Code:
. build/envsetup.sh

Download some commits from CyanogenMod gerrit which are not accepted yet
Code:
ln -s vendor/extra/updates.sh updates.sh
./updates.sh

Setup the build environment & prepare the device-specific code.
Code:
cd ~/android/system
. build/envsetup.sh
breakfast smultron

Build the ROM (takes long time)
Code:
brunch smultron

If the build finishes successfully, you will find the build here (change DATE into the date):
~/android/system/out/target/product/smultron/cm-12.1-DATE-UNOFFICIAL-LegacyXperia-smultron.zip


The next times you want to build, you only need to do the following:
Sync the repositories & make sure you are using the latest local_manifest.
Code:
cd ~/android/system/
curl https://raw.githubusercontent.com/LegacyXperia/local_manifests/cm-12.1/semc.xml > ~/android/system/.repo/local_manifests/semc.xml
repo sync

Setup the build environment
Code:
. build/envsetup.sh

Download some commits from CyanogenMod gerrit which are not accepted yet
Code:
./updates.sh

Build the ROM
Code:
brunch smultron

If the build finishes successfully, you will find the build here (change DATE into the date):
~/android/system/out/target/product/smultron/cm-12.1-DATE-UNOFFICIAL-LegacyXperia-smultron.zip


Steps to build only the kernel:
Sync the repositories.
Code:
cd ~/android/system/
repo sync

Setup the environment
Code:
. build/envsetup.sh

Download some commits from CyanogenMod gerrit which are not accepted yet
Code:
./updates.sh

Build the kernel
Code:
breakfast smultron
make -j4 bootimage

If the build finishes successfully, you will find the boot image here:
~/android/system/out/target/product/smultron/boot.img

Some suggestions for faster builds:
* Enable ccache
* Use the fastest hdd on your pc to store the source, build output & ccache
* You can also buy an ssd, if it's not large enough to hold everything, just store the build output & ccache
* mount /tmp on tmpfs (RAM).

The above have greatly improved my dirty build times with removed /out/target from 1h30m to 30m.
Mounting /tmp on tmpfs made the biggest improvement for me.


Credits: Thanks to hnl_dk for the initial CM9 & CM10 guides.
someone can help me? the first step says Follow this guide up to "Initialize the CyanogenMod source repository" step (don't execute this step). and the link is broken :( this is my first time, What do I have to know? that I have to do?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    This thread is intended for devs & advanced users only.

    Here you can learn how to build CyanogenMod 12.1 for any of the 2011 xperia devices.
    I will use 'smultron' as an example device, you should replace the codename with the device you want to build.


    For the first time you try to build CM12.1
    Follow this guide up to "Initialize the CyanogenMod source repository" step (don't execute this step).
    http://wiki.cyanogenmod.org/w/Build_for_smultron

    Initialize the CyanogenMod source repository
    Enter the following to initialize the repository:
    Code:
    cd ~/android/system/
    repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1

    Get the required local manifest
    Code:
    mkdir -p ~/android/system/.repo/local_manifests
    curl https://raw.githubusercontent.com/LegacyXperia/local_manifests/cm-12.1/semc.xml > ~/android/system/.repo/local_manifests/semc.xml

    Download the source code
    Code:
    repo sync

    Setup the build environment
    Code:
    . build/envsetup.sh

    Download some commits from CyanogenMod gerrit which are not accepted yet
    Code:
    ln -s vendor/extra/updates.sh updates.sh
    ./updates.sh

    Setup the build environment & prepare the device-specific code.
    Code:
    cd ~/android/system
    . build/envsetup.sh
    breakfast smultron

    Build the ROM (takes long time)
    Code:
    brunch smultron

    If the build finishes successfully, you will find the build here (change DATE into the date):
    ~/android/system/out/target/product/smultron/cm-12.1-DATE-UNOFFICIAL-LegacyXperia-smultron.zip


    The next times you want to build, you only need to do the following:
    Sync the repositories & make sure you are using the latest local_manifest.
    Code:
    cd ~/android/system/
    curl https://raw.githubusercontent.com/LegacyXperia/local_manifests/cm-12.1/semc.xml > ~/android/system/.repo/local_manifests/semc.xml
    repo sync

    Setup the build environment
    Code:
    . build/envsetup.sh

    Download some commits from CyanogenMod gerrit which are not accepted yet
    Code:
    ./updates.sh

    Build the ROM
    Code:
    brunch smultron

    If the build finishes successfully, you will find the build here (change DATE into the date):
    ~/android/system/out/target/product/smultron/cm-12.1-DATE-UNOFFICIAL-LegacyXperia-smultron.zip


    Steps to build only the kernel:
    Sync the repositories.
    Code:
    cd ~/android/system/
    repo sync

    Setup the environment
    Code:
    . build/envsetup.sh

    Download some commits from CyanogenMod gerrit which are not accepted yet
    Code:
    ./updates.sh

    Build the kernel
    Code:
    breakfast smultron
    make -j4 bootimage

    If the build finishes successfully, you will find the boot image here:
    ~/android/system/out/target/product/smultron/boot.img

    Some suggestions for faster builds:
    * Enable ccache
    * Use the fastest hdd on your pc to store the source, build output & ccache
    * You can also buy an ssd, if it's not large enough to hold everything, just store the build output & ccache
    * mount /tmp on tmpfs (RAM).

    The above have greatly improved my dirty build times with removed /out/target from 1h30m to 30m.
    Mounting /tmp on tmpfs made the biggest improvement for me.


    Credits: Thanks to hnl_dk for the initial CM9 & CM10 guides.
    3
    Hey Mike, I tried to build CM14 and it fails. After some investigation it seems that imgdiff is missing. This was fixed on CM13: http://review.cyanogenmod.org/#/c/135193, which can't be applied to CM14 (no RECOVERY_PATCH_INSTALL).
    I hope this helps.

    I already have a cm14 zip for anzu, just unable to flash it because it's about 330MB and device runs out of memory when attempting to flash. Will try to find a solution/hack on the weekend
    2
    You also can try

    breakfast devicename

    And after that

    make -j1 bacon

    To force 1 job compiling only

    Gesendet von meinem GT-I8190 mit Tapatalk
    1
    I built successfully CM14.1 last week, but now I'm getting this:
    Code:
    terminate called after throwing an instance of 'std::out_of_range'
      what():  basic_string::erase
    build/core/ninja.mk:166: recipe for target '/home/azakosath/android/system/out/build-cm_coconut.ninja' failed
    make: *** [/home/azakosath/android/system/out/build-cm_coconut.ninja] Aborted (core dumped)
    make: Leaving directory '/home/azakosath/android/system'
    The only relative I found is this and when applying this change, the build continues normally.
    Does anyone else have this error?

    Hi! I've seen this error about a week ago. I did make-clean, synced repo and built ROM from a scratch without any errors.
    However I've had no luck with booting into the recovery - got a black screen. From logs It seems that cache partition is the culprit. With this I can build a bootimage with a working recovery but ROM build fails somewhere here.