[llvm-dev] Failed to make clang cfe-7.0.1.src
Peng Yu via llvm-dev
llvm-dev at lists.llvm.org
Sat Jan 19 16:02:36 PST 2019
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
More information about the llvm-dev
mailing list