[Nexus 6P Android Development] katinatez:
Since this is a how to build rom thread, I will go into detail about figuring compilation errors. Using your own pastebin the first error is on line 7

ERROR: /home/techvir/Pn/packages/apps/PureSettings/src/com/pure/settings/fragments/LockScreenItemsSettings.java:46: LOCK_CLOCK_FONTS

Which gives me a directory of packages/apps/PureSettings & the line where error occurs LockScreenItemsSettings.java:46: LOCK_CLOCK_FONTS

The error occurs here in the github

https://github.com/PureNexusProject...c2fd#diff-52bf295d74001474f20c4ef18e190207R46

The solution to get back to finishing building, this is copied from my terminal is to revert this commit using

git revert 44b9ca2f72a68538c22435f05812f2bc842bc2fd

[katinatez@xda PureSettings]$ git revert 44b9ca2f72a68538c22435f05812f2bc842bc2fd

[detached HEAD 26e3e86] Revert "Lockscreen Clock Widget Fonts [2/2]"

4 files changed, 1 insertion(+), 102 deletions(-)

Next error in same directory is

ERROR: /home/techvir/Pn/packages/apps/PureSettings/src/com/pure/settings/fragments/CarrierLabelSettings.java:121: ACTION_CUSTOM_CARRIER_LABEL_CHANGED

Directory packages/apps/PureSettings error CarrierLabelSettings.java:121: ACTION_CUSTOM_CARRIER_LABEL_CHANGED

github location of error

https://github.com/PureNexusProject...6b5#diff-b3d3f1f2d72c757a190b28c3e683c4b2R121

Solution

git revert e22df85ae82b9af3642788e82fe0f13d0f0316b5

[detached HEAD 51b35ff] Revert "Custom Carrier Label & Carrier Label Placement [2/2] [Squashed]"

5 files changed, 192 deletions(-)

delete mode 100644 res/xml/carrierlabel_settings.xml

delete mode 100644 src/com/pure/settings/fragments/CarrierLabelSettings.java

[katinatez@xda PureSettings]$ git revert 44b9ca2f72a68538c22435f05812f2bc842bc2fd

And lines 9-11 in pastebin are two different commits found in packages/apps/Settings

ERROR: /home/techvir/Pn/packages/apps/Settings/src/com/android/settings/nexus/DisplayRotation.java:81: ACCELEROMETER_ROTATION_ANGLES cannot be resolved or is not a field

ERROR: /home/techvir/Pn/packages/apps/Settings/src/com/android/settings/nexus/DisplayRotation.java:87: LOCKSCREEN_ROTATION cannot be resolved or is not a field

ERROR: /home/techvir/Pn/packages/apps/Settings/src/com/android/settings/nexus/DisplayRotation.java:155: ACCELEROMETER_ROTATION_ANGLES

Go to his github here

https://github.com/PureNexusProject/android_packages_apps_Settings/commits/n

and notice the only 2 commits added on

Commits on Oct 17, 2016

Add lockscreen rotation as an optional rotation setting [2/2] …

Juan Ezquerro LLanes committed with beanstown106 on Nov 24, 2015

a51a925

Configurable 0, 90, 180 and 270 degree rotation [2/2] …

This are your culprits for the remainder of errors

Solution is go into packages/apps/Settings and enter git reset --hard HEAD~1 twice or you could use

git reset --hard HEAD~2 will remove the top 2 commits

This command will remove the most frequent commit from repo, I just prefer to remove one commit at a time to see where I'm at but you could remove as many commits by just changing the numerical value at end

[katinatez@xda Settings]$ git reset --hard HEAD~1

HEAD is now at f5d7239 Configurable 0, 90, 180 and 270 degree rotation [2/2]

[katinatez@xda Settings]$ git reset --hard HEAD~1

HEAD is now at c26332f Remove duplicate permissions

[katinatez@xda Settings]$

Now build, and it will finish compiling :D

Now is it more inspiring to learn how to overcome errors instead of being told what to do?

Edit:

The reason for these errors is because beanstown106 is not done with all commits

Notice all commits reverted have [2/2] this means there is 2 commits to make this work 1 commit found in Settings and other commit found in frameworks/base

Lockscreen Clock Widget Fonts [2/2]

Custom Carrier Label & Carrier Label Placement [2/2] [Squashed]

Add lockscreen rotation as an optional rotation setting [2/2]

Configurable 0, 90, 180 and 270 degree rotation [2/2]