[llvm-bugs] [Bug 36040] New: Error generating preprocessed source(s)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jan 22 10:36:03 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=36040

            Bug ID: 36040
           Summary: Error generating preprocessed source(s)
           Product: OpenMP
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Clang Compiler Support
          Assignee: unassignedclangbugs at nondot.org
          Reporter: rbarnes at umn.edu
                CC: llvm-bugs at lists.llvm.org

Created attachment 19720
  --> https://bugs.llvm.org/attachment.cgi?id=19720&action=edit
Soure code that caused problem

I am trying to compile some code (attached) using:

clang++ mycode.cpp CumulativeTimer.cpp Timer.cpp random.cpp -fopenmp
-fopenmp-targets=nvptx64-nvidia-cuda --cuda-path=/sw/summitdev/cuda/9.0.69
-std=c++11 -DGIT_HASH="\"Unknown\"" -Wall

But I get the following output, which requests that I report the issue here:

clang-3.8:
/home/compteam/slave0/build_folder_trunk_ibm_inline/src/tools/clang/lib/CodeGen/CodeGenFunction.h:1989:
clang::CodeGen::Address
clang::CodeGen::CodeGenFunction::GetAddrOfLocalVar(const clang::VarDecl *):
Assertion `it != LocalDeclMap.end() && "Invalid argument to
GetAddrOfLocalVar(), no decl!"' failed.
#0 0x0000000011bb7148 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb7148)
#1 0x0000000011bb76b8 PrintStackTraceSignalHandler(void*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb76b8)
#2 0x0000000011bb7a84 SignalHandler(int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11bb7a84)
#3 0x00003fffa82b0478  0x478 __GI_abort
#4 0x00003fffa82b0478 
#5 0x00003fffa82b0478 __assert_fail_base (+0x478)
#6 0x00003fffa7d70d70 __GI___assert_fail (/lib64/libc.so.6+0x40d70)
#7 0x00003fffa7d648a4
clang::CodeGen::CGOpenMPRuntimeNVPTX::createDataSharingInfo(clang::CodeGen::CodeGenFunction&)
(/lib64/libc.so.6+0x348a4)
#8 0x00003fffa7d64994
clang::CodeGen::CGOpenMPRuntimeNVPTX::registerParallelContext(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&) (/lib64/libc.so.6+0x34994)
#9 0x000000001210653c
emitCommonOMPParallelDirective(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::OpenMPDirectiveKind,
clang::CodeGen::RegionCodeGenTy const&, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x1210653c)
#10 0x0000000012105484 void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective
const&)::$_100>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12105484)
#11 0x0000000011e20b64
clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&)
const
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e20b64)
#12 0x0000000011e4ee98 void llvm::function_ref<void
(clang::CodeGen::CodeGenFunction&)>::callback_fn<clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(clang::OMPLoopDirective
const&, clang::CodeGen::RegionCodeGenTy const&)::$_64>(long,
clang::CodeGen::CodeGenFunction&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e4ee98)
#13 0x00000000120a75fc
clang::CodeGen::CodeGenFunction::EmitOMPInnerLoop(clang::Stmt const&, bool,
clang::Expr const*, clang::Expr const*, clang::Expr const*,
llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)> const&,
llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)> const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120a75fc)
#14 0x0000000011e4ed24
clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(clang::OMPLoopDirective
const&, clang::CodeGen::RegionCodeGenTy const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e4ed24)
#15 0x0000000011e225cc void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective
const&)::$_67>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e225cc)
#16 0x0000000011e31998 (anonymous
namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&,
clang::Stmt const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e31998)
#17 0x0000000011e4ee1c
clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e4ee1c)
#18 0x00000000120e4edc
clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective
const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
#19 0x00000000120d1ad4 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d1ad4)
#20 0x0000000011e321a0
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e321a0)
#21 0x0000000011e027e0
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e027e0)
#22 0x0000000011e0c22c
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e0c22c)
#23 0x0000000011e0b120 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt
const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e0b120)
#24 0x0000000011e02e34 void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::SourceLocation, llvm::Value*,
llvm::ArrayRef<llvm::Value*>)::$_31>(long, clang::CodeGen::CodeGenFunction&,
clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e02e34)
#25 0x0000000011e024d4 (anonymous
namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&,
clang::Stmt const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e024d4)
#26 0x000000001212c294
clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x1212c294)
#27 0x00000000120e4edc
clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::SourceLocation, llvm::Value*,
llvm::ArrayRef<llvm::Value*>)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
#28 0x00000000120d1ad4
emitCommonOMPTeamsDirective(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::OpenMPDirectiveKind,
clang::CodeGen::RegionCodeGenTy const&, unsigned int, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d1ad4)
#29 0x00000000121109b0 void
clang::CodeGen::RegionCodeGenTy::CallbackFn<clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDeviceFunction(clang::CodeGen::CodeGenModule&,
llvm::StringRef, clang::OMPTargetTeamsDirective const&)::$_88>(long,
clang::CodeGen::CodeGenFunction&, clang::CodeGen::PrePostActionTy&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x121109b0)
#30 0x0000000011e295c0 (anonymous
namespace)::CGOpenMPRegionInfo::EmitBody(clang::CodeGen::CodeGenFunction&,
clang::Stmt const*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e295c0)
#31 0x0000000011e53794
clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt
const&, bool, unsigned int, unsigned int, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e53794)
#32 0x00000000120e4edc
clang::CodeGen::CGOpenMPRuntime::outlineTargetDirective(clang::OMPExecutableDirective
const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120e4edc)
#33 0x0000000011e169b8
clang::CodeGen::CGOpenMPRuntimeNVPTX::outlineTargetDirective(clang::OMPExecutableDirective
const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e169b8)
#34 0x00000000120d24a8
clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective
const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d24a8)
#35 0x0000000012106ba0
clang::CodeGen::CGOpenMPRuntimeNVPTX::emitGenericKernel(clang::OMPExecutableDirective
const&, clang::CodeGen::CGOpenMPRuntimeNVPTX::TargetKernelProperties const&,
llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12106ba0)
#36 0x00000000120d2874
clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTargetOutlinedFunction(clang::OMPExecutableDirective
const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&, unsigned int)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120d2874)
#37 0x0000000012107b20
clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDeviceFunction(clang::CodeGen::CodeGenModule&,
llvm::StringRef, clang::OMPTargetTeamsDirective const&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12107b20)
#38 0x0000000012108240
clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt
const*, llvm::StringRef)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12108240)
#39 0x0000000011e36284
clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt
const*, llvm::StringRef)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e36284)
#40 0x00000000120ddd70
clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(clang::GlobalDecl)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120ddd70)
#41 0x00000000120ddb58
clang::CodeGen::CGOpenMPRuntime::emitTargetGlobal(clang::GlobalDecl)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120ddb58)
#42 0x00000000120ddf2c
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120ddf2c)
#43 0x00000000120de39c
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x120de39c)
#44 0x0000000011e76c5c (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e76c5c)
#45 0x0000000011e7cb90
clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x11e7cb90)
#46 0x00000000127c6d6c clang::ParseAST(clang::Sema&, bool, bool)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c6d6c)
#47 0x00000000127c4c4c clang::ASTFrontendAction::ExecuteAction()
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c4c4c)
#48 0x0000000012dd72a4 clang::CodeGenAction::ExecuteAction()
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x12dd72a4)
#49 0x00000000122fe2dc clang::FrontendAction::Execute()
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122fe2dc)
#50 0x00000000127c36c0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x127c36c0)
#51 0x00000000122fda38
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122fda38)
#52 0x00000000122b8238 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x122b8238)
#53 0x00000000123c1358 main
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x123c1358)
#54 0x0000000010473ee0 generic_start_main.isra.0
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x10473ee0)
#55 0x0000000010471b20 __libc_start_main
(/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8+0x10471b20)
0  clang-3.8 0x0000000011bb7148 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
+ 120
1  clang-3.8 0x0000000011bb76b8
2  clang-3.8 0x0000000011bb7a84
3            0x00003fffa82b0478 __kernel_sigtramp_rt64 + 0
4  libc.so.6 0x00003fffa7d70d70 abort + 640
5  libc.so.6 0x00003fffa7d648a4
6  libc.so.6 0x00003fffa7d64994 __assert_fail + 100
7  clang-3.8 0x000000001210653c
clang::CodeGen::CGOpenMPRuntimeNVPTX::createDataSharingInfo(clang::CodeGen::CodeGenFunction&)
+ 4156
8  clang-3.8 0x0000000012105484
clang::CodeGen::CGOpenMPRuntimeNVPTX::registerParallelContext(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&) + 148
9  clang-3.8 0x0000000011e20b64
10 clang-3.8 0x0000000011e4ee98
11 clang-3.8 0x00000000120a75fc
clang::CodeGen::RegionCodeGenTy::operator()(clang::CodeGen::CodeGenFunction&)
const + 220
12 clang-3.8 0x0000000011e4ed24
13 clang-3.8 0x0000000011e225cc
clang::CodeGen::CodeGenFunction::EmitOMPInnerLoop(clang::Stmt const&, bool,
clang::Expr const*, clang::Expr const*, clang::Expr const*,
llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)> const&,
llvm::function_ref<void (clang::CodeGen::CodeGenFunction&)> const&) + 1196
14 clang-3.8 0x0000000011e31998
clang::CodeGen::CodeGenFunction::EmitOMPDistributeLoop(clang::OMPLoopDirective
const&, clang::CodeGen::RegionCodeGenTy const&) + 5320
15 clang-3.8 0x0000000011e4ee1c
16 clang-3.8 0x00000000120e4edc
17 clang-3.8 0x00000000120d1ad4
clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool) + 388
18 clang-3.8 0x0000000011e321a0
clang::CodeGen::CodeGenFunction::EmitOMPDistributeParallelForDirective(clang::OMPDistributeParallelForDirective
const&) + 304
19 clang-3.8 0x0000000011e027e0
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 1024
20 clang-3.8 0x0000000011e0c22c
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 172
21 clang-3.8 0x0000000011e0b120
clang::CodeGen::CodeGenFunction::EmitCompoundStmt(clang::CompoundStmt const&,
bool, clang::CodeGen::AggValueSlot) + 352
22 clang-3.8 0x0000000011e02e34
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 260
23 clang-3.8 0x0000000011e024d4
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 244
24 clang-3.8 0x000000001212c294
25 clang-3.8 0x00000000120e4edc
26 clang-3.8 0x00000000120d1ad4
clang::CodeGen::CGOpenMPRuntime::emitInlinedDirective(clang::CodeGen::CodeGenFunction&,
clang::OpenMPDirectiveKind, clang::CodeGen::RegionCodeGenTy const&, bool) + 388
27 clang-3.8 0x00000000121109b0
clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTeamsCall(clang::CodeGen::CodeGenFunction&,
clang::OMPExecutableDirective const&, clang::SourceLocation, llvm::Value*,
llvm::ArrayRef<llvm::Value*>) + 544
28 clang-3.8 0x0000000011e295c0
29 clang-3.8 0x0000000011e53794
30 clang-3.8 0x00000000120e4edc
31 clang-3.8 0x0000000011e169b8
clang::CodeGen::CodeGenFunction::GenerateOpenMPCapturedStmtFunction(clang::CapturedStmt
const&, bool, unsigned int, unsigned int, bool) + 1656
32 clang-3.8 0x00000000120d24a8
clang::CodeGen::CGOpenMPRuntime::outlineTargetDirective(clang::OMPExecutableDirective
const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) + 520
33 clang-3.8 0x0000000012106ba0
clang::CodeGen::CGOpenMPRuntimeNVPTX::outlineTargetDirective(clang::OMPExecutableDirective
const&, llvm::StringRef, clang::CodeGen::RegionCodeGenTy const&) + 448
34 clang-3.8 0x00000000120d2874
clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective
const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&, unsigned int) + 708
35 clang-3.8 0x0000000012107b20
clang::CodeGen::CGOpenMPRuntimeNVPTX::emitGenericKernel(clang::OMPExecutableDirective
const&, clang::CodeGen::CGOpenMPRuntimeNVPTX::TargetKernelProperties const&,
llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&) + 288
36 clang-3.8 0x0000000012108240
clang::CodeGen::CGOpenMPRuntimeNVPTX::emitTargetOutlinedFunction(clang::OMPExecutableDirective
const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool,
clang::CodeGen::RegionCodeGenTy const&, unsigned int) + 208
37 clang-3.8 0x0000000011e36284
clang::CodeGen::CodeGenFunction::EmitOMPTargetTeamsDeviceFunction(clang::CodeGen::CodeGenModule&,
llvm::StringRef, clang::OMPTargetTeamsDirective const&) + 132
38 clang-3.8 0x00000000120ddd70
clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt
const*, llvm::StringRef) + 976
39 clang-3.8 0x00000000120ddb58
clang::CodeGen::CGOpenMPRuntime::scanForTargetRegionsFunctions(clang::Stmt
const*, llvm::StringRef) + 440
40 clang-3.8 0x00000000120ddf2c
clang::CodeGen::CGOpenMPRuntime::emitTargetFunctions(clang::GlobalDecl) + 284
41 clang-3.8 0x00000000120de39c
clang::CodeGen::CGOpenMPRuntime::emitTargetGlobal(clang::GlobalDecl) + 92
42 clang-3.8 0x0000000011e76c5c
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 1004
43 clang-3.8 0x0000000011e7cb90
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 304
44 clang-3.8 0x00000000127c6d6c
45 clang-3.8 0x00000000127c4c4c
46 clang-3.8 0x0000000012dd72a4 clang::ParseAST(clang::Sema&, bool, bool) + 564
47 clang-3.8 0x00000000122fe2dc clang::ASTFrontendAction::ExecuteAction() + 236
48 clang-3.8 0x00000000127c36c0 clang::CodeGenAction::ExecuteAction() + 320
49 clang-3.8 0x00000000122fda38 clang::FrontendAction::Execute() + 152
50 clang-3.8 0x00000000122b8238
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 2088
51 clang-3.8 0x00000000123c1358
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4888
52 clang-3.8 0x0000000010473ee0 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 1760
53 clang-3.8 0x0000000010471b20 main + 12800
54 libc.so.6 0x00003fffa7d54700
55 libc.so.6 0x00003fffa7d548f4 __libc_start_main + 196
Stack dump:
0.      Program arguments:
/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/clang-3.8
-cc1 -triple nvptx64-nvidia-cuda -aux-triple powerpc64le-unknown-linux-gnu -S
-disable-free -main-file-name fastscape_RB+PQ+GPU.cpp -mrelocation-model pic
-pic-level 2 -mthread-model posix -mdisable-fp-elim -fmath-errno
-no-integrated-as -fuse-init-array -mlink-cuda-bitcode
/sw/summitdev/cuda/9.0.69/nvvm/libdevice/libdevice.10.bc -target-feature +ptx42
-mlink-cuda-bitcode
/sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/omprtl/lib/libomptarget-nvptx.bc
-target-cpu sm_60 -dwarf-column-info -debugger-tuning=cuda-gdb -resource-dir
/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/../lib/clang/3.8.0
-D GIT_HASH="Unknown" -D GIT_HASH="Unknown" -I/sw/summitdev/cuda/9.0.69/include
-c-isystem
/sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/omprtl
-cxx-isystem
/sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/omprtl
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/../../../../include/c++/4.8.5
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ppc64le-redhat-linux
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/../../../../include/c++/4.8.5
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/../../../../include/c++/4.8.5/ppc64le-redhat-linux
-internal-isystem
/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/../../../../include/c++/4.8.5/backward
-internal-isystem /usr/local/include -internal-isystem
/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-internal-isystem /usr/local/include -internal-isystem
/autofs/nccs-svm1_sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin/../lib/clang/3.8.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O0
-Wall -Wall -std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm
-fdebug-compilation-dir /ccs/home/spinyfan/quickscape -ferror-limit 19
-fmessage-length 140 -fopenmp -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -o /tmp/fastscape_RB+PQ+GPU-fa4c50.s -x c++
fastscape_RB+PQ+GPU.cpp -fopenmp-is-device -fopenmp-host-ir-file-path
/tmp/fastscape_RB+PQ+GPU-8da76f.bc 
1.      fastscape_RB+PQ+GPU.cpp:379:1: current parser token 'int'
2.      fastscape_RB+PQ+GPU.cpp:59:14: LLVM IR generation of declaration
'FastScape'
3.      fastscape_RB+PQ+GPU.cpp:122:3: LLVM IR generation of compound statement
('{}')
clang-3.8: error: unable to execute command: Aborted (core dumped)
clang-3.8: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.8.0 (ibmgithub:/CORAL-LLVM-Compilers/clang.git
fc73231cc1447f6163740eb12b6f3fd5c69c6a1a)
(ibmgithub:/CORAL-LLVM-Compilers/llvm.git
47cc905855d51360bcc523d2d290395073d87560)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir:
/sw/summitdev/.swci/0-core/opt/spack/20170405/linux-rhel7-ppc64le/gcc-4.8.5/clang-20170925-mfo7hvcvzzejibsc566co7f345rfynat/bin
clang-3.8: 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-3.8: note: diagnostic msg: Error generating preprocessed source(s).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180122/6ef77a06/attachment-0001.html>


More information about the llvm-bugs mailing list