clang header path should not be mapped by -isysroot #3986
Labels
bugzilla
Issues migrated from bugzilla
clang:driver
'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
Extended Description
Bad:
ddunbar@frank:CodeGen$ echo "#include <stdarg.h>" | clang -isysroot /over/the/rainbow -v
ignoring nonexistent directory "/home/ddunbar/llvm.trunk/Debug/Headers"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/include"
ignoring nonexistent directory "/System/Library/Frameworks"
ignoring nonexistent directory "/Library/Frameworks"
#include "..." search starts here:
End of search list.
:1:10: fatal error: 'stdarg.h' file not found
#include <stdarg.h>
^
clang version 1.0 based upon llvm 2.6svn hosted on i686-pc-linux-gnu
1 diagnostic generated.
Also, the ignoring ... warning should probably print using the mapped path to avoid serious confusion.
ddunbar@frank:CodeGen$ ls -l /home/ddunbar/llvm.trunk/Debug/Headers
total 164
-rw-r--r-- 1 ddunbar ddunbar 35482 2009-02-18 09:50 emmintrin.h
-rw-r--r-- 1 ddunbar ddunbar 2492 2009-01-14 12:16 float.h
-rw-r--r-- 1 ddunbar ddunbar 1565 2008-11-26 14:22 iso646.h
-rw-r--r-- 1 ddunbar ddunbar 3026 2009-02-18 09:50 limits.h
-rw-r--r-- 1 ddunbar ddunbar 13302 2009-02-18 09:50 mmintrin.h
-rw-r--r-- 1 ddunbar ddunbar 2006 2009-02-18 09:50 mm_malloc.h
-rw-r--r-- 1 ddunbar ddunbar 3727 2009-02-18 09:50 pmmintrin.h
-rw-r--r-- 1 ddunbar ddunbar 1737 2008-11-26 14:22 stdarg.h
-rw-r--r-- 1 ddunbar ddunbar 1514 2008-11-26 14:22 stdbool.h
-rw-r--r-- 1 ddunbar ddunbar 1623 2009-01-14 12:16 stddef.h
-rw-r--r-- 1 ddunbar ddunbar 6846 2009-02-18 09:50 stdint.h
-rw-r--r-- 1 ddunbar ddunbar 30742 2009-02-18 09:50 tgmath.h
-rw-r--r-- 1 ddunbar ddunbar 5238 2009-02-11 11:22 tgmath-sofar.h
-rw-r--r-- 1 ddunbar ddunbar 6699 2009-02-18 09:50 tmmintrin.h
-rw-r--r-- 1 ddunbar ddunbar 22479 2009-02-18 09:50 xmmintrin.h
The text was updated successfully, but these errors were encountered: