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

            Bug ID: 44466
           Summary: build failure due to cxa_personality.cpp including
                    unwind.h from libunwind instead of clang installations
                    headers
           Product: libc++abi
           Version: 9.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedb...@nondot.org
          Reporter: markus.boec...@gmail.com
                CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com

I am trying to compile libcxxabi on windows while also using libunwind for the
unwinder. This sadly causes build failures at this line:
https://github.com/llvm/llvm-project/blob/83a9321f60d837e4d41c9c08c09ab9e4c171ada4/libcxxabi/src/cxa_personality.cpp#L32
as _Unwind_Personality_Fn is an unknown type. It turned out that the include of
unwind.h at Line 23 is including unwind.h from the libunwind project inside of
my clone of the monorepo instead of unwind.h from my clang installations
headers, therefore not defining _Unwind_Personality_Fn. 

Headers that was incorrectly included:
https://github.com/llvm/llvm-project/blob/master/libunwind/include/unwind.h

Header that should have been included:
https://github.com/llvm/llvm-project/blob/master/clang/lib/Headers/unwind.h

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to