I'm also using clang, but on OS X. So I'm guessing it could be the same issue as on Ubuntu?
Complete version information, if it makes a difference:
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix