Error in building: Packaging Android(ETC2) through unreal source code in Linux(Debian 9)

Hi,

I have been trying to package my game for Android(ETC2). I have been searching on net for error but couldnt figure out whats wrong.

********************
[288/320] clang++ Module.UELinkerFixups.cpp [armv7-es2]
[289/320] clang++ cpu-features-patched.c [armv7-es2]
[290/320] clang++ android_native_app_glue.c [armv7-es2]
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/Module-604db5.cpp
clang: note: diagnostic msg: /tmp/Module-604db5.sh
clang: note: diagnostic msg: 

********************
clang: /s/ndk-toolchain/src/llvm-3.6/llvm/tools/clang/lib/AST/DeclBase.cpp:1299: clang::DeclContext::lookup_result clang::DeclContext::lookup(clang::DeclarationName): Assertion `DeclKind != Decl::LinkageSpec && "Should not perform lookups into linkage specs!"' failed.
0  clang           0x00000000025316e2 llvm::sys::PrintStackTrace(_IO_FILE*) + 34
1  clang           0x000000000252fa11
2  libpthread.so.0 0x00007f88f72f90c0
3  libc.so.6       0x00007f88f6648fcf gsignal + 207
4  libc.so.6       0x00007f88f664a3fa abort + 362
5  libc.so.6       0x00007f88f6641e37
6  libc.so.6       0x00007f88f6641ee2
7  clang           0x00000000014a62d7 clang::DeclContext::lookup(clang::DeclarationName) + 903
8  clang           0x0000000001497ad4 clang::FunctionDecl::getCorrespondingUnsizedGlobalDeallocationFunction() const + 276
9  clang           0x0000000000b4170e clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef, llvm::Type*, clang::GlobalDecl, bool, bool, bool, llvm::AttributeSet) + 1054
10 clang           0x0000000000b4c459 clang::CodeGen::CodeGenModule::GetAddrOfFunction(clang::GlobalDecl, llvm::Type*, bool, bool) + 89
11 clang           0x0000000000c04d85
12 clang           0x0000000000c06d64 clang::CodeGen::CodeGenFunction::EmitDeleteCall(clang::FunctionDecl const*, llvm::Value*, clang::QualType) + 436
13 clang           0x0000000000bc814b
14 clang           0x0000000000bd1ef6
15 clang           0x0000000000bd3192 clang::CodeGen::CodeGenFunction::PopCleanupBlock(bool) + 2306
16 clang           0x0000000000bccd7e clang::CodeGen::CodeGenFunction::EmitDestructorBody(clang::CodeGen::FunctionArgList&) + 110
17 clang           0x0000000000b3316c clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 556
18 clang           0x0000000000bae864 clang::CodeGen::CodeGenModule::codegenCXXStructor(clang::CXXMethodDecl const*, clang::CodeGen::StructorType) + 244
19 clang           0x0000000000b76787
20 clang           0x0000000000b4df6c clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) + 652
21 clang           0x0000000000b4fad7 clang::CodeGen::CodeGenModule::EmitDeferred() + 263
22 clang           0x0000000000b52159 clang::CodeGen::CodeGenModule::Release() + 9
23 clang           0x0000000000ae0d9e
24 clang           0x0000000000c89763 clang::ParseAST(clang::Sema&, bool, bool) + 483
25 clang           0x0000000000ae1a4b clang::CodeGenAction::ExecuteAction() + 59
26 clang           0x0000000000942656 clang::FrontendAction::Execute() + 118
27 clang           0x0000000000920849 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 345
28 clang           0x0000000000908a3e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1982
29 clang           0x0000000000901b58 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 1112
30 clang           0x00000000008e1516 main + 4598
31 libc.so.6       0x00007f88f66362b1 __libc_start_main + 241
32 clang           0x0000000000900a35
Stack dump:
0.	Program arguments: /home/rsinha/Android/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/linux-x86_64/bin/clang -cc1 -triple armv7-none-linux-androideabi -emit-obj -disable-free -main-file-name Module.UE4Game.cpp -mrelocation-model pic -pic-level 1 -mthread-model posix -mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu cortex-a8 -target-feature +soft-float-abi -target-feature +vfp3 -target-feature +d16 -target-feature -neon -target-abi aapcs-linux -mfloat-abi soft -target-linker-version 2.24 -gdwarf-4 -dwarf-column-info -ffunction-sections -fdata-sections -coverage-file /home/rsinha/UnrealEngine/Engine/Intermediate/Build/Android/UE4Game/Development/UE4Game/Module.UE4Game.cpp-armv7-es2.o -resource-dir /home/rsinha/Android/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/linux-x86_64/bin/../lib/clang/3.6 -include-pch /home/rsinha/UnrealEngine/Engine/Intermediate/Build/Android/UE4Game/Development/Engine/SharedPCH.Engine-armv7-es2.h.gch -include /home/rsinha/UnrealEngine/Engine/Intermediate/Build/Android/UE4Game/Development/UE4Game/Definitions.UE4Game.h -D PLATFORM_64BITS=0 -D PLATFORM_ANDROID_ARM=1 -I /home/rsinha/Android/android-ndk-r10e//sources/cxx-stl/gnu-libstdc++/4.9/include -I /home/rsinha/Android/android-ndk-r10e//sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -I /home/rsinha/Android/android-ndk-r10e//sources/android/native_app_glue -I /home/rsinha/Android/android-ndk-r10e//sources/android/cpufeatures -I /home/rsinha/UnrealEngine/Engine/Source -I Runtime/UE4Game -I Runtime/Core/Public -I Runtime/Core/Public/Internationalization -I Runtime/Core/Public/Async -I Runtime/Core/Public/Containers -I Runtime/Core/Public/Delegates -I Runtime/Core/Public/GenericPlatform -I Runtime/Core/Public/HAL -I Runtime/Core/Public/Logging -I Runtime/Core/Public/Math -I Runtime/Core/Public/Misc -I Runtime/Core/Public/Modules -I Runtime/Core/Public/Modules/Boilerplate -I Runtime/Core/Public/ProfilingDebugging -I Runtime/Core/Public/Serialization -I Runtime/Core/Public/Serialization/Csv -I Runtime/Core/Public/Stats -I Runtime/Core/Public/Templates -I Runtime/Core/Public/UObject -I Runtime/Core/Public/Android -I Runtime/Core -I Runtime/CoreUObject/Public -I Runtime/CoreUObject/Public/Blueprint -I Runtime/CoreUObject/Public/Internationalization -I Runtime/CoreUObject/Public/Misc -I Runtime/CoreUObject/Public/Serialization -I Runtime/CoreUObject/Public/Templates -I Runtime/CoreUObject/Public/UObject -I ../Intermediate/Build/Android/UE4/Inc/CoreUObject -I Runtime/CoreUObject -I Runtime/Engine/Classes -I Runtime/Engine/Public -I Runtime/Engine/Public/AI -I Runtime/Engine/Public/AI/Navigation -I Runtime/Engine/Public/Animation -I Runtime/Engine/Public/Curves -I Runtime/Engine/Public/EdGraph -I Runtime/Engine/Public/Features -I Runtime/Engine/Public/Internationalization -I Runtime/Engine/Public/Net -I Runtime/Engine/Public/PacketHandlers -I Runtime/Engine/Public/Performance -I Runtime/Engine/Public/Physics -I Runtime/Engine/Public/Rendering -I Runtime/Engine/Public/Slate -I Runtime/Engine/Public/Tests -I Runtime/Engine/Public/VisualLogger -I ../Intermediate/Build/Android/UE4/Inc/Engine -I Runtime/Engine -I Runtime/Json/Public -I Runtime/Json/Public/Dom -I Runtime/Json/Public/Policies -I Runtime/Json/Public/Serialization -I Runtime/Json -I Runtime/SlateCore/Public -I Runtime/SlateCore/Public/Animation -I Runtime/SlateCore/Public/Application -I Runtime/SlateCore/Public/Brushes -I Runtime/SlateCore/Public/Fonts -I Runtime/SlateCore/Public/Input -I Runtime/SlateCore/Public/Layout -I Runtime/SlateCore/Public/Logging -I Runtime/SlateCore/Public/Rendering -I Runtime/SlateCore/Public/Sound -I Runtime/SlateCore/Public/Stats -I Runtime/SlateCore/Public/Styling -I Runtime/SlateCore/Public/Textures -I Runtime/SlateCore/Public/Types -I Runtime/SlateCore/Public/Widgets -I ../Intermediate/Build/Android/UE4/Inc/SlateCore -I Runtime/SlateCore -I Runtime/InputCore/Classes -I Runtime/InputCore/Public -I ../Intermediate/Build/Android/UE4/Inc/InputCore -I Runtime/InputCore -I Runtime/Slate/Public -I Runtime/Slate/Public/Framework -I Runtime/Slate/Public/Framework/Application -I Runtime/Slate/Public/Framework/Commands -I Runtime/Slate/Public/Framework/Docking -I Runtime/Slate/Public/Framework/Layout -I Runtime/Slate/Public/Framework/MetaData -I Runtime/Slate/Public/Framework/MultiBox -I Runtime/Slate/Public/Framework/Notifications -I Runtime/Slate/Public/Framework/Styling -I Runtime/Slate/Public/Framework/Text -I Runtime/Slate/Public/Framework/Text/Android -I Runtime/Slate/Public/Framework/Views -I Runtime/Slate/Public/Widgets -I Runtime/Slate/Public/Widgets/Colors -I Runtime/Slate/Public/Widgets/Docking -I Runtime/Slate/Public/Widgets/Images -I Runtime/Slate/Public/Widgets/Input -I Runtime/Slate/Public/Widgets/LayerManager -I Runtime/Slate/Public/Widgets/Layout -I Runtime/Slate/Public/Widgets/Navigation -I Runtime/Slate/Public/Widgets/Notifications -I Runtime/Slate/Public/Widgets/Text -I Runtime/Slate/Public/Widgets/Views -I ../Intermediate/Build/Android/UE4/Inc/Slate -I Runtime/Slate -I Runtime/ImageWrapper/Public -I Runtime/ImageWrapper/Public/Interfaces -I Runtime/ImageWrapper -I Runtime/Messaging/Public -I Runtime/Messaging/Public/Deprecated -I Runtime/Messaging/Public/Helpers -I Runtime/Messaging -I Runtime/RenderCore/Public -I Runtime/RenderCore -I Runtime/RHI/Public -I Runtime/RHI -I Runtime/ShaderCore/Public -I Runtime/ShaderCore -I Runtime/UtilityShaders/Public -I Runtime/UtilityShaders -I Runtime/AssetRegistry/Public -I ../Intermediate/Build/Android/UE4/Inc/AssetRegistry -I Runtime/AssetRegistry -I Runtime/EngineMessages/Public -I ../Intermediate/Build/Android/UE4/Inc/EngineMessages -I Runtime/EngineMessages -I Runtime/EngineSettings/Classes -I Runtime/EngineSettings/Public -I ../Intermediate/Build/Android/UE4/Inc/EngineSettings -I Runtime/EngineSettings -I Runtime/SynthBenchmark/Public -I Runtime/SynthBenchmark -I Runtime/Renderer/Public -I Runtime/Renderer -I Runtime/GameplayTags/Classes -I Runtime/GameplayTags/Public -I ../Intermediate/Build/Android/UE4/Inc/GameplayTags -I Runtime/GameplayTags -I Runtime/AIModule/Public -I Runtime/AIModule/Classes -I ../Intermediate/Build/Android/UE4/Inc/AIModule -I Runtime/AIModule -I Runtime/GameplayTasks/Classes -I Runtime/GameplayTasks/Public -I ../Intermediate/Build/Android/UE4/Inc/GameplayTasks -I Runtime/GameplayTasks -I Runtime/DatabaseSupport/Public -I Runtime/DatabaseSupport -I Runtime/PacketHandlers/PacketHandler/Classes -I Runtime/PacketHandlers/PacketHandler/Public -I ../Intermediate/Build/Android/UE4/Inc/PacketHandler -I Runtime/PacketHandlers/PacketHandler -I Runtime/PacketHandlers/ReliabilityHandlerComponent/Public -I Runtime/PacketHandlers/ReliabilityHandlerComponent -I Runtime/HardwareSurvey/Public -I Runtime/HardwareSurvey -I Runtime/ClothingSystemRuntimeInterface/Public -I ../Intermediate/Build/Android/UE4/Inc/ClothingSystemRuntimeInterface -I Runtime/ClothingSystemRuntimeInterface -I Runtime/NetworkReplayStreaming/NetworkReplayStreaming/Public -I Runtime/NetworkReplayStreaming/NetworkReplayStreaming -I Runtime/AudioMixer/Classes -I Runtime/AudioMixer/Public -I Runtime/AudioMixer/Public/Components -I Runtime/AudioMixer/Public/DSP -I ../Intermediate/Build/Android/UE4/Inc/AudioMixer -I Runtime/AudioMixer -isysroot /home/rsinha/Android/android-ndk-r10e/platforms/android-21/arch-arm -internal-isystem /home/rsinha/Android/android-ndk-r10e/platforms/android-21/arch-arm/usr/local/include -internal-isystem /home/rsinha/Android/android-ndk-r10e/toolchains/llvm-3.6/prebuilt/linux-x86_64/bin/../lib/clang/3.6/include -internal-externc-isystem /home/rsinha/Android/android-ndk-r10e/platforms/android-21/arch-arm/include -internal-externc-isystem /home/rsinha/Android/android-ndk-r10e/platforms/android-21/arch-arm/usr/include -O3 -Wall -Wno-unused-variable -Wno-unused-function -Wno-switch -Wno-tautological-compare -Wno-unused-private-field -Wno-local-type-template-args -Wno-return-type-c-linkage -Wno-reorder -Wno-unknown-pragmas -Wno-invalid-offsetof -Wno-logical-op-parentheses -Wshadow -Wno-error=shadow -Wundef -Wno-error=undef -Wno-undefined-bool-conversion -Wno-gnu-string-literal-operator-template -Wno-unused-local-typedef -Wno-inconsistent-missing-override -Werror -std=c++14 -fdeprecated-macro -fdebug-compilation-dir /home/rsinha/UnrealEngine/Engine/Source -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fno-rtti -fobjc-runtime=gcc -fdiagnostics-show-option -fdiagnostics-format msvc -vectorize-loops -vectorize-slp -o /home/rsinha/UnrealEngine/Engine/Intermediate/Build/Android/UE4Game/Development/UE4Game/Module.UE4Game.cpp-armv7-es2.o -x c++ /home/rsinha/UnrealEngine/Engine/Intermediate/Build/Android/UE4Game/Development/UE4Game/Module.UE4Game.cpp 
1.	<eof> parser at end of file
2.	Per-file LLVM IR generation
3.	Runtime/Core/Public/Modules/ModuleManager.h:682:7: Generating code for declaration 'FDefaultModuleImpl::~FDefaultModuleImpl'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.6 
Target: armv7-none-linux-androideabi
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://source.android.com/source/report-bugs.html and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/Module-06d195.cpp
clang: note: diagnostic msg: /tmp/Module-06d195.sh
clang: note: diagnostic msg: 

********************
ERROR: UBT ERROR: Failed to produce item: /home/rsinha/UnrealEngine/Engine/Binaries/Android/UE4Game-armv7-es2.so
Total build time: 1213.02 seconds (Local executor: 0.00 seconds)

I have searched on net about this error, but couldn’t find any solution.

Error Log File - https://drive.google.com/open?id=0B87Z_P-ybOoqMUQ3c2otTnVYS0E