Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang header path should not be mapped by -isysroot #3986

Closed
llvmbot opened this issue Feb 19, 2009 · 2 comments
Closed

clang header path should not be mapped by -isysroot #3986

llvmbot opened this issue Feb 19, 2009 · 2 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

Comments

@llvmbot
Copy link
Member

llvmbot commented Feb 19, 2009

Bugzilla Link 3614
Resolution FIXED
Resolved on Feb 22, 2010 12:44
Version unspecified
OS Windows XP
Reporter LLVM Bugzilla Contributor

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

@llvmbot
Copy link
Member Author

llvmbot commented Feb 19, 2009

assigned to @lattner

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
Projects
None yet
Development

No branches or pull requests

2 participants