New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-4838] LLDB build failure on LFS #4631
Comments
Comment by Vladislav Dembskiy (JIRA) No. I have downgraded gcc to 6.3.0 and have got the same error. |
Comment by Vladislav Dembskiy (JIRA) I have just did
Last time I build swift from source was on 7th of May and it was everything OK. What has been changed since? |
Comment by Vladislav Dembskiy (JIRA) After fresh checkout today I have got the same error: [722/878] Building CXX object source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o |
Comment by Vladislav Dembskiy (JIRA) After fresh Swift checkout the error still exists. |
This is due to a missing include in TaskPool.h. To use std::bind, one needs to #include <functional>. This was already fixed in upstream lldb by this commit, so fixing this would mean either manually including functional or merging the linked commit into swift-lldb. |
Comment by Vladislav Dembskiy (JIRA) Yes, after manual including <functional> LLDB has been build successful. I hope that upstream comment will be merged into swift-lldb. I will keep the issue open till that. |
Comment by Leif Hedstrom (JIRA) Just adding on my +1, but yes, needs the proper include diff --git a/include/lldb/Utility/TaskPool.h b/include/lldb/Utility/TaskPool.h
index db15b2081..3e6d5df8f 100644
--- a/include/lldb/Utility/TaskPool.h
+++ b/include/lldb/Utility/TaskPool.h
@@ -33,6 +33,7 @@
#include <queue>
#include <thread>
#include <vector>
+#include <functional>
// Global TaskPool class for running tasks in parallel on a set of worker thread
// created the first |
Comment by Vladislav Dembskiy (JIRA) Up to date the patch has not been included into Swift LLDB repository. |
Comment by Vladislav Dembskiy (JIRA) Interesting, what I do not have this error on Gentoo. It looks like that some LFS packages are too new for Swift. I will rename the issue from Linux to LFS. |
Comment by Vladislav Dembskiy (JIRA) I have renamed the error report because it does not reproducible on Gentoo, |
Comment by Vladislav Dembskiy (JIRA) Today I did fresh checkout and was not able to reproduce the problem. It looks like it has been resolved. |
Environment
uname -a Linux lfs-sdb6 4.10.14 #1 SMP Thu May 4 21:49:29 MSK 2017 x86_64 GNU/Linux
gcc --version gcc (GCC) 7.1.0
Additional Detail from JIRA
md5: 8c34d1dfa2bf53187676091b171127a6
Issue Description:
Today I did fresh checkout and got strange error:
[732/893] Building CXX object source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o
FAILED: source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o
/usr/bin/clang++ -DGTEST_HAS_RTTI=0 -DHAVE_PROCESS_VM_READV -DHAVE_ROUND -DLIBXML2_DEFINED -DLLDB_USE_BUILTIN_DEMANGLER -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Isource/Utility -I/mnt/swift/swift-source/lldb/source/Utility -I/mnt/swift/swift-source/lldb/include -Iinclude -I/mnt/swift/swift-source/build/buildbot_linux/llvm-linux-x86_64/include -I/mnt/swift/swift-source/build/buildbot_linux/llvm-linux-x86_64/tools/clang/include -I/mnt/swift/swift-source/llvm/include -I/include -I/mnt/swift/swift-source/llvm/tools/clang/include -I/mnt/swift/swift-source/build/buildbot_linux/swift-linux-x86_64/include -I/mnt/swift/swift-source/swift/include -I/mnt/swift/swift-source/lldb/source -I/usr/include/python3.6m -I/mnt/swift/swift-source/lldb/tools/clang/include -I../clang/include -I/usr/include/libxml2 -I/mnt/swift/swift-source/lldb/source/. -I/mnt/swift/swift-source/lldb/source/Plugins/Process/Linux -I/mnt/swift/swift-source/lldb/source/Plugins/Process/POSIX -march=native -pipe -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -fcolor-diagnostics -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O3 -UNDEBUG -fno-exceptions -fno-rtti -MD -MT source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o -MF source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o.d -o source/Utility/CMakeFiles/lldbUtility.dir/TaskPool.cpp.o -c /mnt/swift/swift-source/lldb/source/Utility/TaskPool.cpp
In file included from /mnt/swift/swift-source/lldb/source/Utility/TaskPool.cpp:10:
/mnt/swift/swift-source/lldb/include/lldb/Utility/TaskPool.h:122:12: error: no member named 'bind' in namespace 'std'
std::bind(std::forward(f), std::forward(args)...));
~~~~~^
1 error generated.
Could be the reason the gcc version? I did upgraded it to 7.1.0.
The text was updated successfully, but these errors were encountered: