[ 20%] Building CXX object lib/CMakeFiles/mcwamp.dir/mcwamp.cpp.o
#0 0x000000000148093a llvm::sys::PrintStackTrace(llvm::raw_ostream&) /home/jvesely/hcc-clang_tot_upgrade/compiler/lib/Support/Unix/Signals.inc:406:0
#1 0x000000000147eaee llvm::sys::RunSignalHandlers() /home/jvesely/hcc-clang_tot_upgrade/compiler/lib/Support/Signals.cpp:45:0
#2 0x000000000147ec12 SignalHandler(int) /home/jvesely/hcc-clang_tot_upgrade/compiler/lib/Support/Unix/Signals.inc:246:0
#3 0x00007f41b392d5c0 __restore_rt (/lib64/libpthread.so.0+0x115c0)
#4 0x00000000029a0800 /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/AST/Decl.cpp:2047:0
#5 0x00000000029a0800 /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/include/clang/AST/Decl.h:1551:0
#6 0x00000000029a0800 /home/jvesely/hcc-clang_tot_upgrade/compiler/include/llvm/Support/Casting.h:56:0
#7 0x00000000029a0800 /home/jvesely/hcc-clang_tot_upgrade/compiler/include/llvm/Support/Casting.h:96:0
#8 0x00000000029a0800 /home/jvesely/hcc-clang_tot_upgrade/compiler/include/llvm/Support/Casting.h:122:0
#9 0x00000000029a0800 /home/jvesely/hcc-clang_tot_upgrade/compiler/include/llvm/Support/Casting.h:114:0
#10 0x00000000029a0800 /home/jvesely/hcc-clang_tot_upgrade/compiler/include/llvm/Support/Casting.h:133:0
#11 0x00000000029a0800 /home/jvesely/hcc-clang_tot_upgrade/compiler/include/llvm/Support/Casting.h:298:0
#12 0x00000000029a0800 clang::VarDecl::hasInit() const /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/AST/Decl.cpp:2048:0
#13 0x00000000029a0849 clang::VarDecl::getInit() /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/AST/Decl.cpp:2056:0
#14 0x00000000029a7e60 clang::VarDecl::getAnyInitializer(clang::VarDecl const*&) const /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/AST/Decl.cpp:2039:0
#15 0x00000000021b3bef TrackMemoryOperator(clang::Stmt const*, std::vector<clang::Expr*, std::allocator<clang::Expr*> >&) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Sema/SemaDecl.cpp:12833:0
#16 0x00000000021b3a5b TrackMemoryOperator(clang::Stmt const*, std::vector<clang::Expr*, std::allocator<clang::Expr*> >&) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Sema/SemaDecl.cpp:12874:0
#17 0x00000000021bc836 /usr/include/c++/6.3.1/bits/stl_vector.h:656:0
#18 0x00000000021bc836 clang::Sema::ActOnFinishFunctionBody(clang::Decl*, clang::Stmt*, bool) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Sema/SemaDecl.cpp:13044:0
#19 0x0000000001fabf44 clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseStmt.cpp:1964:0
#20 0x0000000001f21984 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/Parser.cpp:1223:0
#21 0x0000000001fb7f42 clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int, clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&, clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseTemplate.cpp:301:0
#22 0x0000000001fb91a1 clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int, clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseTemplate.cpp:149:0
#23 0x0000000001fb938f clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int, clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseTemplate.cpp:39:0
#24 0x0000000001f4474d clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseDecl.cpp:1518:0
#25 0x0000000001f23951 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/Parser.cpp:809:0
#26 0x0000000001f549cd /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/include/clang/Sema/AttributeList.h:630:0
#27 0x0000000001f549cd /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/include/clang/Sema/AttributeList.h:721:0
#28 0x0000000001f549cd /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/include/clang/Parse/Parser.h:1264:0
#29 0x0000000001f549cd clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation, std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation, std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseDeclCXX.cpp:219:0
#30 0x0000000001f54fd2 /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/include/clang/Parse/Parser.h:834:0
#31 0x0000000001f54fd2 clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&, clang::SourceLocation) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseDeclCXX.cpp:200:0
#32 0x0000000001f44778 clang::Parser::ParseDeclaration(unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseDecl.cpp:1531:0
#33 0x0000000001f23951 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/Parser.cpp:809:0
#34 0x0000000001f242b7 /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/include/clang/Sema/AttributeList.h:630:0
#35 0x0000000001f242b7 /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/include/clang/Sema/AttributeList.h:721:0
#36 0x0000000001f242b7 /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/include/clang/Parse/Parser.h:1264:0
#37 0x0000000001f242b7 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/Parser.cpp:624:0
#38 0x0000000001f18bab clang::ParseAST(clang::Sema&, bool, bool) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Parse/ParseAST.cpp:146:0
#39 0x0000000001bf3abf clang::CodeGenAction::ExecuteAction() /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/CodeGen/CodeGenAction.cpp:978:0
#40 0x000000000192e8f6 clang::FrontendAction::Execute() /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Frontend/FrontendAction.cpp:468:0
#41 0x0000000001902416 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/Frontend/CompilerInstance.cpp:951:0
#42 0x00000000019ae052 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:249:0
#43 0x0000000000900b78 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/tools/driver/cc1_main.cpp:221:0
#44 0x00000000008b6f93 ExecuteCC1Tool /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/tools/driver/driver.cpp:299:0
#45 0x00000000008b6f93 main /home/jvesely/hcc-clang_tot_upgrade/compiler/tools/clang/tools/driver/driver.cpp:380:0
#46 0x00007f41b246c401 __libc_start_main /usr/src/debug/glibc-2.24-33-ge9e69e4/csu/../csu/libc-start.c:323:0
#47 0x00000000008fee0a _start (/home/jvesely/hcc-clang_tot_upgrade-build/compiler/bin/clang-5.0+0x8fee0a)
Stack dump:
0. Program arguments: /home/jvesely/hcc-clang_tot_upgrade-build/compiler/bin/clang-5.0 -cc1 -D__KALMAR_AMP__=1 -D__HCC_AMP__=1 -D__KALMAR_CPU__=1 -D__HCC_CPU__=1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name mcwamp.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -coverage-notes-file /home/jvesely/hcc-clang_tot_upgrade-build/lib/CMakeFiles/mcwamp.dir/mcwamp.cpp.gcno -resource-dir /home/jvesely/hcc-clang_tot_upgrade-build/compiler/bin/../lib/clang/5.0.0 -isystem /home/jvesely/hcc-clang_tot_upgrade/utils -D GTEST_HAS_TR1_TUPLE=0 -I /home/jvesely/hcc-clang_tot_upgrade-build/include -I /home/jvesely/hcc-clang_tot_upgrade/include -I /home/jvesely/hcc-clang_tot_upgrade/compiler/include -I /home/jvesely/hcc-clang_tot_upgrade-build/compiler/include -I /home/jvesely/hcc-clang_tot_upgrade-build/lib -D NDEBUG -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1 -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/x86_64-redhat-linux -internal-isystem /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/backward -internal-isystem /usr/local/include -internal-isystem /home/jvesely/hcc-clang_tot_upgrade-build/compiler/bin/../lib/clang/5.0.0/include -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -std=c++amp -fdeprecated-macro -fdebug-compilation-dir /home/jvesely/hcc-clang_tot_upgrade-build/lib -ferror-limit 19 -fmessage-length 80 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o CMakeFiles/mcwamp.dir/mcwamp.cpp.o -x c++ /home/jvesely/hcc-clang_tot_upgrade/lib/mcwamp.cpp
1. /home/jvesely/hcc-clang_tot_upgrade-build/include/amp.h:6020:1: current parser token 'template'
2. /home/jvesely/hcc-clang_tot_upgrade-build/include/amp.h:59:1: parsing namespace 'Concurrency'
3. /home/jvesely/hcc-clang_tot_upgrade-build/include/amp.h:5985:73: parsing function body 'Concurrency::parallel_for_each'
clang-5.0: error: unable to execute command: Segmentation fault (core dumped)
clang-5.0: error: clang frontend command failed due to signal (use -v to see invocation)
HCC clang version 5.0.0 (based on HCC 1.0.17086-4ba7223-945c0e0-5dc7066 )
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/jvesely/hcc-clang_tot_upgrade-build/compiler/bin
clang-5.0: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
clang-5.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-5.0: note: diagnostic msg: /tmp/mcwamp-1dce37.cpp
clang-5.0: note: diagnostic msg: /tmp/mcwamp-1dce37.sh
clang-5.0: note: diagnostic msg:
********************
lib/CMakeFiles/mcwamp.dir/build.make:62: recipe for target 'lib/CMakeFiles/mcwamp.dir/mcwamp.cpp.o' failed