[Galaxy S 4 i9505 Original Android Development] a2441918:
Thanks mate. It worked. I owe you a lot.

realmake[1]: Leaving directory `/home/audiogod/SOKP/aosp/kernel/samsung/exynos5410'
mdpath=`find out/target/product/i9500/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 mv $i out/target/product/i9500/system/lib/modules/; done; fi
mdpath=`find out/target/product/i9500/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
mdpath=`find out/target/product/i9500/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 mv $i out/target/product/i9500/system/lib/modules/; done; fi
mdpath=`find out/target/product/i9500/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
target Prebuilt: (out/target/product/i9500/kernel)
Target boot image: out/target/product/i9500/boot.img
out/target/product/i9500/boot.img maxsize=8562048 blocksize=4224 total=6316032 reserve=88704
----- Making recovery filesystem ------
Copying baseline ramdisk...
Modifying ramdisk contents...
out/target/product/i9500/recovery.img maxsize=8562048 blocksize=4224 total=6881280 reserve=88704
Made recovery image: out/target/product/i9500/recovery.img
Construct recovery from boot
mkdir -p out/target/product/i9500/obj/PACKAGING/recovery_patch_intermediates/
PATH=out/host/linux-x86/bin:$PATH out/host/linux-x86/bin/imgdiff out/target/product/i9500/boot.img out/target/product/i9500/recovery.img out/target/product/i9500/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p
Installed file list: out/target/product/i9500/installed-files.txt
Target system fs image: out/target/product/i9500/obj/PACKAGING/systemimage_intermediates/system.img
Running: mkuserimg.sh -s out/target/product/i9500/system out/target/product/i9500/obj/PACKAGING/systemimage_intermediates/system.img ext4 system 2898264064 out/target/product/i9500/root/file_contexts
+ echo 'in mkuserimg.sh PATH=out/host/linux-x86/bin/:/usr/lib/jvm/java-6-sun/bin:/home/audiogod/SOKP/aosp/out/host/linux-x86/bin:/home/audiogod/SOKP/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin:/home/audiogod/SOKP/aosp/development/emulator/qtools:/home/audiogod/SOKP/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin:/home/audiogod/SOKP/aosp/development/scripts:/home/audiogod/SOKP/aosp/prebuilts/devtools/tools:/home/audiogod/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/audiogod/bin'
in mkuserimg.sh PATH=out/host/linux-x86/bin/:/usr/lib/jvm/java-6-sun/bin:/home/audiogod/SOKP/aosp/out/host/linux-x86/bin:/home/audiogod/SOKP/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin:/home/audiogod/SOKP/aosp/development/emulator/qtools:/home/audiogod/SOKP/aosp/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin:/home/audiogod/SOKP/aosp/development/scripts:/home/audiogod/SOKP/aosp/prebuilts/devtools/tools:/home/audiogod/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/audiogod/bin
+ ENABLE_SPARSE_IMAGE=
+ '[' -s = -s ']'
+ ENABLE_SPARSE_IMAGE=-s
+ shift
+ '[' 6 -ne 5 -a 6 -ne 6 ']'
+ SRC_DIR=out/target/product/i9500/system
+ '[' '!' -d out/target/product/i9500/system ']'
+ OUTPUT_FILE=out/target/product/i9500/obj/PACKAGING/systemimage_intermediates/system.img
+ EXT_VARIANT=ext4
+ MOUNT_POINT=system
+ SIZE=2898264064
+ FC=out/target/product/i9500/root/file_contexts
+ case $EXT_VARIANT in
+ '[' -z system ']'
+ '[' -z 2898264064 ']'
+ '[' -n out/target/product/i9500/root/file_contexts ']'
+ FCOPT='-S out/target/product/i9500/root/file_contexts'
+ MAKE_EXT4FS_CMD='make_ext4fs -s -S out/target/product/i9500/root/file_contexts -l 2898264064 -a system out/target/product/i9500/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/i9500/system'
+ echo make_ext4fs -s -S out/target/product/i9500/root/file_contexts -l 2898264064 -a system out/target/product/i9500/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/i9500/system
make_ext4fs -s -S out/target/product/i9500/root/file_contexts -l 2898264064 -a system out/target/product/i9500/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/i9500/system
+ make_ext4fs -s -S out/target/product/i9500/root/file_contexts -l 2898264064 -a system out/target/product/i9500/obj/PACKAGING/systemimage_intermediates/system.img out/target/product/i9500/system
Creating filesystem with parameters:
Size: 2898264064
Block size: 4096
Blocks per group: 32768
Inodes per group: 8048
Inode size: 256
Journal blocks: 11056
Label:
Blocks: 707584
Block groups: 22
Reserved block group size: 175
Created filesystem with 1574/177056 inodes and 96122/707584 blocks
+ '[' 0 -ne 0 ']'

Been here for almost 15 mins and even after restarting the build, its the same. Can you guide me on this? I think most probably the system.img is done the zip will pack.