FS#54108 - [llvm] llvm fails to compile with gcc7

Attached to Project: Arch Linux
Opened by Hussam Al-Tayeb (hussam) - Thursday, 18 May 2017, 19:13 GMT
Last edited by Evangelos Foutras (foutrelis) - Friday, 19 May 2017, 06:11 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I tried to email the gcc maintainer from two emails but arch linux mail server thought I was spamming :)

Anyway, llvm fails to compile with gcc7.

/home/hussam/cache/llvm/src/llvm-
4.0.0.src/tools/lldb/include/lldb/Utility/TaskPool.h:122:12: error:
‘bind’ is not a member of ‘std’
std::bind(std::forward<F>(f), std::forward<Args>(args)...));


I added #include <functional> to
/home/hussam/cache/llvm/src/llvm-
4.0.0.src/tools/lldb/source/Utility/TaskPool.cpp
before
#include "lldb/Utility/TaskPool.h"
which fixed the build error.

They made the headers a bit more independent in gcc7 if I understand
correctly.
In case you end up needing to rebuild llvm after gcc7 goes to core, this may help.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Friday, 19 May 2017, 06:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in /trunk.

Loading...