[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


http://llvm.org/bugs/show_bug.cgi?id=10601

           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


Hi,

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/Signals.cpp:30:
/home/ryuta/devel/llvm/src/llvm/lib/Support/Unix/Signals.inc:31:10: fatal
error: 
      '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:
 /usr/include/c++/v1
 /usr/local/include
 /usr/bin/../lib/clang/3.0/include
 /usr/include
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