[Android] TheOddTaco:
Getting this problem and idk whats causing it to fail. Trying to make a rom for LG k7 MetroPCS variant.

make[1]: Leaving directory '/home/taco/android/kernel/lge/msm8909'
make[1]: Entering directory '/home/taco/android/out/target/product/ms330/obj/KERNEL_OBJ'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory '/home/taco/android/out/target/product/ms330/obj/KERNEL_OBJ'
mdpath=`find /home/taco/android/out/target/product/ms330/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do arm-eabi-strip --strip-unneeded $i; mv $i /home/taco/android/out/target/product/ms330/system/lib/modules/; done; fi
mdpath=`find /home/taco/android/out/target/product/ms330/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
----- Making recovery image ------
Copying baseline ramdisk...
Modifying ramdisk contents...
----- Making recovery image ------
/home/taco/android/out/target/product/ms330/recovery.img maxsize=26763264 blocksize=135168 total=11657216 reserve=270336
Made recovery image: /home/taco/android/out/target/product/ms330/recovery.img
Construct recovery from boot
mkdir -p /home/taco/android/out/target/product/ms330/obj/PACKAGING/recovery_patch_intermediates/
PATH=/home/taco/android/out/host/linux-x86/bin:$PATH /home/taco/android/out/host/linux-x86/bin/imgdiff /home/taco/android/out/target/product/ms330/boot.img /home/taco/android/out/target/product/ms330/recovery.img /home/taco/android/out/target/product/ms330/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
Installed file list: /home/taco/android/out/target/product/ms330/installed-files.txt
Target system fs image: /home/taco/android/out/target/product/ms330/obj/PACKAGING/systemimage_intermediates/system.img
failed to reconstruct target deflate chunk 1 [(null)]; treating as normal
Running: mkuserimg.sh -s /home/taco/android/out/target/product/ms330/system /home/taco/android/out/target/product/ms330/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 1288491008 /home/taco/android/out/target/product/ms330/root/file_contexts
make_ext4fs -s -T -1 -S /home/taco/android/out/target/product/ms330/root/file_contexts -l 1288491008 -a system /home/taco/android/out/target/product/ms330/obj/PACKAGING/systemimage_intermediates/system.img /home/taco/android/out/target/product/ms330/system
Creating filesystem with parameters:
Size: 1288491008
Block size: 4096
Blocks per group: 32768
Inodes per group: 7872
Inode size: 256
Journal blocks: 4915
Label:
Transparent compression: none
Blocks: 314573
Block groups: 10
Reserved block group size: 79
chunk 0: type 0 start 0 len 8134666
chunk 1: type 2 start 8134666 len 1387776
chunk 2: type 0 start 8857051 len 530981
Construct patches for 3 chunks...
Created filesystem with 2315/78720 inodes and 130381/314573 blocks
Total files: 1781
Total bytes: 486581250
patch 0 is 281 bytes (of 8134666)
patch 1 is 1507231 bytes (of 722385)
patch 2 is 197 bytes (of 530981)
chunk 0: normal ( 0, 8134666) 281
chunk 1: deflate ( 8134666, 2991239) 1507231 (null)
chunk 2: normal ( 11125905, 531311) 197
Install system fs image: /home/taco/android/out/target/product/ms330/system.img
/home/taco/android/out/target/product/ms330/system.img+/home/taco/android/out/target/product/ms330/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=1315374720 blocksize=135168 total=515817557 reserve=13381632
Package target files: /home/taco/android/out/target/product/ms330/obj/PACKAGING/target_files_intermediates/cm_ms330-target_files-1cfd2b83be.zip
building image from target_files RECOVERY...
building image from target_files BOOT...
putting script in bin/install-recovery.sh

++++ boot ++++

building image from target_files BOOT...

++++ recovery ++++

building image from target_files RECOVERY...

++++ system ++++

creating system.img...
Running: mkuserimg.sh -s /tmp/targetfiles-4FWjmB/system /tmp/system-KXn4TT.img ext4 system 1288491008 -T 1478564714 -C /tmp/targetfiles-4FWjmB/META/filesystem_config.txt -B /tmp/system-blocklist-p841mR.map /tmp/targetfiles-4FWjmB/BOOT/RAMDISK/file_contexts
make_ext4fs -s -T 1478564714 -S /tmp/targetfiles-4FWjmB/BOOT/RAMDISK/file_contexts -C /tmp/targetfiles-4FWjmB/META/filesystem_config.txt -B /tmp/system-blocklist-p841mR.map -l 1288491008 -a system /tmp/system-KXn4TT.img /tmp/targetfiles-4FWjmB/system
loaded 2307 fs_config entries
Creating filesystem with parameters:
Size: 1288491008
Block size: 4096
Blocks per group: 32768
Inodes per group: 7872
Inode size: 256
Journal blocks: 4915
Label:
Transparent compression: none
Blocks: 314573
Block groups: 10
Reserved block group size: 79
Created filesystem with 2317/78720 inodes and 130656/314573 blocks
Total files: 1783
Total bytes: 487701180

++++ userdata ++++

creating userdata.img...
Running: mkuserimg.sh -s /tmp/tmp9cyrWJ/data /tmp/tmpJ0LnqV ext4 data 1860648960 -T 1478564714 /tmp/targetfiles-4FWjmB/BOOT/RAMDISK/file_contexts
make_ext4fs -s -T 1478564714 -S /tmp/targetfiles-4FWjmB/BOOT/RAMDISK/file_contexts -l 1860648960 -a data /tmp/tmpJ0LnqV /tmp/tmp9cyrWJ/data
Creating filesystem with parameters:
Size: 1860648960
Block size: 4096
Blocks per group: 32768
Inodes per group: 8112
Inode size: 256
Journal blocks: 7097
Label:
Transparent compression: none
Blocks: 454260
Block groups: 14
Reserved block group size: 111
Created filesystem with 11/113568 inodes and 14904/454260 blocks
Total files: 0
Total bytes: 0

++++ extrauserdata ++++

++++ cache ++++

creating cache.img...
Running: mkuserimg.sh -s /tmp/tmpp8hRbL/cache /tmp/tmpKcYRha ext4 cache 268435456 -T 1478564714 /tmp/targetfiles-4FWjmB/BOOT/RAMDISK/file_contexts
make_ext4fs -s -T 1478564714 -S /tmp/targetfiles-4FWjmB/BOOT/RAMDISK/file_contexts -l 268435456 -a cache /tmp/tmpKcYRha /tmp/tmpp8hRbL/cache
Creating filesystem with parameters:
Size: 268435456
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 1024
Label:
Transparent compression: none
Blocks: 65536
Block groups: 2
Reserved block group size: 15
Created filesystem with 11/16384 inodes and 2089/65536 blocks
Total files: 0
Total bytes: 0
done.
Package OTA: /home/taco/android/out/target/product/ms330/cm_ms330-ota-1cfd2b83be.zip

Given a target-files zipfile, produces an OTA package that installs
that build. An incremental OTA is produced if -i is given, otherwise
a full OTA is produced.

Usage: ota_from_target_files [flags] input_target_files output_ota_package

--board_config <file>
Deprecated.

-k (--package_key) <key> Key to use to sign the package (default is
the value of default_system_dev_certificate from the input
target-files's META/misc_info.txt, or
"build/target/product/security/testkey" if that value is not
specified).

For incremental OTAs, the default value is based on the source
target-file, not the target build.

-i (--incremental_from) <file>
Generate an incremental OTA using the given target-files zip as
the starting build.

-v (--verify)
Remount and verify the checksums of the files written to the
system and vendor (if used) partitions. Incremental builds only.

-o (--oem_settings) <file>
Use the file to specify the expected OEM-specific properties
on the OEM partition of the intended device.

-w (--wipe_user_data)
Generate an OTA package that will wipe the user data partition
when installed.

-n (--no_prereq)
Omit the timestamp prereq check normally included at the top of
the build scripts (used for developer OTA packages which
legitimately need to go back and forth).

-e (--extra_script) <file>
Insert the contents of file at the end of the update script.

-a (--aslr_mode) <on|off>
Specify whether to turn on ASLR for the package (on by default).

-2 (--two_step)
Generate a 'two-step' OTA package, where recovery is updated
first, so that any changes made to the system partition are done
using the new recovery (new kernel, etc.).

--block
Generate a block-based OTA if possible. Will fall back to a
file-based OTA if the target_files is older and doesn't support
block-based OTAs.

-z Compress the block-based image using LZMA. Results in substantial
space reduction at the cost of longer compress/decompress time.
Requires the "backports.lzma" module to be installed.

-b (--binary) <file>
Use the given binary as the update-binary in the output package,
instead of the binary in the build's target_files. Use for
development only.

-t (--worker_threads) <int>
Specifies the number of worker-threads that will be used when
generating patches for incremental updates (defaults to 3).

--stash_threshold <float>
Specifies the threshold that will be used to compute the maximum
allowed stash size (defaults to 0.8).

--backup <boolean>
Enable or disable the execution of backuptool.sh.
Disabled by default.

--override_device <device>
Override device-specific asserts. Can be a comma-separated list.

--override_prop <boolean>
Override build.prop items with custom vendor init.
Enabled when TARGET_UNIFIED_DEVICE is defined in BoardConfig

-p (--path) <dir>
Prepend <dir>/bin to the list of places to search for binaries
run by this script, and expect to find jars in <dir>/framework.

-s (--device_specific) <file>
Path to the python module containing device-specific
releasetools code.

-x (--extra) <key=value>
Add a key/value pair to the 'extras' dict, which device-specific
extension code may look at.

-v (--verbose)
Show command lines being executed.

-h (--help)
Display this usage message and exit.

build/core/Makefile:1724: recipe for target '/home/taco/android/out/target/product/ms330/cm_ms330-ota-1cfd2b83be.zip' failed
make: *** [/home/taco/android/out/target/product/ms330/cm_ms330-ota-1cfd2b83be.zip] Error 1
make: Leaving directory '/home/taco/android'

#### make failed to build some targets (12:39 (mm:ss)) ####

thanks.