Page MenuHomePhabricator
Paste P7968

Include directories
ActivePublic

Authored by mati865 on Feb 3 2017, 5:56 AM.
GCC:
```
$ echo | gcc -E -x c -Wp,-v -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/include"
ignoring nonexistent directory "C:/building/msys64/mingw64/include"
ignoring nonexistent directory "/mingw64/include"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/include-fixed"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory "C:/building/msys64/mingw64/x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/include
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../include
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/include-fixed
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/include
End of search list.
```
Clang:
```
$ echo | clang -E -x c -Wp,-v -
clang -cc1 version 3.9.1 based upon LLVM 3.9.1 default target x86_64-w64-windows-gnu
#include "..." search starts here:
#include <...> search starts here:
D:\msys64\mingw64\bin\..\lib\clang\3.9.1\include
D:\msys64\mingw64\x86_64-w64-mingw32\include
D:\msys64\mingw64\include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 328 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2
```
Clang on WSL Ubuntu 14.04:
```
$ echo | clang-3.8 -E -x c -Wp,-v -
clang -cc1 version 3.8.0 based upon LLVM 3.8.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/llvm-3.8/bin/../lib/clang/3.8.0/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 317 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2
```
G++:
```
$ echo | gcc -E -x c++ -Wp,-v -
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "<stdin>"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../include/c++/6.3.0"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../include/c++/6.3.0/x86_64-w64-mingw32"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../include/c++/6.3.0/backward"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/include"
ignoring nonexistent directory "C:/building/msys64/mingw64/include"
ignoring nonexistent directory "/mingw64/include"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/include-fixed"
ignoring duplicate directory "D:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory "C:/building/msys64/mingw64/x86_64-w64-mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../include/c++/6.3.0
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../include/c++/6.3.0/x86_64-w64-mingw32
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../include/c++/6.3.0/backward
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/include
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../include
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/include-fixed
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../x86_64-w64-mingw32/include
End of search list
```
Clang++:
```
$ echo | clang -E -x c++ -Wp,-v -
clang -cc1 version 3.9.1 based upon LLVM 3.9.1 default target x86_64-w64-windows-gnu
ignoring nonexistent directory "D:\msys64\mingw64\x86_64-w64-mingw32\include\c++"
ignoring nonexistent directory "D:\msys64\mingw64\x86_64-w64-mingw32\include\c++\x86_64-w64-mingw32"
ignoring nonexistent directory "D:\msys64\mingw64\x86_64-w64-mingw32\include\c++\backward"
ignoring nonexistent directory "D:\msys64\mingw64\x86_64-w64-mingw32\include\c++\6.3.0"
ignoring nonexistent directory "D:\msys64\mingw64\x86_64-w64-mingw32\include\c++\6.3.0\x86_64-w64-mingw32"
ignoring nonexistent directory "D:\msys64\mingw64\x86_64-w64-mingw32\include\c++\6.3.0\backward"
ignoring nonexistent directory "D:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\6.3.0\include\c++"
ignoring nonexistent directory "D:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\6.3.0\include\c++\x86_64-w64-mingw32"
ignoring nonexistent directory "D:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\6.3.0\include\c++\backward"
#include "..." search starts here:
#include <...> search starts here:
D:\msys64\mingw64\include\c++\6.3.0
D:\msys64\mingw64\include\c++\6.3.0\x86_64-w64-mingw32
D:\msys64\mingw64\include\c++\6.3.0\backward
D:\msys64\mingw64\bin\..\lib\clang\3.9.1\include
D:\msys64\mingw64\x86_64-w64-mingw32\include
D:\msys64\mingw64\include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 336 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2
```
Clang++ on WSL Ubuntu 14.04:
```
$ echo | clang-3.8 -E -x c++ -Wp,-v -
clang -cc1 version 3.8.0 based upon LLVM 3.8.0 default target x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
ignoring duplicate directory "/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8"
#include "..." search starts here:
#include <...> search starts here:
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward
/usr/local/include
/usr/lib/llvm-3.8/bin/../lib/clang/3.8.0/include
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
# 1 "<stdin>"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 325 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "<stdin>" 2
```

Event Timeline

mati865 created this paste.Feb 3 2017, 5:56 AM
mati865 created this object with visibility "Public (No Login Required)".