I encountered an error when trying compile a C++ code for offloading to amdgcn-amd-amdhsa.
[ 0%] Building CXX object example/vectorAdd/CMakeFiles/vectorAdd.dir/src/main.cpp.o
cd /home/kelling/checkout/alpaka/build/example/vectorAdd && /home/kelling/rocm/aomp/bin/clang++ -DALPAKA_ACC_CPU_BT_OMP4_ENABLED -DALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED -DALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLED -DALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED -DALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLED -DALPAKA_DEBUG=1 -DBOOST_ALL_NO_LIB -I/home/kelling/checkout/alpaka/include -isystem /home/kelling/checkout/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-8.3.0/boost-1.70.0-acaxl7cie57ccno6sjxmfgn2usv3243b/include --target=x86_64-pc-linux-gnu -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx900 -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-disabled-macro-expansion -Wno-global-constructors -Wno-padded -fopenmp=libomp -fopenmp-version=40 -o CMakeFiles/vectorAdd.dir/src/main.cpp.o -c /home/kelling/checkout/alpaka/example/vectorAdd/src/main.cpp
clang-8: /home/kelling/rocm/aomp_0.6-6/include/llvm/Support/Casting.h:255: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = clang::StringLiteral; Y = const clang::Expr; typename llvm::cast_retty<X, Y*>::ret_type = const clang::StringLiteral*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Stack dump:
0. Program arguments: /home/kelling/rocm/aomp_0.6-6/bin/clang-8 -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-pc-linux-gnu -std=c++11 -emit-llvm-bc -emit-llvm-uselists -disable-free -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -mconstructor-aliases -fuse-init-array -target-cpu gfx900 -fcuda-is-device -dwarf-column-info -debugger-tuning=gdb -coverage-notes-file /home/kelling/checkout/alpaka/build/example/vectorAdd/CMakeFiles/vectorAdd.dir/src/main.cpp.gcno -resource-dir /home/kelling/rocm/aomp_0.6-6/lib/clang/8.0.1 -isystem /home/kelling/checkout/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-8.3.0/boost-1.70.0-acaxl7cie57ccno6sjxmfgn2usv3243b/include -isystem /home/kelling/checkout/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-8.3.0/boost-1.70.0-acaxl7cie57ccno6sjxmfgn2usv3243b/include -D ALPAKA_ACC_CPU_BT_OMP4_ENABLED -D ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED -D ALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLED -D ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED -D ALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLED -D ALPAKA_DEBUG=1 -D BOOST_ALL_NO_LIB -I /home/kelling/checkout/alpaka/include -D ALPAKA_ACC_CPU_BT_OMP4_ENABLED -D ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED -D ALPAKA_ACC_CPU_B_SEQ_T_OMP2_ENABLED -D ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLED -D ALPAKA_ACC_CPU_B_SEQ_T_THREADS_ENABLED -D ALPAKA_DEBUG=1 -D BOOST_ALL_NO_LIB -I /home/kelling/checkout/alpaka/include -I/home/kelling/checkout/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-8.3.0/boost-1.70.0-acaxl7cie57ccno6sjxmfgn2usv3243b/include -I/opt/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-8.3.0/pkgconf-1.6.0-espbmjgms57ao5jfwcywhqvxfcectpqi/include -I/home/kelling/checkout/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-8.3.0/openmpi-3.1.4-wz5hptqns7t4mvlooh5jx2cchjqm7w2h/include -I/opt/spack/opt/spack/linux-ubuntu18.04-x86_64/gcc-7.3.0/gcc-8.3.0-pttzhrjx2abqtbwkzrmrowgcgkargro6/include -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/x86_64-linux-gnu/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/x86_64-linux-gnu/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/backward -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/x86_64-linux-gnu/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/x86_64-linux-gnu/c++/7.4.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/backward -internal-isystem /home/kelling/rocm/aomp_0.6-6/bin/../include -internal-isystem /home/kelling/rocm/aomp_0.6-6/bin/../include -internal-isystem /usr/local/include -internal-isystem /home/kelling/rocm/aomp_0.6-6/lib/clang/8.0.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -internal-isystem /home/kelling/rocm/aomp_0.6-6/lib/clang/8.0.1/include/cuda_wrappers -internal-isystem /home/kelling/rocm/aomp_0.6-6/bin/../include -internal-isystem /usr/local/include -internal-isystem /home/kelling/rocm/aomp_0.6-6/lib/clang/8.0.1/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-disabled-macro-expansion -Wno-global-constructors -Wno-padded -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-disabled-macro-expansion -Wno-global-constructors -Wno-padded -fdeprecated-macro -fdebug-compilation-dir /home/kelling/checkout/alpaka/build/example/vectorAdd -ferror-limit 19 -fmessage-length 0 -fopenmp -fopenmp-version=40 -fopenmp-version=40 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o /tmp/main-gfx900-b6b103.bc -x c++ /home/kelling/checkout/alpaka/example/vectorAdd/src/main.cpp -fopenmp-is-device -fopenmp-host-ir-file-path /tmp/main-b8f46f.bc -faddrsig
1. <eof> parser at end of file
2. /home/kelling/checkout/alpaka/include/alpaka/queue/Traits.hpp:54:29: instantiating function definition 'alpaka::queue::enqueue<alpaka::queue::QueueOmp4Blocking, const alpaka::kernel::TaskKernelCpuOmp4<std::integral_constant<unsigned long, 1>, unsigned long, VectorAddKernel, unsigned int *, unsigned int *, unsigned int *, unsigned long> &>'
3. /home/kelling/checkout/alpaka/include/alpaka/queue/QueueOmp4Blocking.hpp:186:44: instantiating function definition 'alpaka::queue::traits::Enqueue<alpaka::queue::QueueOmp4Blocking, alpaka::kernel::TaskKernelCpuOmp4<std::integral_constant<unsigned long, 1>, unsigned long, VectorAddKernel, unsigned int *, unsigned int *, unsigned int *, unsigned long>, void>::enqueue'
4. /home/kelling/checkout/alpaka/include/alpaka/kernel/TaskKernelCpuOmp4.hpp:109:33: instantiating function definition 'alpaka::kernel::TaskKernelCpuOmp4<std::integral_constant<unsigned long, 1>, unsigned long, VectorAddKernel, unsigned int *, unsigned int *, unsigned int *, unsigned long>::operator()'
5. /home/kelling/checkout/alpaka/include/alpaka/kernel/TaskKernelCpuOmp4.hpp:109:33: LLVM IR generation of declaration 'alpaka::kernel::TaskKernelCpuOmp4<std::integral_constant<unsigned long, 1>, unsigned long, VectorAddKernel, unsigned int *, unsigned int *, unsigned int *, unsigned long>::operator()'
6. /home/kelling/checkout/alpaka/include/alpaka/kernel/TaskKernelCpuOmp4.hpp:163:17: LLVM IR generation of compound statement ('{}')
7. /home/kelling/checkout/alpaka/include/alpaka/kernel/TaskKernelCpuOmp4.hpp:165:21: LLVM IR generation of compound statement ('{}')
8. /home/kelling/checkout/alpaka/include/alpaka/kernel/TaskKernelCpuOmp4.hpp:169:25: LLVM IR generation of compound statement ('{}')
#0 0x00000000019aa3fa llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x19aa3fa)
#1 0x00000000019a8274 llvm::sys::RunSignalHandlers() (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x19a8274)
#2 0x00000000019a83d5 SignalHandler(int) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x19a83d5)
#3 0x00007fe20ca4b890 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00007fe20b4f4e97 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x3ee97)
#5 0x00007fe20b4f6801 abort (/lib/x86_64-linux-gnu/libc.so.6+0x40801)
#6 0x00007fe20b4e639a (/lib/x86_64-linux-gnu/libc.so.6+0x3039a)
#7 0x00007fe20b4e6412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
#8 0x0000000001e4a677 getSL(clang::Expr const*, clang::Type const*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1e4a677)
#9 0x0000000001e4c5c3 clang::CodeGen::CodeGenFunction::EmitAMDGPUDevicePrintfCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1e4c5c3)
#10 0x0000000001d8c21b clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(clang::GlobalDecl, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1d8c21b)
#11 0x0000000001e15308 clang::CodeGen::CodeGenFunction::EmitCallExpr(clang::CallExpr const*, clang::CodeGen::ReturnValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1e15308)
#12 0x0000000001e42b4a (anonymous namespace)::ScalarExprEmitter::VisitCallExpr(clang::CallExpr const*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1e42b4a)
#13 0x0000000001e40fd7 clang::StmtVisitorBase<std::add_pointer, (anonymous namespace)::ScalarExprEmitter, llvm::Value*>::Visit(clang::Stmt*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1e40fd7)
#14 0x0000000001e4213a (anonymous namespace)::ScalarExprEmitter::Visit(clang::Expr*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1e4213a)
#15 0x0000000001e421b3 clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1e421b3)
#16 0x0000000001df9437 clang::CodeGen::CodeGenFunction::EmitAnyExpr(clang::Expr const*, clang::CodeGen::AggValueSlot, bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1df9437)
#17 0x0000000001e0be46 clang::CodeGen::CodeGenFunction::EmitIgnoredExpr(clang::Expr const*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1e0be46)
#18 0x0000000001bfecaa clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bfecaa)
#19 0x0000000001bff343 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bff343)
#20 0x0000000001bff658 clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bff658)
#21 0x0000000001c025e3 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c025e3)
#22 0x0000000001bfec40 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bfec40)
#23 0x0000000001bffb47 clang::CodeGen::CodeGenFunction::EmitIfStmt(clang::IfStmt const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bffb47)
#24 0x0000000001bfeefa clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bfeefa)
#25 0x0000000001bff343 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bff343)
#26 0x0000000001bff658 clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bff658)
#27 0x0000000001c025e3 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c025e3)
#28 0x0000000001bfec40 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bfec40)
#29 0x0000000001c232c5 void clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPTeamsDirective(clang::OMPTeamsDirective const&)::'lambda'(clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&)>(long, clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c232c5)
#30 0x0000000001eb7b06 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1eb7b06)
#31 0x0000000001eb7bbf (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1eb7bbf)
#32 0x0000000001c2e07b clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c2e07b)
#33 0x0000000001ee6b22 emitParallelOrTeamsOutlinedFunction(clang::CodeGen::CodeGenModule&, clang::OMPExecutableDirective const&, clang::CapturedStmt const*, clang::VarDecl const*, clang::OpenMPDirectiveKind, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1ee6b22)
#34 0x0000000001ee6c96 clang::CodeGen::CGOpenMPRuntime::emitTeamsOutlinedFunction(clang::OMPExecutableDirective const&, clang::VarDecl const*, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1ee6c96)
#35 0x0000000001f07450 clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsOutlinedFunction(clang::OMPExecutableDirective const&, clang::VarDecl const*, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1f07450)
#36 0x0000000001c1f624 emitCommonOMPTeamsDirective(clang::CodeGen::CodeGenFunction&, clang::OMPExecutableDirective const&, clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&) (.constprop.1495) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c1f624)
#37 0x0000000001c1fed4 clang::CodeGen::CodeGenFunction::EmitOMPTeamsDirective(clang::OMPTeamsDirective const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c1fed4)
#38 0x0000000001bff020 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bff020)
#39 0x0000000001bff343 clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bff343)
#40 0x0000000001bff658 clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bff658)
#41 0x0000000001c025e3 clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c025e3)
#42 0x0000000001bfec40 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1bfec40)
#43 0x0000000001c230a9 emitTargetRegion(clang::CodeGen::CodeGenFunction&, clang::OMPTargetDirective const&, clang::CodeGen::PrePostActionTy&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c230a9)
#44 0x0000000001eb7b06 clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&) const (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1eb7b06)
#45 0x0000000001eb7bbf (anonymous namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&, clang::Stmt const*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1eb7bbf)
#46 0x0000000001c2e07b clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c2e07b)
#47 0x0000000001ee71c0 clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1ee71c0)
#48 0x0000000001f009d5 clang::CodeGen::CGOpenMPRuntimeNVPTX::emitNonSPMDKernel(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1f009d5)
#49 0x0000000001f00ddf clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTargetOutlinedFunction(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1f00ddf)
#50 0x0000000001c061f6 clang::CodeGen::CodeGenFunction::EmitOMPTargetDeviceFunction(clang::CodeGen::CodeGenModule&, llvm::StringRef, clang::OMPTargetDirective const&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c061f6)
#51 0x0000000001ec6814 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) (.localalias.1891) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1ec6814)
#52 0x0000000001ec6537 clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt const*, llvm::StringRef) (.localalias.1891) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1ec6537)
#53 0x0000000001ec8daf clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(clang::GlobalDecl) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1ec8daf)
#54 0x0000000001c986cd clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c986cd)
#55 0x0000000001c9e538 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (.part.7280) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x1c9e538)
#56 0x0000000002566095 (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x2566095)
#57 0x000000000255a90a clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x255a90a)
#58 0x0000000003607398 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x3607398)
#59 0x000000000360673e clang::Sema::PerformPendingInstantiations(bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x360673e)
#60 0x0000000003607814 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x3607814)
#61 0x000000000360673e clang::Sema::PerformPendingInstantiations(bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x360673e)
#62 0x0000000003607814 clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation, clang::FunctionDecl*, bool, bool, bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x3607814)
#63 0x000000000360673e clang::Sema::PerformPendingInstantiations(bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x360673e)
#64 0x00000000030802b9 clang::Sema::ActOnEndOfTranslationUnit() (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x30802b9)
#65 0x0000000002f66145 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x2f66145)
#66 0x0000000002f5b73f clang::ParseAST(clang::Sema&, bool, bool) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x2f5b73f)
#67 0x0000000002563330 clang::CodeGenAction::ExecuteAction() (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x2563330)
#68 0x0000000002082d3e clang::FrontendAction::Execute() (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x2082d3e)
#69 0x00000000020466c6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x20466c6)
#70 0x0000000002139ce3 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x2139ce3)
#71 0x0000000000893d90 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x893d90)
#72 0x000000000082bcd6 main (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x82bcd6)
#73 0x00007fe20b4d7b97 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b97)
#74 0x00000000008900ba _start (/home/kelling/rocm/aomp_0.6-6/bin/clang-8+0x8900ba)
clang-8: error: unable to execute command: Aborted (core dumped)
clang-8: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 8.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /home/kelling/rocm/aomp/bin
clang-8: note: diagnostic msg: PLEASE open a git issue at https://github.com/ROCm-Developer-Tools/aomp with a detailed description of this problem.
clang-8: note: diagnostic msg: Error generating preprocessed source(s).
I tried to generate prprocessed code, by running the listed clang++ command line with an additional -E, but the resulting code does not compile with the same commandline, comnplaining about redefinitions, e.g.
/usr/lib/gcc/x86_64-linux-gnu/7.4.0/../../../../include/c++/7.4.0/type_traits:84:48: error: redefinition of 'value'
constexpr _Tp integral_constant<_Tp, __v>::value;