[LLVMbugs] [Bug 4481] New: llvm-config with src!=obj omits -I<obj_dir>/include

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jun 29 14:37:26 PDT 2009


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

           Summary: llvm-config with src!=obj omits -I<obj_dir>/include
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-config
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: llvmbugs at cs.uiuc.edu


jyasskin at enki:~/opensource/llvm/oprof/dbg$ cat test_config.cc 
#include "llvm/Module.h"

int main() {
}

jyasskin at enki:~/opensource/llvm/oprof/dbg$ ./Debug/bin/llvm-config --cxxflags
-I/usr/local/google/jyasskin/llvm/oprof/dbg/../src/include  -D_DEBUG 
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -g -fPIC 
-Woverloaded-virtual

jyasskin at enki:~/opensource/llvm/oprof/dbg$ g++ -c test_config.cc
`./Debug/bin/llvm-config --cxxflags` 2>&1|head -20
In file included from
/usr/local/google/jyasskin/llvm/oprof/dbg/../src/include/llvm/Value.h:18,
                 from
/usr/local/google/jyasskin/llvm/oprof/dbg/../src/include/llvm/User.h:22,
                 from
/usr/local/google/jyasskin/llvm/oprof/dbg/../src/include/llvm/Constant.h:17,
                 from
/usr/local/google/jyasskin/llvm/oprof/dbg/../src/include/llvm/GlobalValue.h:21,
                 from
/usr/local/google/jyasskin/llvm/oprof/dbg/../src/include/llvm/Function.h:21,
                 from
/usr/local/google/jyasskin/llvm/oprof/dbg/../src/include/llvm/Module.h:18,
                 from test_config.cc:1:
/usr/local/google/jyasskin/llvm/oprof/dbg/../src/include/llvm/Use.h:29:31:
error: llvm/ADT/iterator.h: No such file or directory
...
jyasskin at enki:~/opensource/llvm/oprof/dbg$ ls include/llvm/ADT/iterator.h 
include/llvm/ADT/iterator.h



If llvm-config --cxxflags included
"-I/usr/local/google/jyasskin/llvm/oprof/dbg/include", this would compile
successfully.


-- 
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