[Android Q&A, Help & Troubleshooting] webstar1:
Hello there guys, i've recently installed ubuntu, and followed this guide along with some debugging and help from others to reach a certain point in getting a successful build. I am however stuck with the following:

host C++: libLLVMCore <= external/llvm/lib/IR/TypeFinder.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Use.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/User.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Value.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/ValueSymbolTable.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/ValueTypes.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Verifier.cpp
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/usr/share/zoneinfo/tzdata
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/root/property_contexts
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/root/seapp_contexts
target thumb C: libmake_ext4fs <= bootable/recovery/utilities/../../../system/extras/ext4_utils/make_ext4fs_main.c
Target buildinfo: /home/zohaib/rom/android/system/out/target/product/pyramid/system/build.prop
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/monkey)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/usr/share/bmd/RFFspeed_501.bmd)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/usr/share/bmd/RFFstd_501.bmd)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/bmgr)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/ime)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/input)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/pm)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/svc)
target Prebuilt: system_etcdir (/home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/hosts)
target Export Resources: framework-res (/home/zohaib/rom/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
Install: /home/zohaib/rom/android/system/out/host/linux-x86/framework/doclava.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar
target Static Jar: android-support-v4-eclair (/home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/android-support-v4-eclair_intermediates/javalib.jar)
target Java: guava (/home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/guava_intermediates/classes)
nothing matches overlay file default_wallpaper.jpg, for flavor ,,,,sw720dp,,,,,,,,,nodpi,,,,,,,
target StaticLib: libLLVMLinker (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMLinker_intermediates/libLLVMLinker.a)
target StaticLib: libLLVMipo (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMipo_intermediates/libLLVMipo.a)
target StaticLib: libLLVMBitWriter (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMBitWriter_intermediates/libLLVMBitWriter.a)
target StaticLib: libLLVMBitReader (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMBitReader_intermediates/libLLVMBitReader.a)
target StaticLib: libLLVMARMCodeGen (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMCodeGen_intermediates/libLLVMARMCodeGen.a)
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
target StaticLib: libLLVMARMAsmParser (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMAsmParser_intermediates/libLLVMARMAsmParser.a)
target StaticLib: libLLVMARMAsmPrinter (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMAsmPrinter_intermediates/libLLVMARMAsmPrinter.a)
target StaticLib: libLLVMARMInfo (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMInfo_intermediates/libLLVMARMInfo.a)
target StaticLib: libLLVMARMDesc (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMDesc_intermediates/libLLVMARMDesc.a)
target StaticLib: libLLVMARMDisassembler (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMDisassembler_intermediates/libLLVMARMDisassembler.a)
target StaticLib: libLLVMSelectionDAG (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMSelectionDAG_intermediates/libLLVMSelectionDAG.a)
target StaticLib: libLLVMCodeGen (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMCodeGen_intermediates/libLLVMCodeGen.a)
target StaticLib: libLLVMObject (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMObject_intermediates/libLLVMObject.a)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
target StaticLib: libLLVMScalarOpts (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMScalarOpts_intermediates/libLLVMScalarOpts.a)
target StaticLib: libLLVMInstCombine (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMInstCombine_intermediates/libLLVMInstCombine.a)
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
target StaticLib: libLLVMInstrumentation (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMInstrumentation_intermediates/libLLVMInstrumentation.a)
target StaticLib: libLLVMTransformObjCARC (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMTransformObjCARC_intermediates/libLLVMTransformObjCARC.a)
target StaticLib: libLLVMTransformUtils (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMTransformUtils_intermediates/libLLVMTransformUtils.a)
target StaticLib: libLLVMipa (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMipa_intermediates/libLLVMipa.a)
target StaticLib: libLLVMAnalysis (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a)
target StaticLib: libLLVMCore (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMCore_intermediates/libLLVMCore.a)
target StaticLib: libLLVMVectorize (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMVectorize_intermediates/libLLVMVectorize.a)
target StaticLib: libLLVMWrap (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMWrap_intermediates/libLLVMWrap.a)
target StaticLib: libLLVMBitReader_2_7 (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMBitReader_2_7_intermediates/libLLVMBitReader_2_7.a)
target StaticLib: libLLVMBitReader_3_0 (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMBitReader_3_0_intermediates/libLLVMBitReader_3_0.a)
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/lib/egl/egl.cfg
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/lib/libz.so
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/lib/libexpat.so
host StaticLib: libLLVMObject (/home/zohaib/rom/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMObject_intermediates/libLLVMObject.a)
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/bluetooth/bt_stack.conf
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/bluetooth/bt_did.conf
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/bluetooth/auto_pair_devlist.conf
target Java: android-support-v13-ics-mr1 (/home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/android-support-v13-ics-mr1_intermediates/classes)
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/android-common-chips_intermediates/classes-jarjar.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/colorpicker_intermediates/classes-jarjar.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/android-opt-timezonepicker_intermediates/classes-jarjar.jar
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/ExtendedCodec.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/ThrottledSource.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/TimeSource.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/TimedEventQueue.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/Utils.cpp
frameworks/av/media/libstagefright/ExtendedCodec.cpp: In static member function 'static void android::ExtendedCodec::enableSmoothStreaming(const android::sp<android::IOMX>&, android::IOMX::node_id, bool*, const char*)':
frameworks/av/media/libstagefright/ExtendedCodec.cpp:368:27: error: expected primary-expression before ')' token
make: *** [/home/zohaib/rom/android/system/out/target/product/pyramid/obj/SHARED_LIBRARIES/libstagefright_intermediates/ExtendedCodec.o] Error 1
make: *** Waiting for unfinished jobs....

/home/zohaib/rom/android/system/out/target/product/pyramid/pac_pyramid-ota-eng.root.zip doesn't exist!
Total time elapsed: 29 minutes 33 seconds
root@zohaib-eME732:~/rom/android/system#

I can see the error:

frameworks/av/media/libstagefright/ExtendedCodec.cpp:368:27: error: expected primary-expression before ')' token

But i dont know how to fix it, any help is appreciated

FYI im a total noob in terms of building and ubuntu, first time doing it :)