<div dir="ltr">I believe the ::max_align_t problem was fixed inĀ <a href="http://llvm.org/viewvc/llvm-project?rev=201729&view=rev">http://llvm.org/viewvc/llvm-project?rev=201729&view=rev</a> which is part of clang 3.5 (but not 3.4). So if you're using a recent clang, you shouldn't see this problem. It sounds like you're indeed not seeing this problem with clang head; you're getting "ld terminated with signal 9 [Killed]" instead. Searching for this error message findsĀ <a href="http://stackoverflow.com/questions/5682854/why-is-the-linker-terminating-on-me-when-i-build-clang">http://stackoverflow.com/questions/5682854/why-is-the-linker-terminating-on-me-when-i-build-clang</a> which suggests that you don't have enough ram (maybe you're using a 32-bit linux?)<div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important;background-color:rgb(255,255,255)">> libstdc++ is designed to work with gcc only. So if you want to avoid</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important;background-color:rgb(255,255,255)">> these issues, you either need to patch libstdc++ or use libcxx instead.</span><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8000001907349px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important;background-color:rgb(255,255,255)">While it is true that libstdc++ is developed in parallel with gcc, clang explicitly tries to be able to parse it. If it doesn't, that's a clang bug. Patching your system headers isn't the right thing to do.</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 9, 2015 at 5:03 AM, Markus Trippelsdorf <span dir="ltr"><<a href="mailto:markus@trippelsdorf.de" target="_blank">markus@trippelsdorf.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 2015.02.09 at 13:59 +0100, Dennis Luehring wrote:<br>
> is this patch always needed for gcc 4.9.2 / ubuntu 14.04 support<br>
> or should the usage be fixed in the llvm/clang svn source?<br>
<br>
libstdc++ is designed to work with gcc only. So if you want to avoid<br>
these issues, you either need to patch libstdc++ or use libcxx instead.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Markus<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>