[LLVMbugs] [Bug 12266] New: problem building LLVM/clang - not finding header files
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 13 21:12:54 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12266
Bug #: 12266
Summary: problem building LLVM/clang - not finding header files
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: scott at smedleyfamily.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
While trying to build LLVM/clang I get a compilation error that appears to
indicate that clang cannot find the appropriate C++ header files.
I hard-coded the path as suggested on http://clang.llvm.org/get_started.html:
syddev-build64-1>> grep /usr/local/gcc-4.6.2/include/c++/4.6.2
../tools/clang/lib/Frontend/InitHeaderSearch.cpp
AddPath("/usr/local/gcc-4.6.2/include/c++/4.6.2", System, true, false,
false);
syddev-build64-1>> d /usr/local/gcc-4.6.2/include/c++/4.6.2/{new,algorithm}
-rw-r--r-- 1 root root 2.6K Jan 13 14:31
/usr/local/gcc-4.6.2/include/c++/4.6.2/algorithm
-rw-r--r-- 1 root root 3.7K Jan 13 14:31
/usr/local/gcc-4.6.2/include/c++/4.6.2/new
& rebuilt from scratch, but it appeared to make no difference to the error:
COMPILE: clang_linux/asan-x86_64/x86_64:
/home/ssmedley/projects/llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc
/home/ssmedley/projects/llvm/llvm/build/Release+Asserts/bin/clang -Wall -Werror
-O3 -fomit-frame-pointer -m64 -c -fno-exceptions -fPIC -funwind-tables -o
/home/ssmedley/projects/llvm/llvm/build/tools/clang/runtime/compiler-rt/clang_linux/asan-x86_64/x86_64/SubDir.lib__asan/asan_interceptors.o
/home/ssmedley/projects/llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc
COMPILE: clang_linux/asan-x86_64/x86_64:
/home/ssmedley/projects/llvm/llvm/projects/compiler-rt/lib/asan/asan_posix.cc
/home/ssmedley/projects/llvm/llvm/build/Release+Asserts/bin/clang -Wall -Werror
-O3 -fomit-frame-pointer -m64 -c -fno-exceptions -fPIC -funwind-tables -o
/home/ssmedley/projects/llvm/llvm/build/tools/clang/runtime/compiler-rt/clang_linux/asan-x86_64/x86_64/SubDir.lib__asan/asan_posix.o
/home/ssmedley/projects/llvm/llvm/projects/compiler-rt/lib/asan/asan_posix.cc
/home/ssmedley/projects/llvm/llvm/projects/compiler-rt/lib/asan/asan_interceptors.cc:26:10:
fatal error: 'new' file not found
#include <new>
^
/home/ssmedley/projects/llvm/llvm/projects/compiler-rt/lib/asan/asan_posix.cc:35:10:
fatal error: 'algorithm' file not found
#include <algorithm>
^
1 error generated.
Any pointers muchly appreciated.
Scott.
--
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