[llvm-bugs] [Bug 30593] New: ptxas fatal : Unresolved extern function '__cxa_begin_catch'

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Oct 2 11:59:51 PDT 2016


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

            Bug ID: 30593
           Summary: ptxas fatal   : Unresolved extern function
                    '__cxa_begin_catch'
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: CUDA
          Assignee: unassignedclangbugs at nondot.org
          Reporter: crtrott at sandia.gov
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17395
  --> https://llvm.org/bugs/attachment.cgi?id=17395&action=edit
Reproducer cya_begin_catch_error

I am getting this error for a particular situation in our Kokkos library.
Unfortunately I wasn't able to replicate it without the whole library. But I
tracked it down to a situation that with a meaningless if condition added it
breaks, without the condition it compiles. 

This is the code:
#include<Kokkos_Core.hpp>

template< class Space >
struct NestedView {

  Kokkos::View<int*,Space> member ;

public:

  KOKKOS_INLINE_FUNCTION
  NestedView() : member()
    {}

  KOKKOS_INLINE_FUNCTION
  ~NestedView()
  {
    #ifdef BUG
    if(member.dimension_0() != 0) {
    }
    #endif
  }
};

Kokkos::View<NestedView<Kokkos::Cuda>*,Kokkos::CudaUVMSpace> foo() {
  return Kokkos::View<NestedView<Kokkos::Cuda>*,Kokkos::CudaUVMSpace>("A",10);
}

I attach a tar file with it. To build you need to clone Kokkos
(github.com/kokkos/kokkos) and checkout the clang-cuda branch. In the little
build line KOKKOS_PATH refers to the root path of your Kokkos clone. 

This is btw, the last issue we got with our non-experimental code in Kokkos.

-- 
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/20161002/8e484d3f/attachment.html>


More information about the llvm-bugs mailing list