[Nexus 7 (2013) Android Development] iwebsource:
Hammerhead Issue

Hi guys!

Great tutorial guys, thank you!

I'm running into an issue here when trying to build Hammerhead and just wondering if anyone here has run into the same error as well.

First off, I am using repo "android-5.0.1_r1" and I have no problems building Flo and Deb, just hammerhead.

Does anyone recognize or might know what the following error is caused by?

Install: out/host/linux-x86/lib/libext2fs_host.so
[B]libsepol.context_from_record: type system_block_device is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:system_block_device:s0 to sid
out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts: line 286 has invalid context u:object_r:system_block_device:s0
libsepol.context_from_record: type recovery_block_device is not defined[/B]
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:recovery_block_device:s0 to sid
out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts: line 287 has invalid context u:object_r:recovery_block_device:s0
libsepol.context_from_record: type userdata_block_device is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:userdata_block_device:s0 to sid
out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts: line 288 has invalid context u:object_r:userdata_block_device:s0
libsepol.context_from_record: type metadata_block_device is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:metadata_block_device:s0 to sid
out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts: line 289 has invalid context u:object_r:metadata_block_device:s0
libsepol.context_from_record: type cache_block_device is not defined
libsepol.context_from_record: could not create context structure
libsepol.context_from_string: could not create context structure
libsepol.sepol_context_to_sid: could not convert u:object_r:cache_block_device:s0 to sid
out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts: line 290 has invalid context u:object_r:cache_block_device:s0
Invalid context file found in out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts
make: *** [out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts] Error 5
make: *** Deleting file `out/target/product/hammerhead/obj/ETC/file_contexts_intermediates/file_contexts'
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
warning: string 'app_no_restricted_accounts' has no default translation.
warning: string 'description_direction_down' has no default translation.
warning: string 'description_direction_left' has no default translation.
warning: string 'description_direction_right' has no default translation.
warning: string 'description_direction_up' has no default translation.
warning: string 'description_target_camera' has no default translation.
warning: string 'description_target_search' has no default translation.
warning: string 'description_target_silent' has no default translation.
warning: string 'description_target_soundon' has no default translation.
warning: string 'description_target_unlock' has no default translation.
warning: string 'gsm_alphabet_default_charset' has no default translation.
warning: string 'mediaSize_iso_a0' has no default translation.
warning: string 'mediaSize_iso_a1' has no default translation.
warning: string 'mediaSize_iso_a10' has no default translation.
warning: string 'mediaSize_iso_a2' has no default translation.
warning: string 'mediaSize_iso_a3' has no default translation.
warning: string 'mediaSize_iso_a4' has no default translation.
warning: string 'mediaSize_iso_a5' has no default translation.
warning: string 'mediaSize_iso_a6' has no default translation.
warning: string 'mediaSize_iso_a7' has no default translation.
warning: string 'mediaSize_iso_a8' has no default translation.
warning: string 'mediaSize_iso_a9' has no default translation.
warning: string 'mediaSize_iso_b0' has no default translation.
warning: string 'mediaSize_iso_b1' has no default translation.
warning: string 'mediaSize_iso_b10' has no default translation.
warning: string 'mediaSize_iso_b2' has no default translation.
warning: string 'mediaSize_iso_b3' has no default translation.
warning: string 'mediaSize_iso_b4' has no default translation.
warning: string 'mediaSize_iso_b5' has no default translation.
warning: string 'mediaSize_iso_b6' has no default translation.
warning: string 'mediaSize_iso_b7' has no default translation.
warning: string 'mediaSize_iso_b8' has no default translation.
warning: string 'mediaSize_iso_b9' has no default translation.
warning: string 'mediaSize_iso_c0' has no default translation.
warning: string 'mediaSize_iso_c1' has no default translation.
warning: string 'mediaSize_iso_c10' has no default translation.
warning: string 'mediaSize_iso_c2' has no default translation.
warning: string 'mediaSize_iso_c3' has no default translation.
warning: string 'mediaSize_iso_c4' has no default translation.
warning: string 'mediaSize_iso_c5' has no default translation.
warning: string 'mediaSize_iso_c6' has no default translation.
warning: string 'mediaSize_iso_c7' has no default translation.
warning: string 'mediaSize_iso_c8' has no default translation.
warning: string 'mediaSize_iso_c9' has no default translation.
warning: string 'mediaSize_na_gvrnmt_letter' has no default translation.
warning: string 'mediaSize_na_junior_legal' has no default translation.
warning: string 'mediaSize_na_ledger' has no default translation.
warning: string 'mediaSize_na_legal' has no default translation.
warning: string 'mediaSize_na_letter' has no default translation.
warning: string 'mediaSize_na_tabloid' has no default translation.
warning: string 'media_route_chooser_grouping_done' has no default translation.
warning: string 'permdesc_hotwordRecognition' has no default translation.
warning: string 'permdesc_magnify_display' has no default translation.
warning: string 'permdesc_markNetworkSocket' has no default translation.
warning: string 'permdesc_retrieve_window_info' has no default translation.
warning: string 'permlab_hotwordRecognition' has no default translation.
warning: string 'permlab_magnify_display' has no default translation.
warning: string 'permlab_markNetworkSocket' has no default translation.
warning: string 'permlab_retrieve_window_info' has no default translation.
warning: string 'throttle_warning_notification_message' has no default translation.
warning: string 'throttle_warning_notification_title' has no default translation.
warning: string 'throttled_notification_message' has no default translation.
warning: string 'throttled_notification_title' has no default translation.
warning: string 'transient_navigation_confirmation' has no default translation.
warning: string 'transient_navigation_confirmation_long' has no default translation.
warning: string 'use_physical_keyboard' has no default translation.
warning: string 'wifi_display_notification_disconnect' has no default translation.
warning: string 'wifi_display_notification_message' has no default translation.
warning: string 'wifi_display_notification_title' has no default translation.

#### make failed to build some targets (38:54 (mm:ss)) ####

root@buildbox:~/AOSP#

I have also tried compiling it from the latest hammerhead device tree but it still craps out on the libsepol portion. Any idea's guys?

Thanks!