[llvm-commits] [llvm] r139934 - in /llvm/trunk: autoconf/configure.ac configure

Justin Holewinski justin.holewinski at gmail.com
Wed Oct 12 14:38:54 PDT 2011


On Wed, Oct 12, 2011 at 4:32 PM, Eric Christopher <echristo at apple.com>wrote:

>
> On
>
>
>> Should probably install a newer clang or you can use CC=gcc CXX=g++ on
>> your configure line. The clang-2.9 release should be in good enough shape to
>> build top of tree llvm.
>>
>
> Except on newer *nix distributions where clang-2.9 is not wired to detect
> the GCC installations.
>
>
> ?
>
> I'm not sure what you mean here?
>

The clang 2.9 release does not support detecting the system C and C++
libraries on newer distributions (e.g. those that were released after clang
2.9 was released).  This is not necessarily an issue if you build a recent
Clang, or use distribution packages (hopefully), but can be if you just
download release 2.9.

With the 2.9 binary release on Ubuntu 11.10:

jholewinski at rapture [tests]$ cat test1.cpp
#include <iostream>
int main() {
  std::cout << "Test\n";
  return 0;
}
jholewinski at rapture [tests]$ g++ test1.cpp -o test1.x
jholewinski at rapture [tests]$ ./clang+llvm-2.9-x86_64-linux.tar/bin/clang++
test1
                  .cpp -o test1.x
test1.cpp:2:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.
jholewinski at rapture [tests]$


>
> -eric
>
>


-- 

Thanks,

Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111012/66733e62/attachment.html>


More information about the llvm-commits mailing list