[LLVMbugs] [Bug 11503] New: clang -isysroot doesn't work properly on linux
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Dec 7 16:41:50 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11503
Bug #: 11503
Summary: clang -isysroot doesn't work properly on linux
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: daniel at zuster.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Related to bug 9372, perhaps.
Clang doesn't handle -isysroot like GCC on Linux. Note how it is still allowing
/usr/include in the search list which is really bad.
--
ddunbar at ubuntu:~$ cd /tmp
ddunbar at ubuntu:/tmp$ touch x.c
ddunbar at ubuntu:/tmp$ clang -isysroot /tmp -c x.c -v
clang version 3.1 (trunk 146082)
Target: x86_64-unknown-linux-gnu
Thread model: posix
...
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/home/ddunbar/llvm.obj/Debug+Asserts/bin/../lib/clang/3.1/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
ddunbar at ubuntu:/tmp$ gcc -isysroot /tmp -c x.c -v
...
GNU C (Ubuntu/Linaro 4.6.1-9ubuntu3) version 4.6.1 (x86_64-linux-gnu)
compiled by GNU C version 4.6.1, GMP version 5.0.1, MPFR version 3.0.1-p3,
MPC version 0.9
...
ignoring nonexistent directory "/tmp/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/tmp/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/tmp/usr/include/x86_64-linux-gnu"
ignoring nonexistent directory "/tmp/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/include-fixed
End of search list.
...
--
--
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