Error in building signed builds - Android Q&A, Help & Troubleshooting

Hello All,
I am trying to build LineAge 14.1 for Lux [Moto X Play].
I am following
http://wiki.lineageos.org/lux_build.html & http://wiki.lineageos.org/signing_builds.html
Now, when I am building unsigned build, everything works fine.
no issues at all.
ie by running
Code:
brunch lux
But, when I try to build a signed build,
with
Code:
mka dist
I get the following error.
Code:
[ 84% 1135/1347] target R.java/Manifest.java: PermissionTestAppMV1 (/mnt/volume-sfo2-01/android/system/out/target/common/obj/APPS/PermissionTestAppMV1_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 84% 1137/1347] target R.java/Manifest.java: PerformanceLaunch (/mnt/volume-sfo2-01/android/system/out/target/common/obj/APPS/PerformanceLaunch_intermediates/src/R.stamp)
platform_testing/tests/perf/PerformanceLaunch/res/values-en-rXA/strings.xml:0: warning: Resource file platform_testing/tests/perf/PerformanceLaunch/res/values-en-rXA/strings.xml is skipped as pseudolocalization was done automatically.
platform_testing/tests/perf/PerformanceLaunch/res/values-ar-rXB/strings.xml:0: warning: Resource file platform_testing/tests/perf/PerformanceLaunch/res/values-ar-rXB/strings.xml is skipped as pseudolocalization was done automatically.
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 84% 1140/1347] target R.java/Manifest.java: CMPlatformTests (/mnt/volume-sfo2-01/android/system/out/target/common/obj/APPS/CMPlatformTests_intermediates/src/R.stamp)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
[ 85% 1156/1347] host Java: ahat-tests (/mnt/volume-sfo2-01/android/system/out/host/common/obj/JAVA_LIBRARIES/ahat-tests_intermediates/classes)
Note: art/tools/ahat/test/SortTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[B][ 89% 1206/1347] host C: libosi-host <= system/bt/osi/./src/alarm.c
FAILED: /bin/bash -c "(PWD=/proc/self/cwd prebuilts/misc/linux-x86/ccache/ccache prebuilts/clang/host/linux-x86/clang-2690385/bin/clang -I device/motorola/msm8916-common/include -I system/bt/osi/.. -I system/bt/osi/../utils/include -I system/bt/osi/../stack/include -I device/motorola/msm8916-common/bluetooth -I system/bt/osi -I /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates -I /mnt/volume-sfo2-01/android/system/out/host/linux-x86/gen/STATIC_LIBRARIES/libosi-host_intermediates -I libnativehelper/include/nativehelper \$(cat /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem tools/include -isystem /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/include -c -fno-exceptions -Wno-multichar -m64 -Wa,--noexecstack -fPIC -no-canonical-prefixes -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 -fstack-protector-strong --gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8 --sysroot prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/bin -target x86_64-linux-gnu -std=gnu99 -DHAS_BDROID_BUILDCFG -DQLOGKIT_USERDEBUG -DUSE_AUDIO_TRACK -DEXPORT_SYMBOL=\"__attribute__((visibility(\\\"default\\\")))\" -fvisibility=hidden -Wall -Wextra -Werror -Wno-gnu-variable-sized-type-not-at-end -Wno-typedef-redefinition -Wno-unused-parameter -UNDEBUG -DLOG_NDEBUG=1 -D_GNU_SOURCE -DOS_GENERIC -fPIC -D_USING_LIBCXX -std=c99 -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.d -o /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.o system/bt/osi/./src/alarm.c ) && (cp /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.d /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.d >> /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.P; rm -f /mnt/volume-sfo2-01/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libosi-host_intermediates/./src/alarm.d )"
In file included from system/bt/osi/./src/alarm.c:19:
In file included from system/bt/osi/../include/bt_target.h:38:
In file included from device/motorola/msm8916-common/bluetooth/bdroid_buildcfg.h:20:
system/core/include/cutils/properties.h:22:10:[COLOR="Red"] fatal error[/COLOR]: 'sys/system_properties.h' file not found
#include <sys/system_properties.h>
^
1 error generated.[/B]
[ 89% 1206/1347] Package target files: /mnt/volume-sfo2-01/android/system/out/target/product/lux/obj/PACKAGING/target_files_intermediates/lineage_lux-target_files-ce75856d2e.zip
building image from target_files RECOVERY...
using prebuilt boot.img from BOOTABLE_IMAGES...
putting script in bin/install-recovery.sh
running: unzip -o -q /mnt/volume-sfo2-01/android/system/out/target/product/lux/obj/PACKAGING/target_files_intermediates/lineage_lux-target_files-ce75856d2e.zip -d /tmp/targetfiles-atRbed
++++ boot ++++
using prebuilt boot.img from BOOTABLE_IMAGES...
++++ recovery ++++
building image from target_files RECOVERY...
running: mkbootfs -f /tmp/targetfiles-atRbed/META/recovery_filesystem_config.txt /tmp/targetfiles-atRbed/RECOVERY/RAMDISK
running: minigzip
running: /mnt/volume-sfo2-01/android/system/out/host/linux-x86/bin/mkbootimg --kernel /tmp/targetfiles-atRbed/RECOVERY/kernel --cmdline console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x3F ehci-hcd.park=3 vmalloc=400M androidboot.bootdevice=7824900.sdhci utags.blkdev=/dev/block/bootdevice/by-name/utags utags.backup=/dev/block/bootdevice/by-name/utagsBackup movablecore=160M buildvariant=userdebug --base 0x80000000 --dt /tmp/targetfiles-atRbed/RECOVERY/dt --pagesize 2048 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --os_version 7.1.1 --os_patch_level 2017-01-05 --ramdisk /tmp/tmpUZnRvD --output /tmp/tmpJ2eyen
++++ system ++++
creating system.img...
BuildImage: in_dir = /tmp/targetfiles-atRbed/system, out_file = /tmp/system-UI6LRH.img
fs type is not ext4
Running: mkuserimg.sh -s /tmp/targetfiles-atRbed/system /tmp/system-UI6LRH.img ext4 system 2852126720 -T 1230768000 -C /tmp/targetfiles-atRbed/META/filesystem_config.txt -B /tmp/system-blocklist-xeaHOq.map -L system /tmp/targetfiles-atRbed/META/file_contexts.bin
make_ext4fs -s -T 1230768000 -S /tmp/targetfiles-atRbed/META/file_contexts.bin -C /tmp/targetfiles-atRbed/META/filesystem_config.txt -B /tmp/system-blocklist-xeaHOq.map -L system -l 2852126720 -a system /tmp/system-UI6LRH.img /tmp/targetfiles-atRbed/system
loaded 2312 fs_config entries
Creating filesystem with parameters:
Size: 2852126720
Block size: 4096
Blocks per group: 32768
Inodes per group: 7920
Inode size: 256
Journal blocks: 10880
Label: system
Blocks: 696320
Block groups: 22
Reserved block group size: 175
Created filesystem with 2322/174240 inodes and 195326/696320 blocks
Running ['mkuserimg.sh', '-s', '/tmp/targetfiles-atRbed/system', '/tmp/system-UI6LRH.img', 'ext4', 'system', '2852126720', '-T', '1230768000', '-C', '/tmp/targetfiles-atRbed/META/filesystem_config.txt', '-B', '/tmp/system-blocklist-xeaHOq.map', '-L', 'system', '/tmp/targetfiles-atRbed/META/file_contexts.bin'] command, exit code = 0
++++ userdata ++++
creating userdata.img...
BuildImage: in_dir = /tmp/tmpGpF5hC/data, out_file = /tmp/tmpXM9Gfo
fs type is not ext4
Running: mkf2fsuserimg.sh /tmp/tmpXM9Gfo 11815223296
in mkf2fsuserimg.sh PATH=/mnt/volume-sfo2-01/android/system/out/host/linux-x86/bin:/mnt/volume-sfo2-01/android/system/out/host/linux-x86/bin/:/usr/lib/jvm/java-8-openjdk-amd64/bin:/mnt/volume-sfo2-01/android/system/out/host/linux-x86/bin:/mnt/volume-sfo2-01/android/system/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin:/mnt/volume-sfo2-01/android/system/prebuilts/gcc/linux-x86/:/mnt/volume-sfo2-01/android/system/development/scripts:/mnt/volume-sfo2-01/android/system/prebuilts/devtools/tools:/mnt/volume-sfo2-01/android/system/external/selinux/prebuilts/bin:/mnt/volume-sfo2-01/android/system/prebuilts/android-emulator/linux-x86_64:/mnt/volume-sfo2-01/bin:/root/platform-tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
make_f2fs -l 11815223296 /tmp/tmpXM9Gfo
Info: zone aligned segment0 blkaddr: 512
Info: Overprovision ratio = 1.890%
Info: Overprovision segments = 216 (GC reserved = 113)
Running ['mkf2fsuserimg.sh', '/tmp/tmpXM9Gfo', '11815223296'] command, exit code = 0
userdata size (14) is 0.00% of limit (11815223296)
++++ extrauserdata ++++
++++ cache ++++
creating cache.img...
BuildImage: in_dir = /tmp/tmpa0tOUX/cache, out_file = /tmp/tmpTM0SUW
fs type is not ext4
Running: mkuserimg.sh -s /tmp/tmpa0tOUX/cache /tmp/tmpTM0SUW ext4 cache 805306368 -T 1230768000 -L cache /tmp/targetfiles-atRbed/META/file_contexts.bin
make_ext4fs -s -T 1230768000 -S /tmp/targetfiles-atRbed/META/file_contexts.bin -L cache -l 805306368 -a cache /tmp/tmpTM0SUW /tmp/tmpa0tOUX/cache
Creating filesystem with parameters:
Size: 805306368
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 3072
Label: cache
Blocks: 196608
Block groups: 6
Reserved block group size: 47
Created filesystem with 11/49152 inodes and 6355/196608 blocks
Running ['mkuserimg.sh', '-s', '/tmp/tmpa0tOUX/cache', '/tmp/tmpTM0SUW', 'ext4', 'cache', '805306368', '-T', '1230768000', '-L', 'cache', '/tmp/targetfiles-atRbed/META/file_contexts.bin'] command, exit code = 0
cache size (14) is 0.00% of limit (805306368)
done.
[ 89% 1206/1347] Package symbols: /mnt/volume-sfo2-01/android/system/out/target/product/lux/lineage_lux-symbols-ce75856d2e.zip
ninja: build stopped: subcommand failed.
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/mnt/volume-sfo2-01/android/system'
[B][COLOR="Red"]#### make failed to build some targets (06:42 (mm:ss)) ####[/COLOR][/B]
[email protected]:/mnt/volume-sfo2-01/android/system#
Any assistance will be appreciated.
Thank you.

Bump

I am getting exact same header file missing error
system_properties.h not found.
How to solve this.
Please help.

The same error was happening to me when running
Code:
mma
I managed to fix this by running
Code:
mma bacon
In your case however, I'm assuming you need to run
Code:
mka bacon dist
This assumption is based on the wiki article you mentioned:
breakfast <codename>
mka target-files-package dist
Click to expand...
Click to collapse
AFAICT bacon is some sort of "target files package" which needs to be specified when building.

Related

need help compiling

hey guys i really need some help, i am somewhat new too compiling a kernel from scratch and i keep running into some error's. any advice would be appreciated. btw i am compiling for a MIPS platform.
this is what im getting:
frameworks/base/tools/aidl/aidl_language_l.l:54: warning, rule cannot be matched
build/tools/merge-event-log-tags.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
touch out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.hpp
echo '#ifndef 'aidl_language_y_h > out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
Notice file: system/core/libzipfile/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libzipfile.a.txt
Notice file: external/tinyxml/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libtinyxml.a.txt
Notice file: external/zlib/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libunz.a.txt
echo '#define 'aidl_language_y_h >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
cat out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.hpp >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
echo '#endif' >> out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.h
rm -f out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.hpp
Notice file: system/core/adb/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/adb.txt
host Java: apkcheck (out/host/common/obj/JAVA_LIBRARIES/apkcheck_intermediates/classes)
Notice file: external/elfcopy/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libelfcopy.a.txt
Notice file: external/bzip2/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libbz.a.txt
host Java: cfassembler (out/host/common/obj/JAVA_LIBRARIES/cfassembler_intermediates/classes)
host Java: dexdeps (out/host/common/obj/JAVA_LIBRARIES/dexdeps_intermediates/classes)
target Generated: emulator <= external/qemu/qemu-options.hx
target Generated: emulator <= external/qemu/qemu-monitor.hx
target Generated: emulator <= external/qemu/gdb-xml/arm-core.xml
target Generated: emulator <= external/qemu/android/avd/hardware-properties.ini
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//bin/emulator.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-memcheck.a.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-hw.a.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-mips.a.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-tcg.a.txt
Notice file: external/qemu/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/emulator-elff.a.txt
prebuilt/linux-x86/toolchain/mips-4.4.3/bin/mips-linux-gnu-gcc -fno-exceptions -Wno-multichar -Ulinux -U__unix -U__unix__ -fpic -ffunction-sections -funwind-tables -EL -march=mips32r2 -mtune=mips32r2 -mips32r2 -msoft-float -include system/core/include/arch/linux-mips/AndroidConfig.h -I system/core/include/arch/linux-mips/ -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing=2 -finline-functions -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -o out/target/product/generic/obj/lib/crtbegin_dynamic.o -c bionic/libc/arch-mips/bionic/crtbegin_dynamic.S
Notice file: bionic/libdl/NOTICE -- out/target/product/generic/obj/NOTICE_FILES/src//system/lib/libdl.so.txt
prebuilt/linux-x86/toolchain/mips-4.4.3/bin/mips-linux-gnu-gcc -fno-exceptions -Wno-multichar -Ulinux -U__unix -U__unix__ -fpic -ffunction-sections -funwind-tables -EL -march=mips32r2 -mtune=mips32r2 -mips32r2 -msoft-float -include system/core/include/arch/linux-mips/AndroidConfig.h -I system/core/include/arch/linux-mips/ -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -DNDEBUG -g -Wstrict-aliasing=2 -finline-functions -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -DNDEBUG -UDEBUG -o out/target/product/generic/obj/lib/crtend_android.o -c bionic/libc/arch-mips/bionic/crtend.S
/home/zacwhite15/cruzmips/prebuilt/linux-x86/toolchain/mips-4.4.3/bin/../libexec/gcc/mips-linux-gnu/4.4.3/cc1: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
/home/zacwhite15/cruzmips/prebuilt/linux-x86/toolchain/mips-4.4.3/bin/../libexec/gcc/mips-linux-gnu/4.4.3/cc1: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
make: *** [out/target/product/generic/obj/lib/crtend_android.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [out/target/product/generic/obj/lib/crtbegin_dynamic.o] Error 1
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
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.

[Q] Android 4.2 building error

Code:
+ ENABLE_SPARSE_IMAGE=
+ '[' -s = -s ']'
+ ENABLE_SPARSE_IMAGE=-s
+ shift
+ '[' 5 -ne 4 -a 5 -ne 5 -a 5 -ne 6 ']'
+ SRC_DIR=/home/coderz/liquid/out/target/product/glacier/data
+ '[' '!' -d /home/coderz/liquid/out/target/product/glacier/data ']'
+ OUTPUT_FILE=/home/coderz/liquid/out/target/product/glacier/userdata.img
+ EXT_VARIANT=ext4
+ MOUNT_POINT=data
+ SIZE=1232072704
+ FC=
+ case $EXT_VARIANT in
+ '[' -z data ']'
+ '[' -z 1232072704 ']'
+ '[' -n '' ']'
+ MAKE_EXT4FS_CMD='make_ext4fs -s -l 1232072704 -a data /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/data'
+ echo make_ext4fs -s -l 1232072704 -a data /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/data
make_ext4fs -s -l 1232072704 -a data /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/data
+ make_ext4fs -s -l 1232072704 -a data /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/data
Creating filesystem with parameters:
Size: 1232072704
Block size: 4096
Blocks per group: 32768
Inodes per group: 7520
Inode size: 256
Journal blocks: 4699
Label:
Blocks: 300799
Block groups: 10
Reserved block group size: 79
Created filesystem with 10/75200 inodes and 9907/300799 blocks
+ '[' 0 -ne 0 ']'
Running: simg2img /home/coderz/liquid/out/target/product/glacier/userdata.img /home/coderz/liquid/out/target/product/glacier/unsparse_userdata.img
Running: e2fsck -f -n /home/coderz/liquid/out/target/product/glacier/unsparse_userdata.img
e2fsck 1.41.14 (22-Dec-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found. Create? no
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/home/coderz/liquid/out/target/product/glacier/unsparse_userdata.img: ********** WARNING: Filesystem still has errors **********
/home/coderz/liquid/out/target/product/glacier/unsparse_userdata.img: 10/75200 files (0.0% non-contiguous), 9907/300799 blocks
error: failed to build /home/coderz/liquid/out/target/product/glacier/userdata.img from /home/coderz/liquid/out/target/product/glacier/data
make: *** [/home/coderz/liquid/out/target/product/glacier/userdata.img] Error 1
make: *** Deleting file `/home/coderz/liquid/out/target/product/glacier/userdata.img'
make: *** Waiting for unfinished jobs....
ProGuard, version 4.4
Reading program jar [/home/coderz/liquid/out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.jar]
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]
CHK include/linux/version.h
make[1]: Leaving directory `/home/coderz/liquid/kernel/htc/glacier'
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Reading library jar [/home/coderz/liquid/out/target/common/obj/JAVA_LIBRARIES/guava_intermediates/classes.jar]
Preparing output jar [/home/coderz/liquid/out/target/common/obj/APPS/ApplicationsProvider_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/coderz/liquid/out/target/common/obj/APPS/ApplicationsProvider_intermediates/classes.jar]
i have 157 gig free on hard drive
in /build/tools/releasetools/build_image.py
build_command = []
fs_type = prop_dict.get("fs_type", "")
run_fsck = False
if fs_type.startswith("ext"):
build_command = ["mkuserimg.sh"]
if "extfs_sparse_flag" in prop_dict:
build_command.append(prop_dict["extfs_sparse_flag"])
run_fsck = True
set
Code:
run_Fsck = False
Nothing will 100% bugs free
I'm android lover, and I do use my cell phone a lot. I have JB updated but still some minor bugs are there, but then I realized that nothing will be 100% bugs free in future also.

Error Building Lineage OS on macOS;unknown type name 'StringPiece'

When I was trying to build my first custom rom based on 7.1.1 (lineage os) the following error occurred.
SPECS ARE :
Macbook pro 2015 retina
Ram:8GB
Storage:512
Processor Name: Intel Core i5
Processor Speed: 2.9 GHz
OS: MacOs Sierra 10.12.2
Xcode:8.2.1(8C1002)
Full Command text is given below:
Code:
vibhoothis-MacBook-Pro:los vibhoothiiaanand$ brunch oneplus2
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:268: *** No matches for product "lineage_oneplus2". Stop.
** Warning: 'oneplus2' is using CM-based makefiles. This will be deprecated in the next major release.
Looking for dependencies in device/oneplus/oneplus2
Looking for dependencies in device/oppo/common
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170129-UNOFFICIAL-oneplus2
TARGET_PRODUCT=cm_oneplus2
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-16.3.0-x86_64-i386-64bit
HOST_CROSS_OS=
HOST_CROSS_ARCH=
HOST_CROSS_2ND_ARCH=
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/Users/vibhoothiiaanand/Desktop/los/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170129-UNOFFICIAL-oneplus2
TARGET_PRODUCT=cm_oneplus2
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-16.3.0-x86_64-i386-64bit
HOST_CROSS_OS=
HOST_CROSS_ARCH=
HOST_CROSS_2ND_ARCH=
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/Users/vibhoothiiaanand/Desktop/los/out
============================================
Running kati to generate build-cm_oneplus2.ninja...
/Users/vibhoothiiaanand/Desktop/los/out/build-cm_oneplus2.ninja is missing, regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170129-UNOFFICIAL-oneplus2
TARGET_PRODUCT=cm_oneplus2
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-16.3.0-x86_64-i386-64bit
HOST_CROSS_OS=
HOST_CROSS_ARCH=
HOST_CROSS_2ND_ARCH=
HOST_BUILD_TYPE=release
BUILD_ID=NMF26V
OUT_DIR=/Users/vibhoothiiaanand/Desktop/los/out
============================================
art/build/Android.common.mk:51: unsupported HOST_ARCH=x86_64
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
./external/speex/Android.mk:56: TODOArm64: enable neon in libspeex
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: /Users/vibhoothiiaanand/Desktop/los/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
build/core/Makefile:53: Duplicate header copy: /Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/obj/include/qcom/display/copybit.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
build/core/Makefile:53: Duplicate header copy: /Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/obj/include/qcom/display/copybit_priv.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
build/core/Makefile:53: Duplicate header copy: /Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/obj/include/qcom/display/c2d2.h
build/core/Makefile:53: Defined in: hardware/qcom/display-caf/msm8994/libcopybit/Android.mk hardware/qcom/display-caf/msm8994/libcopybit/Android.mk
No private recovery resources for TARGET_DEVICE oneplus2
build/core/dex_preopt.mk:74: warning: overriding commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/dex_bootjars/system/framework/telephony-ext_nodex.jar'
build/core/dex_preopt.mk:74: warning: ignoring old commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/dex_bootjars/system/framework/telephony-ext_nodex.jar'
build/core/dex_preopt_libart_boot.mk:49: warning: overriding commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/system/framework/arm64/boot-telephony-ext.art'
build/core/dex_preopt_libart_boot.mk:49: warning: ignoring old commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/system/framework/arm64/boot-telephony-ext.art'
build/core/dex_preopt_libart_boot.mk:49: warning: overriding commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/system/framework/arm64/boot-telephony-ext.oat'
build/core/dex_preopt_libart_boot.mk:49: warning: ignoring old commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/system/framework/arm64/boot-telephony-ext.oat'
build/core/dex_preopt_libart_boot.mk:49: warning: overriding commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/system/framework/arm/boot-telephony-ext.art'
build/core/dex_preopt_libart_boot.mk:49: warning: ignoring old commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/system/framework/arm/boot-telephony-ext.art'
build/core/dex_preopt_libart_boot.mk:49: warning: overriding commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/system/framework/arm/boot-telephony-ext.oat'
build/core/dex_preopt_libart_boot.mk:49: warning: ignoring old commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/system/framework/arm/boot-telephony-ext.oat'
build/core/java.mk:334: warning: overriding commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/Users/vibhoothiiaanand/Desktop/los/out/target/product/oneplus2/root/res/images/charger/battery_fail.png'
Starting build with ninja
ninja: Entering directory `.'
[ 0% 80/46297] host C++: libaapt2 <= ...se/tools/aapt2/filter/ConfigFilter.cpp
FAILED: /bin/bash -c "(prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -I device/oneplus/oneplus2/include -I /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates -I external/protobuf/src -I /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto -I frameworks/base/tools/aapt2 -I /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates -I /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates -I libnativehelper/include/nativehelper \$(cat /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem tools/include -isystem /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/include -c -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -DMACOSX_DEPLOYMENT_TARGET=10.12 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /applications/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -Wall -Werror -Wno-unused-parameter -UNDEBUG -fPIC -D_DARWIN_UNLIMITED_STREAMS -Wno-deprecated-declarations -D_USING_LIBCXX -DGOOGLE_PROTOBUF_NO_RTTI -std=gnu++14 -std=c++11 -Wno-missing-field-initializers -fno-exceptions -fno-rtti -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/filter/ConfigFilter.d -o /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/filter/ConfigFilter.o frameworks/base/tools/aapt2/filter/ConfigFilter.cpp ) && (cp /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/filter/ConfigFilter.d /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/filter/ConfigFilter.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/filter/ConfigFilter.d >> /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/filter/ConfigFilter.P; rm -f /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/filter/ConfigFilter.d )"
In file included from frameworks/base/tools/aapt2/filter/ConfigFilter.cpp:17:
In file included from frameworks/base/tools/aapt2/ConfigDescription.h:20:
In file included from frameworks/base/tools/aapt2/util/StringPiece.h:20:
In file included from external/libcxx/include/ostream:138:
In file included from external/libcxx/include/ios:216:
In file included from external/libcxx/include/__locale:21:
frameworks/base/tools/aapt2/locale.h:42:37: error: unknown type name 'StringPiece'
bool initFromFilterString(const StringPiece& config);
^
1 error generated.
[ 0% 80/46297] host C++: libaapt2 <= ...tools/aapt2/compile/XmlIdCollector.cpp
FAILED: /bin/bash -c "(prebuilts/clang/host/darwin-x86/clang-2690385/bin/clang++ -I device/oneplus/oneplus2/include -I /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates -I external/protobuf/src -I /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates/proto -I frameworks/base/tools/aapt2 -I /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates -I /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/gen/STATIC_LIBRARIES/libaapt2_intermediates -I libnativehelper/include/nativehelper \$(cat /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/import_includes) -isystem system/core/include -isystem system/media/audio/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem libnativehelper/include -isystem frameworks/native/include -isystem frameworks/native/opengl/include -isystem frameworks/av/include -isystem frameworks/base/include -isystem tools/include -isystem /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/include -c -fno-exceptions -Wno-multichar -m64 -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -isysroot /applications/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -DMACOSX_DEPLOYMENT_TARGET=10.12 -fPIC -funwind-tables -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -O2 -g -fno-strict-aliasing -DNDEBUG -UDEBUG -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -integrated-as -fstack-protector-strong -integrated-as -target x86_64-apple-darwin -isystem /applications/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -Wsign-promo -Wno-inconsistent-missing-override -target x86_64-apple-darwin -Wall -Werror -Wno-unused-parameter -UNDEBUG -fPIC -D_DARWIN_UNLIMITED_STREAMS -Wno-deprecated-declarations -D_USING_LIBCXX -DGOOGLE_PROTOBUF_NO_RTTI -std=gnu++14 -std=c++11 -Wno-missing-field-initializers -fno-exceptions -fno-rtti -nostdinc++ -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=null-dereference -Werror=return-type -MD -MF /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/compile/XmlIdCollector.d -o /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/compile/XmlIdCollector.o frameworks/base/tools/aapt2/compile/XmlIdCollector.cpp ) && (cp /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/compile/XmlIdCollector.d /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/compile/XmlIdCollector.P; sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\\\\$//' -e '/^\$/ d' -e 's/\$/ :/' < /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/compile/XmlIdCollector.d >> /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/compile/XmlIdCollector.P; rm -f /Users/vibhoothiiaanand/Desktop/los/out/host/darwin-x86/obj/STATIC_LIBRARIES/libaapt2_intermediates/compile/XmlIdCollector.d )"
In file included from frameworks/base/tools/aapt2/compile/XmlIdCollector.cpp:17:
In file included from frameworks/base/tools/aapt2/ResourceUtils.h:20:
In file included from frameworks/base/tools/aapt2/NameMangler.h:20:
In file included from frameworks/base/tools/aapt2/Resource.h:20:
In file included from frameworks/base/tools/aapt2/ConfigDescription.h:20:
In file included from frameworks/base/tools/aapt2/util/StringPiece.h:20:
In file included from external/libcxx/include/ostream:138:
In file included from external/libcxx/include/ios:216:
In file included from external/libcxx/include/__locale:21:
frameworks/base/tools/aapt2/locale.h:42:37: error: unknown type name 'StringPiece'
bool initFromFilterString(const StringPiece& config);
^
1 error generated.
[ 0% 80/46297] host Java: jarjar (/Us...IBRARIES/jarjar_intermediates/classes)
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (49 seconds) ####

android oreo 8.0.0_r34 build error

Hi,
I am trying to build android oreo aosp for the target car_emu_x86_64-userdebug and i am getting build error.
Steps followed:
1. repo init -u <android source url> -b android-8.0.0_r34 --depth=1
2. repo sync
3. source build/envsetup.sh
4. lunch car_emu_x86_64-userdebug
5. make -j8
error:
[ 0% 9/15494] target C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp
FAILED: out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.o
/bin/bash -c "PWD=/proc/self/cwd prebuilts/clang/host/linux-x86/clang-4053586/bin/clang++ -I frameworks/native/vulkan/include -I external/vulkan-validation-layers/libs/vkjson -I system/libhwbinder/fast_msgq/include -I frameworks/native/services/surfaceflinger -I out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates -I out/target/product/car-x86_64/gen/SHARED_LIBRARIES/libsurfaceflinger_intermediates -I libnativehelper/include/nativehelper \$(cat out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/import_includes) -I system/core/include -I system/media/audio/include -I hardware/libhardware/include -I hardware/libhardware_legacy/include -I hardware/ril/include -I libnativehelper/include -I frameworks/native/include -I frameworks/native/opengl/include -I frameworks/av/include -isystem out/target/product/car-x86_64/obj/include -isystem bionic/libc/arch-x86_64/include -isystem bionic/libc/include -isystem bionic/libc/kernel/uapi -isystem bionic/libc/kernel/uapi/asm-x86 -isystem bionic/libc/kernel/android/scsi -isystem bionic/libc/kernel/android/uapi -c -fno-exceptions -Wno-multichar -O2 -Wa,--noexecstack -Werror=format-security -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -ffunction-sections -fno-short-enums -fstrict-aliasing -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -Werror=implicit-function-declaration -O2 -g -fno-strict-aliasing -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -DNDEBUG -UDEBUG -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -fdebug-prefix-map=\$PWD/= -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -nostdlibinc -m64 -march=x86-64 -DUSE_SSSE3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -target x86_64-linux-android -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin -Wsign-promo -Wno-inconsistent-missing-override -Wno-null-dereference -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS -Wno-thread-safety-negative -std=gnu++14 -fno-rtti -DLOG_TAG="SurfaceFlinger" -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES -fvisibility=hidden -Werror=format -Wall -Werror -Wunused -Wunreachable-code -std=c++1z -fPIC -D_USING_LIBCXX -DANDROID_STRICT -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -MD -MF out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.d -o out/target/product/car-x86_64/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/DisplayHardware/FramebufferSurface.o frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp"
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:18: error: no member named 'setClientTarget' in 'android::HWComposer'
mHwc.setClientTarget(mDisplayType, outSlot, outFence, outBuffer, outDataspace);
~~~~ ^
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:48: error: use of undeclared identifier 'outSlot'
mHwc.setClientTarget(mDisplayType, outSlot, outFence, outBuffer, outDataspace);
^
frameworks/native/services/surfaceflinger/DisplayHardware/FramebufferSurface.cpp:180:78: error: use of undeclared identifier 'outDataspace'
mHwc.setClientTarget(mDisplayType, outSlot, outFence, outBuffer, outDataspace);
^
3 errors generated.
[ 0% 15/15494] Ensuring Jack server is installed and started
Jack server already installed in "/home/abdul/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/abdul/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[ 0% 16/15494] target C++: libsurfaceflinger <= frameworks/native/services/surfaceflinger/SurfaceFlinger_hwc1.cpp
ninja: build stopped: subcommand failed.
12:08:48 ninja failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1
#### make failed to build some targets (05:44 (mm:ss)) ####
Facing similar issue. Got any fix?

[ERROR] Any Suggestions on How To Fix This?

Hello guys, facing this error while comping the rom.
Any suggestions on how do I fix this??
Building PE rom.
Code:
++++ system ++++
creating system.img...
Running: mkuserimg_mke2fs.sh -s /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img ext4 system 1536000512 -j 0 -T 1230748200 -C /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/filesystem_config.txt -B /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.map -L system -M 0 -U 273ec7de-1500-51e5-9c8c-d251694ef6ac -S 55faa1c1-4e7b-5e3a-81aa-1b593b87847a /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/file_contexts.bin
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230748200 mke2fs -O ^has_journal -L system -m 0 -U 273ec7de-1500-51e5-9c8c-d251694ef6ac -E android_sparse,hash_seed=55faa1c1-4e7b-5e3a-81aa-1b593b87847a -t ext4 -b 4096 /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img 375000
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 375000 4k blocks and 93888 inodes
Filesystem UUID: 273ec7de-1500-51e5-9c8c-d251694ef6ac
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230748200 e2fsdroid -T 1230748200 -C /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/filesystem_config.txt -B /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.map -S /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/file_contexts.bin -f /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM -a /system /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img
__populate_fs: Could not allocate block in ext2 filesystem while writing file "framework-res.apk"
e2fsdroid: Could not allocate block in ext2 filesystem while populating file system
Error: '['mkuserimg_mke2fs.sh', '-s', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img', 'ext4', 'system', '1536000512', '-j', '0', '-T', '1230748200', '-C', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/filesystem_config.txt', '-B', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.map', '-L', 'system', '-M', '0', '-U', '273ec7de-1500-51e5-9c8c-d251694ef6ac', '-S', '55faa1c1-4e7b-5e3a-81aa-1b593b87847a', '/home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/file_contexts.bin']' failed with exit code 4:
MKE2FS_CONFIG=./system/extras/ext4_utils/mke2fs.conf E2FSPROGS_FAKE_TIME=1230748200 mke2fs -O ^has_journal -L system -m 0 -U 273ec7de-1500-51e5-9c8c-d251694ef6ac -E android_sparse,hash_seed=55faa1c1-4e7b-5e3a-81aa-1b593b87847a -t ext4 -b 4096 /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img 375000
mke2fs 1.43.3 (04-Sep-2016)
Creating filesystem with 375000 4k blocks and 93888 inodes
Filesystem UUID: 273ec7de-1500-51e5-9c8c-d251694ef6ac
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
E2FSPROGS_FAKE_TIME=1230748200 e2fsdroid -T 1230748200 -C /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/filesystem_config.txt -B /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.map -S /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/META/file_contexts.bin -f /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM -a /system /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/IMAGES/system.img
__populate_fs: Could not allocate block in ext2 filesystem while writing file "framework-res.apk"
e2fsdroid: Could not allocate block in ext2 filesystem while populating file system
Out of space? The tree size of /home/demoxing/pe/out/target/product/hammerhead/obj/PACKAGING/target_files_intermediates/aosp_hammerhead-target_files-eng.demoxing/SYSTEM is 1526571008 bytes (1455 MB), with reserved space of 0 bytes (0 MB).
The max image size for filsystem files is 1536000512 bytes (1464 MB), out of a total partition size of 1536000512 bytes (1464 MB).
Traceback (most recent call last):
File "build/make/tools/releasetools/add_img_to_target_files", line 824, in <module>
main(sys.argv[1:])
File "build/make/tools/releasetools/add_img_to_target_files", line 818, in main
AddImagesToTargetFiles(args[0])
File "build/make/tools/releasetools/add_img_to_target_files", line 727, in AddImagesToTargetFiles
output_zip, recovery_img=recovery_image, boot_img=boot_image)
File "build/make/tools/releasetools/add_img_to_target_files", line 150, in AddSystem
block_list=block_list)
File "build/make/tools/releasetools/add_img_to_target_files", line 281, in CreateImage
assert succ, "build " + what + ".img image failed"
AssertionError: build system.img image failed
ninja: build stopped: subcommand failed.
14:58:53 ninja failed with: exit status 1
#### failed to build some targets (05:03 (mm:ss)) ####

Categories

Resources