Public bug reported:

Binary package hint: clang

clang++ uses GCC's STL, but appears to only support versions up to 4.4:
if you try to compile a trivial program on Natty Narwhal, it will fail:

cat<<EOF > foo.cc
#include <iostream>
int main() {return 0;}
EOF
clang++ --verbose foo.cc

Note in the output how it starts looking for GCC includes starting with
version 4.4, then 4.3, etc...

However Natty Narwhal only has 4.5 installed, and clang package
(incorrectly) lists libstdc++ dependency as >=4.5. Installing g++-4.4
fixes the problem, but dependency should be fixed up.

** Affects: clang (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  Binary package hint: clang
  
  clang++ uses GCC's STL, but appears to only support versions up to 4.4:
  if you try to compile a trivial program on Natty Narwhal, it will fail:
  
  cat<<EOF > foo.cc
  #include <iostream>
  int main() {return 0;}
  EOF
  clang++ --verbose foo.cc
  
  Note in the output how it starts looking for GCC includes starting with
  version 4.4, then 4.3, etc...
  
- However dependencies Natty Narwhal only has 4.5 installed, and clang
- package (incorrectly) lists libstdc++ dependency as >=4.5. Installing
- g++-4.4 fixes the problem, but dependency should be fixed up.
+ However Natty Narwhal only has 4.5 installed, and clang package
+ (incorrectly) lists libstdc++ dependency as >=4.5. Installing g++-4.4
+ fixes the problem, but dependency should be fixed up.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/779404

Title:
  clang++ fails to compile STL-using C++ out of the box

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to