Sebastian's approach is able to let clang to pick gcc-4.4.6. Thanks. I have not tried Wei-Ren's suggestion yet. Now the problem seems to be the bug mentioned here:http://llvm.org/bugs/show_bug.cgi?id=5960 Seem std=C89 is a workaround for this.