[Android Q&A, Help & Troubleshooting] hichris123:
I just ran Make Email -j16 -k, and I got a bunch of errors. Here's the output:

host C++: libaapt_32 <= frameworks/base/tools/aapt/Command.cpp

prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/x86_64-linux-g++ -I external/libpng -I external/zlib -I frameworks/base/tools/aapt -I out/host/linux-x86/obj32/STATIC_LIBRARIES/libaapt_intermediates -I out/host/linux-x86/gen/STATIC_LIBRARIES/libaapt_intermediates -I libnativehelper/include/nativehelper -isystem system/core/include -isystem hardware/libhardware/include -isystem hardware/libhardware_legacy/include -isystem hardware/ril/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 out/host/linux-x86/obj/include -c -fno-exceptions -Wno-multichar -mstackrealign -msse3 -mfpmath=sse -m32 -Wa,--noexecstack -march=prescott -fPIC -no-canonical-prefixes -include build/core/combo/include/arch/linux-x86/AndroidConfig.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -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 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -Wsign-promo -DNDEBUG -UDEBUG -Wno-format-y2k -DSTATIC_ANDROIDFW_FOR_TOOLS -DAAPT_VERSION="eng.family.20150102.154146" -fPIC -MD -MF out/host/linux-x86/obj32/STATIC_LIBRARIES/libaapt_intermediates/Command.d -o out/host/linux-x86/obj32/STATIC_LIBRARIES/libaapt_intermediates/Command.o frameworks/base/tools/aapt/Command.cpp

In file included from prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/include/c++/4.6/bits/basic_ios.h:39:0,

from prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/include/c++/4.6/ios:45,

from prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/include/c++/4.6/ostream:40,

from prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/include/c++/4.6/iostream:40,

from frameworks/base/tools/aapt/Command.cpp:26:

prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/include/c++/4.6/bits/locale_facets.h:1182:15: error: 'wctype_t' does not name a type

prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/include/c++/4.6/bits/locale_facets.h:1194:7: error: '__wmask_type' does not name a type

prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/include/c++/4.6/bits/locale_facets.h:1223:7: error: '__wmask_type' does not name a type

make: *** [out/host/linux-x86/obj32/STATIC_LIBRARIES/libaapt_intermediates/Command.o] Error 1

#### make failed to build some targets (37 seconds) ####

I'm running Ubuntu 14.04, and I donwloaded all the required packages. How might I fix this?