clang doesn't find stdc++ headers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clang (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When i try to run a simple c++ program like:
#include <iostream>
int main() {
std::cout << "HelloWorld" << std::endl;
return 0;
This is the verbose output:
$ clang++ test.cpp -o test -v
Ubuntu clang version 3.2-1~exp5ubuntu2 (tags/RELEASE_
Target: x86_64-pc-linux-gnu
Thread model: posix
"/usr/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-
clang -cc1 version 3.2 based upon LLVM 3.2svn default target x86_64-pc-linux-gnu
ignoring nonexistent directory "/usr/include/
ignoring nonexistent directory "/usr/bin/
ignoring duplicate directory "/usr/include/
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/include/
/usr/include/
/usr/include
End of search list.
lambda.cpp:2:10: fatal error: 'iostream' file not found
#include <iostream>
^
1 error generated.
I'm currently running raring amd64.
Packages:
clang:
Installed: 3.2-1~exp5ubuntu2
Candidate: 3.2-1~exp5ubuntu2
Version table:
*** 3.2-1~exp5ubuntu2 0
500 http://
100 /var/lib/
llvm-3.2:
Installed: 3.2-2ubuntu4
Candidate: 3.2-2ubuntu4
Version table:
*** 3.2-2ubuntu4 0
500 http://
100 /var/lib/
gcc:
Installed: 4:4.7.2-1ubuntu8
Candidate: 4:4.7.2-1ubuntu8
Version table:
*** 4:4.7.2-1ubuntu8 0
500 http://
100 /var/lib/
This type of error doesn't occur with .c source files (using clang of course).
Clang++ used to work on raring perfectly till around 09 march (I think. However it always worked on my raring installation)
If you need more information, please feel free to contact me.
Thanks for your precious time and work,
Have a nice day
Giulio
Status changed to 'Confirmed' because the bug affects multiple users.