[cfe-dev] another try: lastest ubuntu 14.10 + gcc4.9.1 can't build clang

Nico Weber thakis at chromium.org
Mon Feb 9 07:55:05 PST 2015


I believe the ::max_align_t problem was fixed in
http://llvm.org/viewvc/llvm-project?rev=201729&view=rev 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
http://stackoverflow.com/questions/5682854/why-is-the-linker-terminating-on-me-when-i-build-clang
which suggests that you don't have enough ram (maybe you're using a 32-bit
linux?)

> libstdc++ is designed to work with gcc only. So if you want to avoid
> these issues, you either need to patch libstdc++ or use libcxx instead.

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.


On Mon, Feb 9, 2015 at 5:03 AM, Markus Trippelsdorf <markus at trippelsdorf.de>
wrote:

>
>
> On 2015.02.09 at 13:59 +0100, Dennis Luehring wrote:
> > is this patch always needed for gcc 4.9.2 / ubuntu 14.04 support
> > or should the usage be fixed in the llvm/clang svn source?
>
> libstdc++ is designed to work with gcc only. So if you want to avoid
> these issues, you either need to patch libstdc++ or use libcxx instead.
>
> --
> Markus
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150209/a60c1752/attachment.html>


More information about the cfe-dev mailing list