[llvm-bugs] [Bug 44466] New: build failure due to cxa_personality.cpp including unwind.h from libunwind instead of clang installations headers

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 5 15:44:52 PST 2020


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: unassignedbugs at nondot.org
          Reporter: markus.boeck02 at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200105/4149aa7e/attachment.html>


More information about the llvm-bugs mailing list