[LLVMbugs] [Bug 18566] New: llvm/ADT/Triple.h does not work with GCC

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 20 20:25:25 PST 2014


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

            Bug ID: 18566
           Summary: llvm/ADT/Triple.h does not work with GCC
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: sami.liedes at iki.fi
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

<llvm/ADT/Triple.h> is broken when compiling (out of LLVM tree) with GCC,
because it tries to include <sanitizer/msan_interface.h>:

$ echo '#include <llvm/ADT/Triple.h>' >test.cpp
$ clang++ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -c test.cpp
-I$llvm_include_dir
[success]
$ g++ -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -c test.cpp
-I$llvm_include_dir
In file included from
/home/sliedes/local/llvm-trunk-rel-no-assert/include/llvm/Support/ErrorHandling.h:19:0,
                 from
/home/sliedes/local/llvm-trunk-rel-no-assert/include/llvm/ADT/Twine.h:15,
                 from
/home/sliedes/local/llvm-trunk-rel-no-assert/include/llvm/ADT/Triple.h:13,
                 from test.cpp:1:
/home/sliedes/local/llvm-trunk-rel-no-assert/include/llvm/Support/Compiler.h:351:39:
fatal error: sanitizer/msan_interface.h: No such file or directory
 # include <sanitizer/msan_interface.h>
                                       ^
compilation terminated.
$

-- 
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/20140121/9e0ef80e/attachment.html>


More information about the llvm-bugs mailing list