[LLVMbugs] [Bug 10601] New: Does Signals.cpp require cxxabi.h?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 7 08:02:55 PDT 2011


           Summary: Does Signals.cpp require cxxabi.h?
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: oroppas at gmail.com
                CC: llvmbugs at cs.uiuc.edu


When I tried to have llvm/clang self-hosted with clang++/libc++ pair with
-stdlib=libc++, clang++ complained about missing cxxabi.h:

[  1%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
In file included from
/home/ryuta/devel/llvm/src/llvm/lib/Support/Unix/Signals.inc:31:10: fatal
      'cxxabi.h' file not found
#include <cxxabi.h>
1 error generated.
make[2]: *** [lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o] Error 1

The search paths of clang++ -stdlib=libc++ are:

#include "..." search starts here:
#include <...> search starts here:
End of search list.

This missing header case makes sense since libc++ doesn't come with cxxabi.h.
To see what function declarations from cxxabi.h are needed, I created an empty
cxxabi.h in /usr/include/c++/v1 just to circumvent the missing header error.
Surprisingly, the compiler did not make a single warning nor error for the
empty cxxabi.h, which indicates at least lib/Support/Signal.cpp doesn't need to
include cxxabi.h. So, my question is: Does LLVMSupport have an *explicit*
dependency on cxxabi? Or does it require cxxabi itself in general?

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list