[Samsung Epic 4G Touch] ubuntunerd:
a little help please

first let me say this is awesome tutorial and im glad we have it thank you Chris for making it for all of us that are totally new to compiling from source or porting android.

i followed it to the T but im not sure what i did wrong, is there any way possible you can help?

__ __
__ __/ /_ __ ______ / /___ __
/ / / / __ \/ / / / __ \/ __/ / / /
/ /_/ / /_/ / /_/ / / / / /_/ /_/ /
\__,_/_.___/\__,_/_/ /_/\__/\__,_/

__
____ ___ _________/ /
/ __ \/ _ \/ ___/ __ /
/ / / / __/ / / /_/ /
/_/ /_/\___/_/ \__,_/

ubuntunerd@ubuntunerd-ubuntu:~$ cd ~/android/system/
ubuntunerd@ubuntunerd-ubuntu:~/android/system$ e4gttools/apply.sh
error: no project has branch auto
### fix ringtones

*****************************
Current Directory: packages/apps/Phone
*****************************
HEAD is now at dbaf4b3 Fix translation
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2427 100 2427 0 0 1826 0 0:00:01 0:00:01 --:--:-- 2019
(Stripping trailing CRs from patch.)
patching file src/com/android/phone/CallNotifier.java
(Stripping trailing CRs from patch.)
patching file src/com/android/phone/Ringer.java
SUCCESS: e4gttools/apply.sh has completed.
ubuntunerd@ubuntunerd-ubuntu:~/android/system$ . build/envsetup.sh && breakfast cm_epic4gtouch-userdebug
including device/samsung/epic4gtouch/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/vendorsetup.sh
Looking for dependencies

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_epic4gtouch
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================

ubuntunerd@ubuntunerd-ubuntu:~/android/system$ export USE_CCACHE=1 CM_EXPERIMENTAL=1
ubuntunerd@ubuntunerd-ubuntu:~/android/system$ mka bacon
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_epic4gtouch
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/dynamic_binary.mk:112: warning: overriding commands for target `.so'
build/core/dynamic_binary.mk:95: warning: ignoring old commands for target `.so'
build/core/shared_library.mk:54: warning: overriding commands for target `.so'
build/core/dynamic_binary.mk:112: warning: ignoring old commands for target `.so'
system/core/toolbox/Android.mk:98: warning: overriding commands for target `out/target/product/epic4gtouch/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/epic4gtouch/system/bin/lsof'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/epic4gtouch/system/app/Superuser.apk'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/epic4gtouch/system/app/Superuser.apk'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/epic4gtouch/system/etc/mkshrc'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/epic4gtouch/system/etc/mkshrc'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/epic4gtouch/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/epic4gtouch/system/etc/wifi/wpa_supplicant.conf'
No private recovery resources for TARGET_DEVICE epic4gtouch
make -C kernel/samsung/epic4gtouch O=/home/ubuntunerd/android/system/out/target/product/epic4gtouch/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/ubuntunerd/android/system/prebuilt/linux-x86/ccache/ccache /home/ubuntunerd/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" headers_install
make[1]: Entering directory `/home/ubuntunerd/android/system/kernel/samsung/epic4gtouch'
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
true
host StaticLib: libz (out/host/linux-x86/obj/STATIC_LIBRARIES/libz_intermediates/libz.a)
target SharedLib: libdl (out/target/product/epic4gtouch/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
target StaticLib: libc_common (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
CHK include/linux/version.h
UPD include/linux/version.h
target StaticLib: libext2fs (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2fs_intermediates/libext2fs.a)
target StaticLib: libext2_blkid (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/libext2_blkid.a)
target StaticLib: libext2_uuid (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_uuid_intermediates/libext2_uuid.a)
target StaticLib: libext2_profile (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_profile_intermediates/libext2_profile.a)
HOSTCC scripts/unifdef
target StaticLib: libext2_com_err (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_com_err_intermediates/libext2_com_err.a)
target StaticLib: libext2_e2p (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_e2p_intermediates/libext2_e2p.a)
target StaticLib: libext4_utils (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext4_utils_intermediates/libext4_utils.a)
target StaticLib: libz (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libz_intermediates/libz.a)
target StaticLib: libminzip (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libminzip_intermediates/libminzip.a)
target StaticLib: libunz (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libunz_intermediates/libunz.a)
target StaticLib: libmincrypt (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
target StaticLib: libminizip (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libminizip_intermediates/libminizip.a)
Lex: libedify <= bootable/recovery/edify/lexer.l
/bin/bash: flex: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/edify_intermediates/lexer.cpp] Error 127
make: *** Waiting for unfinished jobs....
INSTALL include/asm-generic (34 files)
INSTALL include/drm (13 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/mtd (5 files)
INSTALL include/linux/caif (2 files)
INSTALL include/linux/can (4 files)
INSTALL include/rdma (6 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/scsi/fc (4 files)
INSTALL include/linux/isdn (1 file)
INSTALL include/scsi (3 files)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter (69 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/linux/netfilter_ipv4 (14 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/nfsd (6 files)
INSTALL include/sound (8 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/video (3 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/xen (2 files)
INSTALL include/linux/usb (9 files)
INSTALL include (0 file)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (364 files)
INSTALL include/asm (32 files)
make[1]: Leaving directory `/home/ubuntunerd/android/system/kernel/samsung/epic4gtouch'
ubuntunerd@ubuntunerd-ubuntu:~/android/system$

now im getting:

make: *** [out/host/linux-x86/obj/EXECUTABLES/edify_intermediates/lexer.cpp] Error 127
make: *** Waiting for unfinished jobs....
/bin/bash: flex: command not found
make: *** [out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp] Error 127
ubuntunerd@ubuntunerd-ubuntu:~/android/system$