[Nix-dev] LLVM, Clang and GCC 5 (C++ ABI Tags)

Aristid Breitkreuz aristidb at gmail.com
Sun Sep 4 13:08:03 CEST 2016


We have llvm 3.9 in nixpkgs master and 16.09 now, I'll try using that.

Christophe Trophime <christophe.trophime at lncmi.cnrs.fr> schrieb am So., 4.
Sep. 2016 um 13:04 Uhr:

>
>
>
>
> Christophe TROPHIME
> Research Engineer
>
>     CNRS - LNCMI
> 25, rue des Martyrs
> BP 166
> 38042 GRENOBLE Cedex 9
> FRANCE
>
> Tel : +33 (0)4 76 88 90 02
> Fax : +33 (0) 4 76 88 10 01
> Office U 19
> M at il : christophe.trophime at lncmi.cnrs.fr
>
> ------------------------------
>
> *From: *"Aristid Breitkreuz" <aristidb at gmail.com>
> *To: *"nix-dev" <nix-dev at lists.science.uu.nl>
> *Sent: *Sunday, September 4, 2016 12:17:47 PM
> *Subject: *[Nix-dev] LLVM, Clang and GCC 5 (C++ ABI Tags)
>
>
>
> Hi all,
>
> I've been trying to fix the ISPC build, only to find that clang 3.8 does
> not support GCC 5's ABI Tags, which means that functions returning
> std::string may lead to compiler errors. LLVM/Clang 3.9 apparently does:
> http://llvm.org/releases/3.9.0/docs/ReleaseNotes.html#gcc-abi-tag
>
> I think this thread is also relevant:
> https://llvm.org/bugs/show_bug.cgi?id=23529
>
> So I suppose the solution for ISPC will be to either switch to LLVM 3.9 or
> a clang using libcxx rather than libstdc++.
>
> What do you think? Have you seen other packages fail due to this?
>
> There are patches to fix clang 3.8.
> See this note from debian clang 3.8.1 latest package:
>
>     - Add support for gcc's attribute abi_tag (needed for compatibility with
>       GCC 5's libstdc++); taken from the trunk (Closes: #797038)
>       (LP: #1510042, #1488254)
>       D17567-PR23529-Sema-part-of-attrbute-abi_tag-support.diff
>       D18035-PR23529-Mangler-part-of-attrbute-abi_tag-support.diff
> The best will be to patch clang 3.8.1 no need to use libcxx...
>
> Cheers,
>
> Aristid
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160904/472906e4/attachment.html>


More information about the nix-dev mailing list