<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <pre wrap=""><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">I had this problem (static_assert in include/ratio) with Clang HEAD a few days ago, but it has since been resolved (r150103).  libc++ HEAD builds cleanly for me on Linux.
-Matt
<blockquote type="cite"><pre wrap="">On 5 Feb 2012, at 14:07, Christopher Jefferson wrote:

<blockquote type="cite"><pre wrap="">On 4 Feb 2012, at 17:08, Richard Pennington wrote:

><i> On Saturday, February 04, 2012 04:25:07 AM Jean-Daniel Dupas wrote:
</i>>><i> Hi,
</i>>><i> 
</i>>><i> Am I the only one having trouble compiling libc++ with clang TOT.
</i>>><i> For sometime now, clang refuse to compile (and use it) because of the
</i>>><i> following issue:
</i>>><i> 
</i>>><i> ../include/ratio:193:19: error: static_assert expression is not an integral
</i>>><i> ../include/ratio:189:27: note: declared here
</i>>><i>    static const intmax_t max = -min;
</i>>><i> 
</i>>><i> -- Jean-Daniel
</i>><i> 
</i>><i> I got the same thing.
</i>
A number of things seem to have broken all at once. Commenting out that static_assert leads to a bug in src/locale.cpp about switching on '-1' on a switch on size_t in two places. Fixing that bug (by replacing -1 and -2 with (size_t)-1 and (size_t)-2, which is hopefully right.

Fixing that leads to lining producing:

ld: bad codegen, pointer diff in __ZSt17__throw_bad_allocv to global weak symbol __ZTISt9bad_alloc for architecture i386

Rather than try to debug this myself, I'm tempted to leave it to more experienced people.

One problem that this has shown me is that the recommended way of building libcxx (symlinking the svn directories into /usr/include and /usr/lib) means that if you svn update the library and it won't build, you are left with a totally non-functional library.

Chris</pre></blockquote></pre></blockquote><pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); "></pre></pre>
  </body>
</html>