http://releases.llvm.org/7.0.1/cfe-7.0.1.src.tar.xz I got the following error when I make the above package.Is there anything wrong? Thanks. [ 0%] Building CXX object utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o /root/doc/src/dvcs/cfe-7.0.1.src/utils/TableGen/ClangAttrEmitter.cpp: In function 'void clang::EmitClangAttrDocs(llvm::RecordKeeper&, llvm::raw_ostream&)': /root/doc/src/dvcs/cfe-7.0.1.src/utils/TableGen/ClangAttrEmitter.cpp:3958:11: error: 'sort' is not a member of 'llvm' llvm::sort(I.second.begin(), I.second.end(), ^~~~ /root/doc/src/dvcs/cfe-7.0.1.src/utils/TableGen/ClangAttrEmitter.cpp:3958:11: note: suggested alternative: In file included from /usr/include/c++/7/algorithm:62:0, from /usr/lib/llvm-6.0/include/llvm/ADT/Optional.h:23, from /usr/lib/llvm-6.0/include/llvm/ADT/STLExtras.h:20, from /usr/lib/llvm-6.0/include/llvm/ADT/StringRef.h:13, from /usr/lib/llvm-6.0/include/llvm/ADT/StringMap.h:17, from /usr/lib/llvm-6.0/include/llvm/Support/Host.h:17, from /usr/lib/llvm-6.0/include/llvm/ADT/Hashing.h:49, from /usr/lib/llvm-6.0/include/llvm/ADT/ArrayRef.h:13, from /root/doc/src/dvcs/cfe-7.0.1.src/utils/TableGen/ClangAttrEmitter.cpp:14: /usr/include/c++/7/bits/stl_algo.h:4856:5: note: 'std::sort' sort(_RandomAccessIterator __first, _RandomAccessIterator __last, ^~~~ utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/build.make:86: recipe for target 'utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o' failed make[2]: *** [utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o] Error 1 CMakeFiles/Makefile2:228: recipe for target 'utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/all' failed make[1]: *** [utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 -- Regards, Peng
Craig Topper via llvm-dev
2019-Jan-20 00:30 UTC
[llvm-dev] Failed to make clang cfe-7.0.1.src
It appears you are using the 7.0.1 version of clang and the 6.0 version of llvm? Clang 7.0.1 needs the 7.0.1 version of llvm. ~Craig On Sat, Jan 19, 2019 at 4:02 PM Peng Yu via llvm-dev < llvm-dev at lists.llvm.org> wrote:> http://releases.llvm.org/7.0.1/cfe-7.0.1.src.tar.xz > > I got the following error when I make the above package.Is there > anything wrong? Thanks. > > [ 0%] Building CXX object > utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o > /root/doc/src/dvcs/cfe-7.0.1.src/utils/TableGen/ClangAttrEmitter.cpp: > In function 'void clang::EmitClangAttrDocs(llvm::RecordKeeper&, > llvm::raw_ostream&)': > > /root/doc/src/dvcs/cfe-7.0.1.src/utils/TableGen/ClangAttrEmitter.cpp:3958:11: > error: 'sort' is not a member of 'llvm' > llvm::sort(I.second.begin(), I.second.end(), > ^~~~ > > /root/doc/src/dvcs/cfe-7.0.1.src/utils/TableGen/ClangAttrEmitter.cpp:3958:11: > note: suggested alternative: > In file included from /usr/include/c++/7/algorithm:62:0, > from /usr/lib/llvm-6.0/include/llvm/ADT/Optional.h:23, > from /usr/lib/llvm-6.0/include/llvm/ADT/STLExtras.h:20, > from /usr/lib/llvm-6.0/include/llvm/ADT/StringRef.h:13, > from /usr/lib/llvm-6.0/include/llvm/ADT/StringMap.h:17, > from /usr/lib/llvm-6.0/include/llvm/Support/Host.h:17, > from /usr/lib/llvm-6.0/include/llvm/ADT/Hashing.h:49, > from /usr/lib/llvm-6.0/include/llvm/ADT/ArrayRef.h:13, > from > /root/doc/src/dvcs/cfe-7.0.1.src/utils/TableGen/ClangAttrEmitter.cpp:14: > /usr/include/c++/7/bits/stl_algo.h:4856:5: note: 'std::sort' > sort(_RandomAccessIterator __first, _RandomAccessIterator __last, > ^~~~ > utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/build.make:86: recipe > for target > 'utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o' > failed > make[2]: *** > [utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/ClangAttrEmitter.cpp.o] > Error 1 > CMakeFiles/Makefile2:228: recipe for target > 'utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/all' failed > make[1]: *** [utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/all] Error 2 > Makefile:129: recipe for target 'all' failed > make: *** [all] Error 2 > > > -- > Regards, > Peng > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190119/ab01af98/attachment.html>