[Nix-dev] LLVM, Clang and GCC 5 (C++ ABI Tags)
Christophe Trophime
christophe.trophime at lncmi.cnrs.fr
Sun Sep 4 13:04:41 CEST 2016
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
----- Original Message -----
> 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/8b0e3fe4/attachment.html>
More information about the nix-dev
mailing list